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: 200808290745.00414.rterry@gnumed.net (view raw or flat)
Thread:
Lists: sydpug
Hi

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.

Richard

Responses

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-2014 The PostgreSQL Global Development Group