I need to base64 encode the content of a raw PDF (already got the raw content). but i don't know why, but btoa() expect the input to be an ASCII char composed string.
btoa('ééééééé');
>> InvalidCharacterError: String contains an invalid character
Is there any way to convert raw bytes to base64 in javascript without recoding the base64 algo ? (by the way, working for images, and whatever file content)
By advance, Thanks for your answers !
[
ArrayBufferorBlob)?