P pnp Mar 5, 2005 #1 How can I load a blob of an image from an SQL server to an object in RAM instead of outputting to a file, and then loading it?
How can I load a blob of an image from an SQL server to an object in RAM instead of outputting to a file, and then loading it?
P Peter Bromberg [C# MVP] Mar 6, 2005 #2 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[]).
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[]).