Retrieve Image stored in SQL Server Table Column

G

Guest

How do you retrieve an image in ADO.NET stored in a SQL Server 2000 table column? In ADO I used a Stream object to retrieve the image and then there was a method in the Stream Object to save the image to a file. I used the following code in ADO for this

imgStream = New ADODB.Strea

With imgStrea
.Type = adTypeBinar
.Ope
.Write rsRecordset("ImageField").Valu
.SaveToFile strPictureFile, adSaveCreateOverWrit
.Clos
End Wit

Is there a ADO.NET equivalent?
 
M

Miha Markic [MVP C#]

Hi Angel,

Check these fine articles:
http://support.microsoft.com/search...L&maxResults=25&Titles=false&numDays=&InCC=on

--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

Angel said:
How do you retrieve an image in ADO.NET stored in a SQL Server 2000 table
column? In ADO I used a Stream object to retrieve the image and then there
was a method in the Stream Object to save the image to a file. I used the
following code in ADO for this:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top