Click here to Skip to main content
15,913,758 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI
i am converting BytesAraray to Image While Converting i got following error
"Palarmeter in invalid"
Herewith i have mention my code
VB
Dim ms As New MemoryStream
Dim bmpBytes As Byte() = ms.GetBuffer()
ms.Close()
Dim newImage As System.Drawing.Image
If bmpBytes IsNot Nothing Then
Using stream As New MemoryStream(bmpBytes)
newImage = System.Drawing.Image.FromStream(stream)->Error Will come This Line
End Using

Can you please Help me its urgent

Thanks
Vijay.S
Posted
Updated 9-Sep-12 19:55pm
v2

1 solution

Have a look on CP article:
Convert Image File to Bytes and Back [^]

..more similar threads on CP Search[^]
 
Share this answer
 
Comments
Vijay Selvaraj 10-Sep-12 2:10am    
HI
i convert image but i can't open this file if i open image
following Error will come
"unrecognized BMP"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900