|
-
Apr 22nd, 2002, 08:01 AM
#1
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|