Groups | Blog | Home
all groups > c# > march 2005 >

c# : Load an Image from DB to RAM?


pnp
3/5/2005 7:40:06 PM
How can I load a blob of an image from an SQL server to an object in RAM
Peter Bromberg [C# MVP]
3/5/2005 10:25:23 PM
If you use the SqlClient class and the proper SqlDbType for the parameter,
you can simply use the DataAdapter.Fill method and stick the result into a
DataSet.

You can pull out the image in that row / column by casting it to a byte
array
(byte[]).

[quoted text, click to view]

AddThis Social Bookmark Button