Giter Site home page Giter Site logo

Comments (8)

github-actions avatar github-actions commented on September 23, 2024

@ibrahimrabab @ibrandes @seanmcc-msft

from azure-sdk-for-java.

github-actions avatar github-actions commented on September 23, 2024

Thank you for your feedback. Tagging and routing to the team member best able to assist.

from azure-sdk-for-java.

alzimmermsft avatar alzimmermsft commented on September 23, 2024

Hi @kirankumar994, since FilePart.content() is part of your code, this is what needs to be changed to return ByteBuffers larger than 1024 bytes. Once you increase that, you should use less blocks to upload large files. For reference, within the SDKs we have a method that uploads a file as blocks which uses a default block size of 4MB (4,194,304 bytes).

Optionally, if you don't want to write you own implementation for uploading a file, you can always use BlobAsyncClient.uploadFromFileWithResponse which allows for you to pass BlobUploadFromFileOptions where you can configure the SDK to upload blocks of a certain size.

Marking as resolved as this is either a need to change your code to produce larger blocks or to migrate to the API within the SDK. Other than that, this is expected behavior by the service as 100,000 uncommitted blocks is an explicit limitation:

https://learn.microsoft.com/rest/api/storageservices/put-block?tabs=microsoft-entra-id#remarks

from azure-sdk-for-java.

github-actions avatar github-actions commented on September 23, 2024

Hi @kirankumar994. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.

from azure-sdk-for-java.

kirankumar994 avatar kirankumar994 commented on September 23, 2024

"/unresolve".

Hi @alzimmermsft ,

Could you please me how to increase filepart.content() to make larger chunks to return ByteBuffer larger than 1024 bytes with the above code? I have tried to increase, but it always emits 1024 bytes. Thank you so much in advance.

from azure-sdk-for-java.

alzimmermsft avatar alzimmermsft commented on September 23, 2024

Unfortunately, I'm unable to provide a way to increase the output of FilePart.content() as that isn't part of SDK and I have no knowledge of how it works.

from azure-sdk-for-java.

kirankumar994 avatar kirankumar994 commented on September 23, 2024

Okay, Thank you for your response @alzimmermsft .

from azure-sdk-for-java.

github-actions avatar github-actions commented on September 23, 2024

Hi @kirankumar994. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.

from azure-sdk-for-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.