Dim Out As OutputStream
Out = File.OpenOutput(File.DirInternal, Starter.SelectedFolder & WhatFileName, False)
Media.Media.As(B4XBitmap).WriteToStream(Out, 50, "PNG")
Out.Close
Out of 200 png few of them gets this error when i load the png file using this
Maybe i dont understand the purpose of the MediaManager.SetMediaWithExtra? It is making a http request which causes data usage if i keep repeating the code. Therefore, I save the file so i can show the image with MediaManager.SetMediaFromFile.