Downloading files from database binary column

I have uploaded files to a database table. Each tuple has the filename and a binary (bytea) column storing the file.

How do I use the file name as a hyperlink to download the binary?

1 Like