Search code examples
javascriptnode.jsangular7

how to convert pdf downloaded through google drive into base 64 using node js


Using google drive api documentation implemented the downloading part using node js. Now i have to convert that downloaded pdf into base64 . Can anyone please help me to go through this.


Solution

  • There are lot of packages available for converting pdf to base64 https://www.npmjs.com/package/pdf-to-base64