Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting Images from Sybase 1

Status
Not open for further replies.

n2ckb

Programmer
Jun 8, 2001
65
GB
Hi All,

I am trying to extract employee pictures from a field within a Sybase table. The field is an "image" datatype and as yet I am unable to view the content. Does anyone have any code or can point me in the right direction as to how to extract the images?

Thanks

Nick
 
Hi,

You will need to use the GetChunk and AppendChunk methods to get at the BLOB data (Binary Large OBject).

Have a look at the following link:


I'm assuming that you are using ADO to get at the data. I know these methods work with SQL Server, I'm not of any reasons why it shouldn't work with Sybase.

Hope this helps.
 
Thanks very much Madlarry! That has worked a treat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top