ADO.Net to Image

  • 17 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?

  • 17 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 vb.net picturebox control?

  • 17 years ago

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

Post a reply

Enter your message below

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

Contribute

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.

“Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter” - Eric Raymond