[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1559
  • Last Modified:

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.
1 Solution
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.

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now