Re: Insert a xml file into a DB
| From: | YVES SUCAET | Date: | Tue, 23 Sep 2008 21:35:58 +0000 |
| Subject: | Re: Insert a xml file into a DB | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-45453@lists.php.net to get a copy of this message | ||
Why do you need to store the files in a database? Can't you just keep them on
the hard disk and query them with DOM?
------ Original Message ------
Received: Tue, 23 Sep 2008 03:55:25 PM CDT
From: ERNESTO PENALOZA <penalozae@pdvsa.com>
To: php-db@lists.php.net
Subject: [PHP-DB] Insert a xml file into a DB
Hi there, I've been trying to insert (and retrieve) a xml file into a
postgres DB into a BLOB field, using some nice examples downloaded from the
net, but they don't seem to work. Is there a "standard" way to do this?
I read about a bytea data type and run some examples, but never understood
how this data type works. When I retrieve the data, all I could see was a
number. What should I do with this number? How can I use it to see the xml
file content.?
Thank you in advance.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php