Hello X, Am 2008-10-10 12:32:28, schrieb elmarkivp: > hi, i'm trying to store data files encryptypted in postgres 8.1 database but i can`t make it works. > this is what i'm doing. > > $link = pg_connect("host=$dbhost user=$dbuser password=$dbpwd dbname=$dbname") or die(pg_last_error($link)); > $fp = fopen($tmp_name, "rb"); > $file= fread($fp, filesize($tmp_name)); > fclose($fp); > $file=pg_escape_bytea($file); > $sql = "INSERT INTO SOME_TABLE (bytea_file) VALUES (pgp_sym_decrypt_bytea($file,somepass,cipher-algo=aes256))"; ^^^^^^^^^^^^ > ERROR: column "content_of_bytea_file" does not exist ( "content_of_bytea_file" is $file) ^^^^^^^^^^^^^^^^^^^^^^^ There are two different columns. I think, you should RECHECK your PHP script. Greetings Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##################### Debian GNU/Linux Consultant ##################### Michelle Konzack Apt. 917 ICQ #328449886 +49/177/9351947 50, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Attachment:
signature.pgp
Description: Digital signature