I am trying to send a post request with a bitmap in the body. With the following code I tried, the received request on the server side is empty. Anyone knows why?
B4X:
Dim bt as bitmap =loadbitmap(file.dirinternal, "testing.jpg")
Dim out as outputstreaam
out.initializeToBytesArray(0)
bt.writetoStream(output,100,"JPEG")
Dim j as httpjob: j.initialize("",me)
Dim url as string =
j.postBytes(url, out.ToBytesArray)