ByteArrayOutputStream output = new ByteArrayOutputStream();
JPEGTranscoder transcoder = new JPEGTranscoder();
transcoder.addTranscodingHint(JPEGTranscoder.KEY_QUALITY, new Float(
Math.max(0, Math.min(quality, 100)) / 100.0f));
transcoder.writeImage(thumb, new TranscoderOutput(output));
thubmnailArraySize = output.size();
return new ByteArrayInputStream(output.toByteArray());
}
public int getThubmnailArraySize() {