--- android/Side9/src/dk/thoerup/side9/ImageAdapter.java 2010/11/02 17:08:57 1185 +++ android/Side9/src/dk/thoerup/side9/ImageAdapter.java 2010/11/03 05:21:48 1186 @@ -77,7 +77,8 @@ entry.thumb = scaled; try { FileOutputStream fos = new FileOutputStream(thumb); - scaled.compress(CompressFormat.JPEG, 90, fos); + scaled.compress(CompressFormat.JPEG, 90, fos); + fos.close(); } catch (IOException e) { Log.e("Side9", "error", e); @@ -171,7 +172,9 @@ int size = (int)raf.length(); byte buf[] = new byte[size]; - raf.readFully(buf); + raf.readFully(buf); + raf.close(); + return new String(buf); } catch (IOException e) { Log.e("Side9", "Error", e);