How would I get the Canvas Bitmap Data
sent as BmpData below as a Data as Byte() ?
I don't want to open this file, I would like to do it from memory
sent as BmpData below as a Data as Byte() ?
I don't want to open this file, I would like to do it from memory
B4X:
Dim Out As OutputStream
Out = File.OpenOutput(File.DirRootExternal, "pic.png", False)
canvas.Bitmap.WriteToStream(Out,100,"PNG")
Dim req As HttpRequest
req.InitializePost2("http://SERVER.com/u.php", BmpData) ' DATA as Byte()
httpClient1.Execute(req, 1)
'end