Alexander Stolte Expert Licensed User Longtime User Jul 22, 2020 #1 Hey, how can I return an image correctly so that it can be evaluated as an image and used in BitmapAsync "LoadFromHttpJob" for example? What do I have to convert it to?
Hey, how can I return an image correctly so that it can be evaluated as an image and used in BitmapAsync "LoadFromHttpJob" for example? What do I have to convert it to?
Erel B4X founder Staff member Licensed User Longtime User Jul 22, 2020 #2 If the image come from a file then the best option is to put it in the static files folder (www\* by default) and it will be downloaded automatically. Other option: B4X: Dim b() As Byte = File.ReadBytes(...) resp.OutputStream.WriteBytes(b, 0, b.Length) Upvote 0
If the image come from a file then the best option is to put it in the static files folder (www\* by default) and it will be downloaded automatically. Other option: B4X: Dim b() As Byte = File.ReadBytes(...) resp.OutputStream.WriteBytes(b, 0, b.Length)