Home All Groups Group Topic Archive Search About

how can I read BLOB from database

Author
20 Oct 2005 8:07 AM
socheath
hello mr and mrs or miss
I'm now learning vb programming and I have problem read BLOB from databse
can you tell me how can I read
thank

Author
20 Oct 2005 10:54 AM
David Youngblood
"socheath" <socheath_s***@camict.org.kh> wrote...
> I'm now learning vb programming and I have problem read BLOB from databse
> can you tell me how can I read

The below is DAO code, ADO should be very similar.

    '* Get the record and put it in the byte array
    dwSize = rst.Fields("WorkBook").FieldSize
    ReDim bDataBlob(dwSize)
    bDataBlob() = rst.Fields("WorkBook").GetChunk(0, dwSize)

David
Author
20 Oct 2005 2:52 PM
Veign
Read/Write file from Oracle BLOB using ADO
http://www.freevbcode.com/ShowCode.Asp?ID=3948

Stream Object in ADO 2.6 to Load/Save Images in SQL Server
http://www.freevbcode.com/ShowCode.Asp?ID=5072

Loading/Saving Images to Database: Demo Application
http://www.freevbcode.com/ShowCode.Asp?ID=589

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
Veign's Blog
http://www.veign.com/blog
--


Show quoteHide quote
"socheath" <socheath_s***@camict.org.kh> wrote in message
news:%23QKzW1U1FHA.3524@tk2msftngp13.phx.gbl...
> hello mr and mrs or miss
> I'm now learning vb programming and I have problem read BLOB from databse
> can you tell me how can I read
> thank
>
>