ADO.Net to Image

  • 14 years ago

    I have jpeg images in SQL Server and want to use ADO.Net to pull these images in and place them in a VB.Net PictureBox.  I want to stay in memory without using the harddisk for temp storage.  I am currently doing it in VB6 and ADODB and need to port it over to VB.Net.  Currently, I have the image in a byte() and unsuccessfully tried to use IO.MemoryStream, IO.ByteReader, and IO.ByteWriter to move the byte() into an Image class.

    Any Ideas?

  • 14 years ago

    Not getting any feedback...

    OK, if you had an array of bytes in memory with a jpg image in it, does anyone know how to get that image into a picturebox control?

  • 14 years ago

    Do a search in google for image creatin in
    or system.drawing
    you are bound to find something...

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“It works on my machine.” - Anonymous