}
return false;
}
private InputStream getDataInputStream(InputStream stream) throws IOException {
Base64 base64 = new Base64();
ByteArrayOutputStream bo = new ByteArrayOutputStream();
byte[] buffer = new byte[1024];
while (stream.read(buffer) != -1) {
bo.write(buffer);
}
return new ByteArrayInputStream(base64.decode(bo.toByteArray()));
}