Convert pdf file URL to base64
I want to convert the PDF file to base64. Iam having the URL of the PDF file. How to read the file url and convert it to base64 using jquery or javascript.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jose HernandezPosted Mar 5, 2021, 6:16 AM
Byte[] bytes = File.ReadAllBytes("path/url");