good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
PostgreSQL and binary databy Anonymous Monk |
on Dec 25, 2001 at 00:26 UTC ( [id://134208]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Does anyone know if PostgreSQL is capable of storing binary
data? I'm using DBI/DBD::ODBC and I need to save JPEG/GIF/PNG images in a table. Here is what I tried: Table BTEST is defined as follows When I run the above code I get the following error: I tried doing two things 1) $data =~ s/'/''/g; 2) $data =~ s/(\W)/\\$1/g; Neither one works. Any input is appreciated. Thanks.
Back to
Seekers of Perl Wisdom
|
|