DEV Community

Discussion on: Uploading PDF files as base64 strings in PHP and saving it in the hard-disk.

 
rogeriotaques profile image
Rogerio Taques

Interesting, man!

Not really sure about the real benefit of not using base64 as a transport wrapper when posting data to the API (in my particular scenario) , but I’m definitely convinced of the advantages of storing the binary instead.

Thanks a lot for the contribution. 🙌 I’ll take the opportunity with a new project here and try this approach out.

Thread Thread
 
jsardev profile image
Jakub Sarnowski

Yeah I don't mean that your approach is wrong, it will surely work! I just wanted to propose a better approach 😃

Thread Thread
 
rogeriotaques profile image
Rogerio Taques

Sure, I didn’t take it wrong! 😉 It’s awesome have the chance to see what other devs would do to solve situations we’ve faced before. 🤘 Really glad you’ve commented.