如何把web服务器端获取的图片写入android客户端文件

怎么把web服务器端获取的图片写入android客户端文件
怎么把web服务器端数据库获取的图片写入android客户端文件
------解决方案--------------------
获得图片,然后用FileoutputStream写入到文件......
------解决方案--------------------
先用htturlconnection(或者其他方法也行)从服务器获得inputstream,然后再同过outputstream写入本地文件
------解决方案--------------------
你是想要直接要源码的吧,建议还是问google吧,就算给你了,你也需要修改的,这不就是更新下载么
------解决方案--------------------
web端从数据库获取图片,转换成字节流,
Android通过http获取到图片字节流,转成图片就可以了。
------解决方案--------------------
URL url = new URL(path);
URLConnection con = url.openConnection();
InputStream input = con.getInputStream();
int len ;
byte[] buf = new byte[1024];
FileOutputStream output = new FileOutputStream(new File(phonePath));
while((len = input.read(buf)) != -1)
{output.write(buf,0,len);}
output.close();
input.close();