Host Local PDF to Web URL API

Is there a way to select local PDF Files to be converted to a Web Link? If not, I will have to store the PDF Files data into Firebase which might take a long time for my HTML Program to Run because my Files are quite big size? Can anyone show some working sample code on how to do this or even recommend some PDF Hosting API, but it must be in Javascript?

I know that PDF can be converted into base 64 code which then can be stored into Firebase Cloud Service but I would want to make things easier. Thanks for reading 🙂