Hi,
i’m trying to store a picture from the DB to the filesystem.
i’ve used the function lo_export like that:
res = conn.query(“SELECT nome,physical_image FROM images;”)
i=0
while(res[i]!=nil)
conn.lo_export(res[i][1].to_i,’/home/andrea/senior/public/images/#{res[i][0]}.jpg’)
i+=1
end
conn.close())
there’re not errors, the script run…
The problem is that no files are created and i don’t know why.
Can somebody help me??
thanks in advance…