Thumbnail as indicator of Imagefile

  • Thread starter Thread starter Ola Myrgart
  • Start date Start date
O

Ola Myrgart

Hi !

I wonder if there´s a simple solution how to insert an indicatorimage to
show that the SQL record contains a picture. It´s very common and surley
a peace of cake !

Any ideas ?

OM "Myggan"
 
Hi Ola,

Is this a piece of cake!
(Give it a try)
\\\
Dim ms As New MemoryStream
Dim showimage As Image = getAnImage()
Dim PeaceThumb As Image
PeaceThumb = showimage.GetThumbnailImage(100, 100, Nothing, New IntPtr)
PeaceThumb.Save(ms, ImageFormat.Bmp)
dim arrImage() as Byte = ms.GetBuffer
dsMyTables.Tables(0).Rows(0)("thumb") = arrImage
///

I hope this helps a little bit?


Cor
 
Back
Top