imageList

  • Thread starter Thread starter Hrvoje Voda
  • Start date Start date
H

Hrvoje Voda

Is there a way to fill an imageList with images from sql server dataTable
that are stored as BLOB?
Hrcko
 
E.g. (conceptually): <imageList>.Images.Add(Image.FromStream(<blobStream>));

WBR, Alex Meleta
Blog:: devkids.blogspot.com



HV> Is there a way to fill an imageList with images from sql server
HV> dataTable
HV> that are stored as BLOB?
HV> Hrcko
 
Hi,

Yes, you have to get it from SQL (I will assume you know how) and then use
one of the Image.FromXXX methods.

You could save the image in a temp file using Path.GetTempFilename and then
use Image.FromFile to load it.
 
Back
Top