im using Postgres 9.0 to save images into the database using ‘lo_import’ and
to export images using lo_export with an application using delphi 7.
everything works fine on my system but if i try the lo_export on other system i get an error

the query im using is
‘SELECT lo_export(fishimages.imagevalue,’c:/leeUpdate.jpg’) from fishimages where fishname=meckeral’;
but it gives error on other systems and not mine.!!!
It’s a write access problem. You are trying to create a file in a folder (which is C root in this case) without having a write access permission. Change the folder to a place which your SQL user has write access to or give your SQL user a write access to c:\