How can I upload pdf file to phpmyadmin by using golang?

I write code in MVC structure and build feature upload pdf file to database(phpmyadmin) but I can’t upload file to my database.

Without any code, this is going to be extremely hard to diagnose.

Uploading a PDF to a MySQL database would have to be done as a blob. This however, can bloat your database extremely quickly. It could be good to upload the PDF to a filesystem instead if you are looking for performance. This post on stack overflow may be a good read for your scenario Stack Overflow MySQL Blob. However, the link that they posted has broken but you can find it here Storage Sizes Blob.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.