如何使用json将图像发送到iPhone中的服务器? [英] How to send an image using json to server in iPhone?

查看:106
本文介绍了如何使用json将图像发送到iPhone中的服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用json与服务器通信.

I am using json to communicate with the server.

我要从服务器发布并获取图像.

I want to post and grab an image from the server.

如何将json格式的图像转换为发送图像,以及当我们获取json格式的图像并将其转换回图像时.

How to convert the image in json format to send it, also when we get an image in json format and convert it back to image.

推荐答案

请参考

Please refer to the relevant section of the HTML spec for how to properly upload binary data.

JSON对象使用非常低效的二进制数据编码来发布.利用现有的框架和标准来上传二进制数据将为您节省大量时间.

JSON objects are posted using a very inefficient encoding for binary data. Utilizing the existing frameworks and standards for uploading binary data will save you a tremendous amount of time.

这篇关于如何使用json将图像发送到iPhone中的服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆