What is the most efficient way of encoding binary data over HTTP POST

I'm working on a project where I'll be sending lots of binary data (several images in one message) over HTTP POST to a RESTful interface. I've looked into alternatives such as JSON, protobuff, thrift but found no conclusive comparisons of overhead introduced by these formats. Which one would you prefer to use in this case?
It's probably most efficient to not encode it at all, set the appropriate Content-Type and Content-Length headers and then just send it over the HTTP connection as the POST's body.

以上就是What is the most efficient way of encoding binary data over HTTP POST的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JSON 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏