Save and load jpg in a PostgreSQL database - Mailing list pgsql-general

From lfmartinelli
Subject Save and load jpg in a PostgreSQL database
Date
Msg-id 1288875619752-3249969.post@n5.nabble.com
Whole thread Raw
Responses Re: Save and load jpg in a PostgreSQL database
Re: Save and load jpg in a PostgreSQL database
List pgsql-general
Hi,

My name is Fernando, i work with C# and PostgreSQL. I need save a jpg in a
PostgreSQL table.
How do i this? I read in a forum to use this to save in database:

INSERT INTO table (image) VALUES (pg_escape_bytea(image.jpg))

Don't i need convert image file to binary before save in a database?
How get i this image to a variable using c#?

Please help me!

Thanks.
--
View this message in context:
http://postgresql.1045698.n5.nabble.com/Save-and-load-jpg-in-a-PostgreSQL-database-tp3249969p3249969.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

pgsql-general by date:

Previous
From: Adrian Johnson
Date:
Subject: problem with select
Next
From: Gavin Burrows
Date:
Subject: Please Help...