Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Displaying BLOB Object in Visual Basic
One of my tables contains a BLOB FIELD which stores
image data (gif image). This has to be displayed in VB form.
To access this I have created a store procedure at backend
which returns the output in long raw.
But this long raw cannot be access in vb.
I am assuming that VB receives
hex value in string. Could you please guide me?
How do I convert the
value to store this into .gif file?
The file of size 476 stored in BLOB field is retrived as string of size 1904 in hex. Storing it as it is does not work out.
Stored Procedure:
vb code
con.Provider = "msdaora" con.Open , "scott", "tiger" com.CommandType = adCmdStoredProc com.CommandText = "readlob" com.ActiveConnection = con com.Parameters(0).Direction = adParamOutput com.Parameters(0).type = adVariant com.Execute
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Wed Apr 19 2000 - 00:00:00 CDT