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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse sydpug by date

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