从Android的数据发送到web服务器 [英] Send data from android to webserver

查看:139
本文介绍了从Android的数据发送到web服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是Android客户端和网络服务器之间可以使用哪些发送/接收数据。
数据通常可包括:
文字,图片或视频。
至于我已经进去看了看,我不能使用JSON,因为我不能用这个发送的图像。

What can i use to send/receive data between an android client and a webserver. Data can typically include: Text, Images or videos. As far as i have looked into, i cannot use JSON, since i cant sent images using this.

推荐答案

有关,你必须使用XML / JSON。如果您想发送到服务器转换图像(斑点)图像到字符串并发送字符串到服务器,并在服务器端字符串转换为数据库里面的Blob和商店。

For that you have to use XML/JSON . If you want to send the Images on to the Server convert Image(Blob) to the String and Send that String to the Server and On server Side Convert String to the Blob and Store inside the database.

对于您可以从以下链接参考:

For that you can take reference from the following link :

http://blog.sptechnolab.com/2011/02/10/android/android-connecting-to-mysql-using-php/

http://www.vogella.de/articles/AndroidJSON/article.html

这篇关于从Android的数据发送到web服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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