How to use an encoded image?

adolleschal

Member
Licensed User
Longtime User
Hi!

I retrieve an encoded image via a json call. How can I use this encoded Image as a Bitmap?

When i use the following code I get a Java-Error:

B4X:
Buffer = Element.Get("image")
InputStream1.InitializeFromBytesArray(Buffer, 0, Buffer.Length)
InputStream1.Close
ProductBitmap.Initialize2(InputStream1)

Any hints?

Thanks and best regards
Andreas
 
Top