save image in oracle blob type RRS feed

  • Question

  • User1223056342 posted

    database type field BLOB in oracle but if i use MS SQL and field type as  image then this below line code work fine.

    here trying to save image in oracle database but system giving me below line error

    unimplemented or unreasonable conversion requested

    here is my code

     Dim picbyte As Byte()
                    Dim imagelen As Integer = FileUpload2.PostedFile.ContentLength
                    picbyte = New Byte(imagelen - 1) {}
                    FileUpload2.PostedFile.InputStream.Read(picbyte, 0, imagelen)

    please help me ...where im doing mistake

    Sunday, December 5, 2010 4:14 AM