Android Question How to load binary image data into ImagV

MomoWen

Member
Licensed User
I pulled the binary image data from the XML read, but I couldn't find a way to add it to the ImagV
This is a scheme I found, but it is out of memory How to load binary image data into ImagV:
    Dim  bitm As Bitmap
    Dim Abit As InputStream
    Dim buff() As Byte =    xml.Imagestr.GetBytes("UTF8")
    Abit.InitializeFromBytesArray(buff,0,buff.Length)
    bitm.Initialize2(Abit)
    ImagV.Bitmap=bitm
 

DonManfred

Expert
Licensed User
Longtime User
The XML has Binary data in the XML AS String?
Are you sure you do not need to decrypt/base64 decode first?
 
Upvote 0
Top