我一直在互联网上搜索,但没有找到答案。你想告诉我,如何解码base64
为Image
折线图吗?我一直在尝试先从数组转换base64
为Byte
数组,然后从Byte
数组转换为Image
.
Private Function convertbytetoimage(ByVal BA As Byte())
Dim ms As MemoryStream = New MemoryStream(BA)
image = Image.FromStream(ms) 'I always get wrong in this line.
Return image
End Function
Run Code Online (Sandbox Code Playgroud)