Doubt :- Image_Insert

Doubt :- Image_Insert

am 22.11.2004 14:41:44 von getsreejith

Hello friends I have a doubt,
Is it possible to insert images into a postgres db. What is its
datatype. Is its possible to insert jpeg images. or v have to store
the path into the db. Pls reply. its urgent.

Sreejith

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Re: Doubt :- Image_Insert

am 22.11.2004 14:54:20 von pg

On Mon, 2004-11-22 at 19:11 +0530, sreejith s wrote:
> Hello friends I have a doubt,
> Is it possible to insert images into a postgres db. What is its
> datatype. Is its possible to insert jpeg images. or v have to store
> the path into the db. Pls reply. its urgent.

Use bytea for a datatype. PostgreSQL can comfortably handle 50MB's worth
of data and uncomfortably handle 1GB if you have enough RAM per tuple.

You will need to properly escape the data to do the insertion, but the
documentation (for DBI, PHP, Java, and PostgreSQL for the others) all
clearly explain the steps to be taken.
--


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Re: Doubt :- Image_Insert

am 22.11.2004 15:09:24 von alet

Hi,

On Mon, Nov 22, 2004 at 08:54:20AM -0500, Rod Taylor wrote:
> On Mon, 2004-11-22 at 19:11 +0530, sreejith s wrote:
> > Hello friends I have a doubt,
> > Is it possible to insert images into a postgres db. What is its
> > datatype. Is its possible to insert jpeg images. or v have to store
> > the path into the db. Pls reply. its urgent.
>
> Use bytea for a datatype. PostgreSQL can comfortably handle 50MB's worth
> of data and uncomfortably handle 1GB if you have enough RAM per tuple.

You mean "handle 50MB's worth of data" per tuple or as a whole ?

Same question for 1GB.

this is not really clear...

bye

Jerome Alet

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Re: Doubt :- Image_Insert

am 22.11.2004 15:10:09 von pg

On Mon, 2004-11-22 at 15:09 +0100, Jerome Alet wrote:
> Hi,
>
> On Mon, Nov 22, 2004 at 08:54:20AM -0500, Rod Taylor wrote:
> > On Mon, 2004-11-22 at 19:11 +0530, sreejith s wrote:
> > > Hello friends I have a doubt,
> > > Is it possible to insert images into a postgres db. What is its
> > > datatype. Is its possible to insert jpeg images. or v have to store
> > > the path into the db. Pls reply. its urgent.
> >
> > Use bytea for a datatype. PostgreSQL can comfortably handle 50MB's worth
> > of data and uncomfortably handle 1GB if you have enough RAM per tuple.
>
> You mean "handle 50MB's worth of data" per tuple or as a whole ?

Per tuple. There is no practical limit to how much it can handle as a
whole.

--


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly