Skip to content

Commit

Permalink
Fix readAllBytes permission error on GAE (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed May 18, 2016
1 parent 554b03e commit d5cf726
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,7 @@ public byte[] load(StorageObject from, Map<Option, ?> options) {
.setIfGenerationMatch(IF_GENERATION_MATCH.getLong(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 d5cf726

Please sign in to comment.