Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- InputStream stream = null;
- try {
- stream = new FileInputStream(Gdx.files.getExternalStoragePath() + "photo1.png");
- } catch (FileNotFoundException e) {
- e.printStackTrace();
- }
- try {
- stream.read(selectedImage.toPNGData().getBytes());
- } catch (IOException e) {
- e.printStackTrace();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement