Is there a way to fill an imageList with images from sql server dataTable
that are stored as BLOB?
Hrcko
Alex Meleta - 29 May 2007 14:24 GMT
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
Ignacio Machin ( .NET/ C# MVP ) - 29 May 2007 15:24 GMT
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.
> Is there a way to fill an imageList with images from sql server dataTable
> that are stored as BLOB?
> Hrcko