Revert "Write to OutputStream in azureblobsdk"

This reverts commit 6939e6f525.
References #708.
pull/702/head
Andrew Gaul 2024-10-26 23:41:39 -07:00
rodzic 11b8dbb193
commit e19226f49f
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -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);
}