Skip to content

Commit 9c05aaf

Browse files
committed
Fix readAllBytes permission error on GAE
1 parent af79f8f commit 9c05aaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcloud-java-storage/src/main/java/com/google/cloud/storage/spi/DefaultStorageRpc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public byte[] load(StorageObject from, Map<Option, ?> options) {
356356
.setIfGenerationNotMatch(IF_GENERATION_NOT_MATCH.getLong(options));
357357
ByteArrayOutputStream out = new ByteArrayOutputStream();
358358
getRequest.getMediaHttpDownloader().setDirectDownloadEnabled(true);
359-
getRequest.executeMediaAndDownloadTo(out);
359+
getRequest.executeMedia().download(out);
360360
return out.toByteArray();
361361
} catch (IOException ex) {
362362
throw translate(ex);

0 commit comments

Comments
 (0)