写真をBMPにインポートする方法は次のとおりです。
String t1="http://www.xxx.xxx/xx/xx.jpg";
URL TKs = new URL(t1);
InputStream Is= TKs.openStream();
Bitmap Bp = BitmapFactory.decodeStream(Is);
Is.close();
また、画像を SQL に保存できる形式にすることも知っています。
is = resources.openRawResource(R.drawable.xxx);
byte[] image2 = new byte[is.available()];
is.read(image2);
is.close();
私は両方の方法を使用して、目標を達成できるはずです:
String t1="http://www.xxx.xxx/xx/xx.jpg";
URL TKs = new URL(t1);
InputStream Is= TKs.openStream();
byte[] image2 = new byte[Is.available()];
//////////////////the image2 is NULL
Is.read(image2);
Is.close();
明らかに失敗しました。最終的にどうすればよいかお聞きしたいと思います。