Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
120
rated 0 times [  121] [ 1]  / answers: 1 / hits: 6654  / 10 Years ago, sun, december 14, 2014, 12:00:00

I want to send a blob using a JQuery ajax request and receive it server-side with Node.js + express.



I would send the blob as a JSON string, but it seems that none of the binary data is included in it:



{type:audio/wav,size:344108}


How else could it be sent?


More From » jquery

 Answers
2

JSON doesn't support binary data. You will have to encode your binary data first: Binary Data in JSON String. Something better than Base64


[#40646] Friday, December 12, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bradleymoisesy

Total Points: 121
Total Questions: 105
Total Answers: 95

Location: Nepal
Member since Mon, Jan 4, 2021
3 Years ago
;