Unable to decrypt readableStreamBody from Azure Blob Storage - Misformed Armored Text #1714
-
Hi All, I'm having trouble decrypting a Blob from Azure Storage. Package Versions: Related Documentation When I print the blob to the console, I get this result
However when decrypting the stream using the decrypt function
Testing with the binaryMessage, I get a different output
I convert the stream to a string using the helper function above, the file prints successfully to the console
I have no problems with a similar implementation for encryption performed in a different function
I need to keep the blob downloaded from Blob storage as a stream for large file support. Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fixed, the issue was to set the encoding as utf8 The working example is
|
Beta Was this translation helpful? Give feedback.
Fixed, the issue was to set the encoding as utf8
The working example is