Image Type in SDF?

  • Thread starter Thread starter Harry Simpson
  • Start date Start date
H

Harry Simpson

I'm pulling an image filed via RDA Pull in a table. Trying to assign that image to a Picturebox control.
picSmallPicture.Image = .Item("PatientPicture")
Had tried the the picImagePicture.Image = New Bitmap(Ctype(.Item("PatientPicture"), Byte()))

but it doesn't like that syntax....

When RDA pulls table from SQL Server and the filed is Image what's the datatype of the firls in the new CE local table?

What conversion will work to pull the picture from the local table and assign it to the Picturebox??



TIA

Harry
 
http://groups.google.com/group/micr...e+SQL+CE+Bitmap&rnum=5&hl=en#48a82ded1a2680d5

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

I'm pulling an image filed via RDA Pull in a table. Trying to assign that
image to a Picturebox control.
picSmallPicture.Image = .Item("PatientPicture")
Had tried the the picImagePicture.Image = New
Bitmap(Ctype(.Item("PatientPicture"), Byte()))
but it doesn't like that syntax....
When RDA pulls table from SQL Server and the filed is Image what's the
datatype of the firls in the new CE local table?
What conversion will work to pull the picture from the local table and
assign it to the Picturebox??

TIA
Harry
 
Thank you for your patience Ilya!

following worked like a champ:
Dim mem As New System.IO.MemoryStream(CType(.Item("PatientPicture"),
Byte()))

Dim bmp As New Bitmap(mem)

picSmallPicture.Image = bmp

Harry
 
Back
Top