Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.36k stars 2k forks source link

[FEATURE REQ] stageBlock should support InputStream without mark/reset support #42603

Open gaul opened 4 weeks ago

gaul commented 4 weeks ago

Is your feature request related to a problem? Please describe. I am adding Azure SDK support to S3Proxy. I am trying to implement S3 upload part and translate it into Azure SDK. gaul/s3proxy#708

Describe the solution you'd like I would like a stageBlockFromOutputStream method which returns an OutputStream to stage a block with. This would be similar to the existing non-multipart upload methods.

Describe alternatives you've considered I considered using stageBlock with a BufferedInputStream but this could lead to large memory use.

Additional context Add any other context or screenshots about the feature request here.

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

joshfree commented 3 weeks ago

Hi @gaul thanks for reaching out to us via this GitHub issue. Someone from the Azure Storage team will follow up

gaul commented 3 weeks ago

Are put blob and put block basically the same? Does BlobOutputStream just need to add comp=block&blockid=id HTTP parameters to do what I want?