使用多部分输入将图像从 SD 卡发送到服务器
我正在制作一个Android应用程序,其中我通过多部分请求将图像从/mnt/sdcard/DCIM/Camera/IMG_20110922_124932.jpg发送到服务器到服务器..任何人都可以帮我...... 任何帮助将不胜感激.. 谢谢..
I am making an android app in which i am sending image to server from /mnt/sdcard/DCIM/Camera/IMG_20110922_124932.jpg to serverthrough multipart request .. Can anybody help me out....
Any help will be appreciated..
Thanks..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是我用来将图像发送到服务器的多部分帖子的简单示例:
Here is a simple example of a multipart post that I use to send images to a server:
请参阅我上周回答的[此问题][1] 已接受的答案。它与上面的答案非常相似,但还包含一些用于获取图像的示例 PHP 代码。
JSON 并将图像上传到服务器
See the accepted answer of [this question here][1] that I answered last week. It's very similar to the answer above but also includes some sample PHP code to get the image.
JSON and upload image to server