77 |
entry.thumb = scaled; |
entry.thumb = scaled; |
78 |
try { |
try { |
79 |
FileOutputStream fos = new FileOutputStream(thumb); |
FileOutputStream fos = new FileOutputStream(thumb); |
80 |
scaled.compress(CompressFormat.JPEG, 90, fos); |
scaled.compress(CompressFormat.JPEG, 90, fos); |
81 |
|
fos.close(); |
82 |
|
|
83 |
} catch (IOException e) { |
} catch (IOException e) { |
84 |
Log.e("Side9", "error", e); |
Log.e("Side9", "error", e); |
172 |
int size = (int)raf.length(); |
int size = (int)raf.length(); |
173 |
byte buf[] = new byte[size]; |
byte buf[] = new byte[size]; |
174 |
|
|
175 |
raf.readFully(buf); |
raf.readFully(buf); |
176 |
|
raf.close(); |
177 |
|
|
178 |
return new String(buf); |
return new String(buf); |
179 |
} catch (IOException e) { |
} catch (IOException e) { |
180 |
Log.e("Side9", "Error", e); |
Log.e("Side9", "Error", e); |