Pictures to VB.NET

  • Thread starter Thread starter al
  • Start date Start date
A

al

Greetings,

what conversion do I need to do to get pictures stored as binariws in
sqlserver2k into vb.net which is processed as graphics. when I use
pic control, an error is generated.


MTIA,
Grawsha
 
* (e-mail address removed) (al) scripsit:
what conversion do I need to do to get pictures stored as binariws in
sqlserver2k into vb.net which is processed as graphics. when I use
pic control, an error is generated.

Post code!
 
* (e-mail address removed) (al) scripsit:

Post code!

There is no code. I just place a pic box contorl and binde its image
property to the photo cloumn in Northwind db. The error message reads
"could not format to the desired type". VB.NET imports binary to
system.binary, and to display it correctly, it needs to be in the
system.drawing.imaging namespace, I think.

Grawsha
 
On 9 Dec 2003 06:48:44 -0800, (e-mail address removed) (al) wrote:

¤ Greetings,
¤
¤ what conversion do I need to do to get pictures stored as binariws in
¤ sqlserver2k into vb.net which is processed as graphics. when I use
¤ pic control, an error is generated.
¤

See the following MS KB article:

HOW TO: Display an Image from a Database in a Windows Forms PictureBox by Using Visual Basic .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;321900&Product=vbNET


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Back
Top