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
Code: Copy
    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
 
The XML has Binary data in the XML AS String?
Are you sure you do not need to decrypt/base64 decode first?
 
Upvote 0
Back
Top