Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sending commands from Android+Tasker to QM
#4
I am using the POST method with Form-Data to submit some binary files and encountered the following issue:

Test file(Pic.png) size is 1342KB; file(Doc.docx) size is 525KB
 
Code:
Copy      Help
client.Receive(_s 2048000); out F"SERVER: client request:[]{_s}"
 
Using the above parameters: The response speed is very fast, but The data reception is unstable, sometimes complete and sometimes incomplete.
 
Code:
Copy      Help
client.Receive(_s 0); out F"SERVER: client request:[]{_s}"
Using the above parameters: The response speed is too slow, but The received data is always complete, the response speed is still very slow even when testing locally.

I have been stuck on this issue for a few days. Thanks for Any suggestions or help!


_____________________________________________________________The incomplete returned data is as follows:
POST /saveFile HTTP/1.1
Accept: application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7
Content-Type: multipart/form-data; boundary=--------------------------493891244813812906191617
content-length: 1831226
User-Agent: axios/1.7.4
Accept-Encoding: gzip, compress, deflate, br
Host: 127.0.0.1:5032
Connection: keep-alive

----------------------------493891244813812906191617
Content-Disposition: form-data; name="FileBin"

iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAIAAADwf7zUAAEAAE..............(The data is truncated in the middle, and there is no ending line similar to the red text shown below.
)
_____________________________________________________________The complete returned data is as follows:

POST /saveFile HTTP/1.1
Accept: application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7
Content-Type: multipart/form-data; boundary=--------------------------493891244813812906191617
content-length: 1831226
User-Agent: axios/1.7.4
Accept-Encoding: gzip, compress, deflate, br
Host: 127.0.0.1:5032
Connection: keep-alive

----------------------------493891244813812906191617
Content-Disposition: form-data; name="FileBin"

iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAIAAADwf7zUAAEAAE......................
----------------------------493891244813812906191617--


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)