does someone knows a possibility to visualize in a bytea column saved photos of a postgresql database in qgis?

I would like to store pictures directly into the database, not just the link/ url.


1 Answer 1


It isn't directly possible in QGIS. Easiest approach would be to pass the bytea off to a web page/API that just presents the photo. Then you can create a View in PostGIS, and have a new column that has a URL pointing to the page: eg http://example.com/photo.php?id=1234, you can load the view into QGIS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.