Thread: regarding image files in DB

regarding image files in DB

From
"sandhya"
Date:
Hi,
   Please explain me is there any difference if i load my files(like gif or any images files) into the data base as text format?
Bcoz,I have loaded my image files in a text format into the database and when i exported it into my local file system the content of the original file(i.e. imported file into DB) and the exported file from the DB are different.
What is the wrong i did?In which format i have to load my file.Is it only for image files or for all types of files(like js,asp,htm etc)
 
Please help me in resolving this issue.
Thanks in advance
Regards,
Sandhya               
 

Re: regarding image files in DB

From
"Andy Shellam"
Date:

I would think a data type with the likes of “binary” (bytea?) would be more appropriate.  It’s like trying to upload an image via FTP in ASCII format – it never comes out the same the other end.

 

 


From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of sandhya
Sent: 11 May 2006 6:19 am
To: Postgres
Cc: sandhya
Subject: [ADMIN] regarding image files in DB

 

Hi,

   Please explain me is there any difference if i load my files(like gif or any images files) into the data base as text format?

Bcoz,I have loaded my image files in a text format into the database and when i exported it into my local file system the content of the original file(i.e. imported file into DB) and the exported file from the DB are different.

What is the wrong i did?In which format i have to load my file.Is it only for image files or for all types of files(like js,asp,htm etc)

 

Please help me in resolving this issue.

Thanks in advance

Regards,

Sandhya               

 

!DSPAM:14,4462c7c434491454781929!

Re: regarding image files in DB

From
"sandhya"
Date:
hi ...
It’s like trying to upload an image via FTP in ASCII format – it never comes out the same the other end.
Which one you are referring ?You mean
If i load files using lo_import into DB and when i export it and see  the content is different right!!!
But i read in postgres document as bytea is only for small files and not ot store large contents.Am i right?
 
I have already a table which stores all my image files as OID format?Is there any alternative to do?
Whether i need to store only image files in bytea format or all files like(js,asp,htm etc) also....
Please explain me..It is very much needed for me..
Thank you,
sandhya
 
 
----- Original Message -----
Sent: Thursday, May 11, 2006 12:56 PM
Subject: RE: [ADMIN] regarding image files in DB

I would think a data type with the likes of “binary” (bytea?) would be more appropriate.  It’s like trying to upload an image via FTP in ASCII format – it never comes out the same the other end.

 

 


From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of sandhya
Sent: 11 May 2006 6:19 am
To: Postgres
Cc: sandhya
Subject: [ADMIN] regarding image files in DB

 

Hi,

   Please explain me is there any difference if i load my files(like gif or any images files) into the data base as text format?

Bcoz,I have loaded my image files in a text format into the database and when i exported it into my local file system the content of the original file(i.e. imported file into DB) and the exported file from the DB are different.

What is the wrong i did?In which format i have to load my file.Is it only for image files or for all types of files(like js,asp,htm etc)

 

Please help me in resolving this issue.

Thanks in advance

Regards,

Sandhya               

 

!DSPAM:14,4462c7c434491454781929!

Re: regarding image files in DB

From
"sandhya"
Date:
Is there any document which explains clarly about how to load files in binart format and how to retrieve it....As far as i read i got only files storing in OID format.
Thanks for your help...
Sandhya
 
 
 
----- Original Message -----
Sent: Thursday, May 11, 2006 12:56 PM
Subject: RE: [ADMIN] regarding image files in DB

I would think a data type with the likes of “binary” (bytea?) would be more appropriate.  It’s like trying to upload an image via FTP in ASCII format – it never comes out the same the other end.

 

 


From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of sandhya
Sent: 11 May 2006 6:19 am
To: Postgres
Cc: sandhya
Subject: [ADMIN] regarding image files in DB

 

Hi,

   Please explain me is there any difference if i load my files(like gif or any images files) into the data base as text format?

Bcoz,I have loaded my image files in a text format into the database and when i exported it into my local file system the content of the original file(i.e. imported file into DB) and the exported file from the DB are different.

What is the wrong i did?In which format i have to load my file.Is it only for image files or for all types of files(like js,asp,htm etc)

 

Please help me in resolving this issue.

Thanks in advance

Regards,

Sandhya               

 

!DSPAM:14,4462c7c434491454781929!