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();
|
.getBlockBlobClient();
|
||||||
var blockId = makeBlockId(partNumber);
|
var blockId = makeBlockId(partNumber);
|
||||||
var length = payload.getContentMetadata().getContentLength();
|
var length = payload.getContentMetadata().getContentLength();
|
||||||
try (var is = payload.openStream();
|
try (var is = payload.openStream()) {
|
||||||
var os = client.getBlobOutputStream(/*overwrite=*/ true)) {
|
client.stageBlock(blockId, is, length);
|
||||||
is.transferTo(os);
|
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
throw new RuntimeException(ioe);
|
throw new RuntimeException(ioe);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue