We help IT Professionals succeed at work.

How to load BLOB into PostgreSQL table?


      I would like to load pictures into PostgreSQL tables. I have installed PostgreSQL 8.2.4 on my linux server.
     Please advise.

Thanks in advance.
Watch Question

You can use 'bytea' data type to store your images. Alternatively, you could store the link to the image on the filesystem and use that rather than storing the actual image in the database. There are pro and cons of each (performance, transaction ability, security, etc.).

If you do a quick Google search, you can find quite a few articles describing the pros and cons, as well as the procedure of loading/retreiving images from PostgreSQL database.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.