我想要将从API获得的Base64转换为iOS脚本应用程序中的图像。下面是我当前的代码: let image = Image.data(Data.fromBase64String(response.icon)) 如何将base64转换为图像?错误: 2021-08-19 12:31:07: Error on line 20:23: TypeError: Image.data is not a function.(In 'Image.data(
做这件事) 编辑:在看了下面的建议后,我发现这段代码是有效的: Function Base64ToImage(ByVal base64string As String) As System.Drawing.Image'Setup image and get data stream together Dim MS As System.IO.MemoryStreamSystem.IO.MemoryStream
Dim b64 As String =
你想告诉我,如何从base64解码成像直线图一样的Image?我一直试图先将base64转换为Byte数组,然后将Byte数组转换为Image。Function convertbytetoimage(ByVal BA As Byte()) image= Image.FromStream(ms) 'I always get wrong in this