将字节转换为图像 [英] Convert Bytes to Image
本文介绍了将字节转换为图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HI
我在转换时将BytesAraray转换为图像,但出现以下错误
"Palarmeter in invalid"
特此提及我的代码
HI
i am converting BytesAraray to Image While Converting i got following error
"Palarmeter in invalid"
Herewith i have mention my code
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
您能帮我紧急
谢谢
Vijay.S
Can you please Help me its urgent
Thanks
Vijay.S
推荐答案
看一下CP文章:
将图像文件转换为字节并向后 [ ^ ]
..更多类似的主题,位于 CP搜索 [ ^ ]
Have a look on CP article:
Convert Image File to Bytes and Back [^]
..more similar threads on CP Search[^]
这篇关于将字节转换为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文