質問編集履歴
4
情報を最新のものに更新しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -168,7 +168,17 @@
|
|
168
168
|
|
169
169
|
ParseFile file = object.getParseFile("couple.jpg");
|
170
170
|
|
171
|
+
byte[] bytes = new byte[0];
|
172
|
+
|
173
|
+
try {
|
174
|
+
|
171
|
-
|
175
|
+
bytes = file.getData();
|
176
|
+
|
177
|
+
} catch (ParseException e1) {
|
178
|
+
|
179
|
+
e1.printStackTrace();
|
180
|
+
|
181
|
+
}
|
172
182
|
|
173
183
|
Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);
|
174
184
|
|
@@ -222,7 +232,7 @@
|
|
222
232
|
|
223
233
|
|
224
234
|
|
225
|
-
![イメージ説明](c
|
235
|
+
![イメージ説明](1cf6ad5d59fe048a3f6e4aebc3997ccd.png)
|
226
236
|
|
227
237
|
|
228
238
|
|
3
最新のエラー表示に変更しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -166,11 +166,15 @@
|
|
166
166
|
|
167
167
|
//以下のように書いてみましたがエラーで動きませんでした。。
|
168
168
|
|
169
|
+
ParseFile file = object.getParseFile("couple.jpg");
|
170
|
+
|
171
|
+
byte[] bytes = file.getData();
|
172
|
+
|
173
|
+
Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);
|
174
|
+
|
169
|
-
|
175
|
+
ImageView iv = (ImageView) findViewById(R.id.iv);
|
170
|
-
|
171
|
-
|
176
|
+
|
172
|
-
|
173
|
-
i
|
177
|
+
iv.setImageBitmap(bitmap);
|
174
178
|
|
175
179
|
|
176
180
|
|
@@ -218,7 +222,7 @@
|
|
218
222
|
|
219
223
|
|
220
224
|
|
221
|
-
![イメージ説明](
|
225
|
+
![イメージ説明](c8af1a049c4cac9de69d52445a89cbc1.png)
|
222
226
|
|
223
227
|
|
224
228
|
|
2
エラー文をアップさせて頂きました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -218,4 +218,8 @@
|
|
218
218
|
|
219
219
|
|
220
220
|
|
221
|
+
![イメージ説明](40d30866f8a5b9f3bd9872ddfd7e8354.png)
|
222
|
+
|
223
|
+
|
224
|
+
|
221
225
|
よろしくお願いします。
|
1
題名を分かりやすくしました。
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
パースでの画像取得
|
1
|
+
Android - パースでの画像取得
|
test
CHANGED
File without changes
|