We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using the following code I would except to either receive a buffer or a base64 encoded string.
const result = await client.binding.send('filestore', 'get', null, { blobName: filename }); console.log(typeof result); // string const buffer = Buffer.from(result, 'base64');
What you actually get is a mangled string that is a binary stream converted to text and then parsed as JSON.
bindings.azure.blobstorage
decodeBase64
true
data
const base64Data = data.toString('base64'); const meta = { blobName: fileName, "contentType" : contentType ?? 'application/octet-stream', "contentDisposition" : "attachment", "cacheControl" : "no-cache", "custom" : "hello-world" }; const response = await client.binding.send(Bindings.fileStore, 'create', base64Data, meta);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behavior
Using the following code I would except to either receive a buffer or a base64 encoded string.
Actual Behavior
What you actually get is a mangled string that is a binary stream converted to text and then parsed as JSON.
Steps to Reproduce the Problem
bindings.azure.blobstorage
binding and setdecodeBase64
totrue
.data
is a BufferThe text was updated successfully, but these errors were encountered: