kopia lustrzana https://github.com/gaul/s3proxy
Revert "Write to OutputStream in azureblobsdk"
This reverts commit 6939e6f525
.
References #708.
pull/702/head
rodzic
11b8dbb193
commit
e19226f49f
|
@ -370,9 +370,8 @@ public final class AzureBlobStore extends BaseBlobStore {
|
|||
.getBlockBlobClient();
|
||||
var blockId = makeBlockId(partNumber);
|
||||
var length = payload.getContentMetadata().getContentLength();
|
||||
try (var is = payload.openStream();
|
||||
var os = client.getBlobOutputStream(/*overwrite=*/ true)) {
|
||||
is.transferTo(os);
|
||||
try (var is = payload.openStream()) {
|
||||
client.stageBlock(blockId, is, length);
|
||||
} catch (IOException ioe) {
|
||||
throw new RuntimeException(ioe);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue