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