Image Data Type & ADO Retrieval

  • Well, I first asked for info on SQL Image Data Type, use etc. Now to be more specific I need to know if anyone has worked with a MemoryStream in this context and using ADO recordsets to retrieve the data thru SP. Problem is designing the interface to display the data.

  • First, I assume since you said "MemoryStream" you are talking .Net.  Yes, you can get a dataset in ADO.Net to get an image datatype and load it into a MemoryStream.

    But you do not specify if you looking to Winforms or Webforms.  For Winforms, you can use a Image class and read the MemoryStream directly to the control.  For Webforms, you will need to save the MemoryStream to a file in the web directory, then reference that file in the web page's Image control.

    Hope this helps



    Mark

  • Hi Mark

    Yes, it's VB.Net I'm currently working with, and the actual issue is the actual coding of the ADO Recordset Image data type into a memory stream, then populating a picturebox with the image. Hope this explains my problem better

  • Thanks Mark, it was exactly what I needed

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply