【发布时间】:2011-07-06 07:14:21
【问题描述】:
我需要将图像从 servlet 显示到我的 android 应用程序我该怎么做请有人帮助我提前谢谢
【问题讨论】:
我需要将图像从 servlet 显示到我的 android 应用程序我该怎么做请有人帮助我提前谢谢
【问题讨论】:
我建议以下步骤:
FileInputStream fis;
Bitmap image;
try {
fis = new FileInputStream("path to downloaded image");
Bitmap image = BitmapFactory.decodeStream(fis);
} catch (FileNotFoundException e) {
// handle exception
}
4。将位图设置为 ImageView。
【讨论】: