Results 1 to 3 of 3

Thread: creating a picture through memorystream

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    13

    creating a picture through memorystream

    hi all!

    other question... how can i create a picture from a memorystream?
    i.e. my memorystream contains the data for the image.fromstream property. the memorystream is writen like

    file = rs("picture").Value 'dim file() as byte
    memoryStream.Write(file, 0, file.Length) ' Dim memoryStream As New IO.MemoryStream()

    ok, now i am loading my picture control like

    memoryStream.Position = 0
    PictureBox1.Image.FromStream(memoryStream)

    and that doesnt work. i get always a message "invalid parameter"
    what is there wrong??
    PLEASE give me any suggestions you have...thx a lot
    Last edited by PJ6; Apr 24th, 2002 at 08:36 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width