Re: Doubt :- Image_Insert

From: Rod Taylor <pg(at)rbt(dot)ca>
To: sreejith s <getsreejith(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Doubt :- Image_Insert
Date: 2004-11-22 13:54:20
Message-ID: 1101131660.4697.362.camel@home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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.
--

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jerome Alet 2004-11-22 14:09:24 Re: Doubt :- Image_Insert
Previous Message sreejith s 2004-11-22 13:41:44 Doubt :- Image_Insert