最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

jquery - Send and receive a blob in javascript - Stack Overflow

programmeradmin1浏览0评论

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?

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?

Share Improve this question asked Dec 14, 2014 at 23:16 Will Hardwick-SmithWill Hardwick-Smith 1,0493 gold badges14 silver badges24 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 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

发布评论

评论列表(0)

  1. 暂无评论