Skip to content

Commit

Permalink
Fix readAllBytes permission error on GAE
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed May 13, 2016
1 parent af79f8f commit 9c05aaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ public byte[] load(StorageObject from, Map<Option, ?> options) {
.setIfGenerationNotMatch(IF_GENERATION_NOT_MATCH.getLong(options));
ByteArrayOutputStream out = new ByteArrayOutputStream();
getRequest.getMediaHttpDownloader().setDirectDownloadEnabled(true);
getRequest.executeMediaAndDownloadTo(out);
getRequest.executeMedia().download(out);
return out.toByteArray();
} catch (IOException ex) {
throw translate(ex);
Expand Down

0 comments on commit 9c05aaf

Please sign in to comment.