By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,452 Members | 1,571 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,452 IT Pros & Developers. It's quick & easy.

Load an Image from DB to RAM?

P: n/a
pnp
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?
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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[]).

"pnp" <pnp.@.softlab.ntua.gr> wrote in message
news:uX**************@TK2MSFTNGP09.phx.gbl...
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?

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.