Inserting PDF To Postgresql Database
Inserting PDF To Postgresql Database
First, we need to define the function that will convert the PDF document to a bytea format
Sample query to insert a PDF file that is from 'D:/OneDrive/Documents/Sample PDF file.pdf’
I found this link that clearly explains the command Copy and how it was use to import CSV file to a table.
I am not sure what to add here.
https://dataschool.com/learn-sql/importing-data-from-csv-in-postgresql/