Send and receive blob in javascript

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

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

{"type":"audio/wav","size":344108}

      

How else can you send it?

+3


source to share


1 answer


JSON does not support binary data. First you need to encode your binary data first: Binary data in a JSON string. Something Better Than Base64



+1


source







All Articles