Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String image = obj.getString("data");
- byte[] bytes = image.getBytes();
- File file = new File(Environment.getExternalStorageDirectory(), "DirImage/test.jpg");
- FileOutputStream fos = new FileOutputStream(file);
- fos.write(bytes);
- fos.flush();
- fos.close();
Add Comment
Please, Sign In to add comment