Skip site navigation (1) Skip section navigation (2)

Inserting a image into a database

From: richard terry <rterry(at)gnumed(dot)net>
To: sydpug(at)postgresql(dot)org
Subject: Inserting a image into a database
Date: 2008-08-28 21:45:00
Message-ID: (view raw or whole thread)
Lists: sydpug

I wondered if anyone could give me a few lines of sample code on basic, 
showing how to insert a file you have on your hard drive, into  a data field 
in postgres. I'm totally stumped (seems that using the bytea field is the way 
to go from reading the doc's.

Thanks in advance.



sydpug by date

Next:From: Andrew BoagDate: 2008-08-28 22:49:50
Subject: Re: Inserting a image into a database
Previous:From: Charles DuffyDate: 2008-08-26 13:51:17
Subject: SydPUG meeting Wednesday September 3rd

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group