[Zope] storing binary data in an external database

Bryan C. Andregg bryan.andregg@duke.edu
Wed, 6 Mar 2002 16:31:42 -0500


--SWsnvgFfkTS2ATo5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I need to be able to store images and the like in a postgres table. It would
seem that <dtml-sqlvar> isn't going to be what I want because there isn't a
type definition for what I want (the data isn't exactly a string, right?).

I'm reading in the file contents using REQUEST['file'].read(), which works
great for ascii text files, but not binaries.

Any help appreciated.
--=20
Bryan C. Andregg		Duke University Medical Center
 Programmer			Dept. of Anesthesiology
 e <bryan.andregg@duke.edu>
 p +1 919 684 6201

--SWsnvgFfkTS2ATo5
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8hoq+j9pElyS/cakRAlAEAJ0euJRs2NArqyBHHF/OQFllJ/9ZvwCeKe+f
byhge5Wxdh2kT99A3QBYiSM=
=ORsp
-----END PGP SIGNATURE-----

--SWsnvgFfkTS2ATo5--