Hello,
I am trying to convert a bit stream to an image and I get the "Parameter is not valid." Argument Exception. My bit stream is not null, but it is corrupted. I am wondering if I can try to ignore this error and still attempt to create and display the picture.
Here is the code:
Private fileByte As New List(Of Byte)
Private picture As Image
Try
Dim ms As New MemoryStream(fileByte.ToArray)
picture = Image.FromStream(ms)
Catch ex As Exception
...
End Try
Visual Studio 2008/.Net 3.5
Thanks,