Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure upload using chunks #3

Open
NetFreaker opened this issue Mar 16, 2022 · 6 comments
Open

Azure upload using chunks #3

NetFreaker opened this issue Mar 16, 2022 · 6 comments

Comments

@NetFreaker
Copy link
Contributor

Need to upload large files using chunks to azure. Any suggestion's @kkazuo

@kkazuo
Copy link
Owner

kkazuo commented Mar 16, 2022

You can use BlobType.AppendBlob.

await storage.putBlob('/example/append.txt', type: BlobType.AppendBlob);
await storage.appendBlock('/example/append.txt', body: 'more 1\n');
await storage.appendBlock('/example/append.txt', body: 'more 2\n');
await storage.appendBlock('/example/append.txt', body: 'more 3\n');

@NetFreaker
Copy link
Contributor Author

Changing type to BlobType.AppendBlob

Still it returns as : azure upload exception: <?xml version="1.0" encoding="utf-8"?><Error><Code>RequestBodyTooLarge<[/Code]()><Message>The request body is too large and exceeds the maximum permissible limit.

@kkazuo
Copy link
Owner

kkazuo commented Mar 17, 2022

interesting.
and what is the actually size of your data.

@NetFreaker
Copy link
Contributor Author

Duration: 4 min 30 sec
Size: 204 MB

@kkazuo
Copy link
Owner

kkazuo commented Mar 17, 2022

what is the size of each data of .appendBlock call?

@kkazuo
Copy link
Owner

kkazuo commented Mar 17, 2022

in my opinion, you have hit a size limit of Azure Bolb Storage.

https://docs.microsoft.com/en-us/rest/api/storageservices/Understanding-Block-Blobs--Append-Blobs--and-Page-Blobs

by the way, did you know an another package to access Azure Blob that called azstore.
and could you try that? (i am not any relations to azstore dev)
https://pub.dev/packages/azstore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants