-
Notifications
You must be signed in to change notification settings - Fork 3
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
AssetCanisterApiClient.GetAsync - (Download Asset) is only returning first chunk #125
Comments
Hmm. Not super familiar with the API itself. I auto generated the client with the ICP.NET generator, then threw in the upload via chunks.
|
Im adding a new helper method |
Fixed in 6.1.0 |
@Gekctek I tested with new version and got the following exception when trying to download a text file (encoding=UTF-8) from AssetCanister
|
@stefan-adna hmmm. Your content encoding is set to UTF-8? I changed up the method to allow for overriding the Accept-Encoding if needed in But i think you should probably use on of the default encodings vs UTF-8 |
Hi @Gekctek You are right, I should have used one of the default encodings. Nevertheless I think it makes sense to let the caller specify the content-encoding, as he can also specify it in the upload method. Thanks a lot for the updated package. |
When using the Download Asset as shown in the /samples/Sample.CLI project (which is using the
GetAsync(string key, List<string> acceptEncodings)
of the AssetCanister) I only get the bytes of the first chunk.How can I download the whole file?
I noticed there is a
GetChunkAsync
method, but I don't know how many chunks are there in total for each file. Also I don't think that the user of this package should need to do this by himself.The text was updated successfully, but these errors were encountered: