Advertisement
progrmor

Untitled

Jun 28th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. InputStream stream = null;
  2.                 try {
  3.                     stream = new FileInputStream(Gdx.files.getExternalStoragePath() + "photo1.png");
  4.                 } catch (FileNotFoundException e) {
  5.                     e.printStackTrace();
  6.                 }
  7.                 try {
  8.                     stream.read(selectedImage.toPNGData().getBytes());
  9.  
  10.                 } catch (IOException e) {
  11.                     e.printStackTrace();
  12.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement