Image Type in SDF?

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
 
I

Ilya Tumanov [MS]

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
 
H

Harry Simpson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top