4

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?

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.