Django PostgreSQL File Upload & Extract This post will describe how to upload a file, store encoded data in a PostgreSQL database, and then extract that data to a Django web page.
Steps:
Create database table with column type bytea Create Django html form to upload file. Encode file to base64 and insert to PostgreSQL database with file extension. Retrieve encoded data from database, decode it, and pass to html page. Finally, Show file in Django HTML page.
Details is posted here: https://autonetmate.com/django/django-postgresql-file-upload-extract/