Hello
I download a file from Dropbox using the following code from the Dropbox API:
public final OutputStream downloadDropBoxFileAtOutputStream(final String dropBoxFilePath, String localFilePath) {
OutputStream outputStream = null;
try {
outputStream = new FileOutputStream(localFilePath);
} catch (FileNotFoundException e) {
LOGGER.error(e.getMessage());
}
try {
DbxEntry.File downloadedFile = null;
try {
downloadedFile = client.getFile(dropBoxFilePath, null,
outputStream);
} catch (DbxException | IOException e) {
LOGGER.error(e.getMessage());
}
} finally {
try {
outputStream.close();
} catch (IOException e) {
LOGGER.error(e.getMessage());
}
}
return outputStream;
}
I want to pass the resulted output stream to another method without saving the file on the local disk. Is is this possible with the Dropbox core java API ?
Best Regards,
Aurelian