[GENERAL] Blobs

2008-03-14 Thread Marc Horvath
I was wondering if anyone had any working sample code of inserting a blob into a table and then retrieving one from a table for viewing? I'm using Postgres 8.2, the jdbc is postgresql-8.2-504.jdbc3, and the Java is 1.6. I'm also running on a Windows XP Pro box if that matters. Thanks, Marc

Re: [GENERAL] Blobs

2008-03-14 Thread Thomas Kellerer
Marc Horvath, 14.03.2008 12:35: I was wondering if anyone had any working sample code of inserting a blob into a table and then retrieving one from a table for viewing? I’m using Postgres 8.2, the jdbc is postgresql-8.2-504.jdbc3, and the Java is 1.6. I’m also running on a Windows XP Pro

Re: [GENERAL] Blobs in Postgresql

2007-08-18 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/17/07 23:16, Merlin Moncure wrote: On 8/18/07, Ron Olson [EMAIL PROTECTED] wrote: The language is Java. I've made some tests and they work very well for 25meg filesworks exactly the way it should, first time. MySQL had all kinds of nasty

Re: [GENERAL] Blobs in Postgresql

2007-08-18 Thread Shane Ambler
Ron Johnson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/17/07 23:16, Merlin Moncure wrote: On 8/18/07, Ron Olson [EMAIL PROTECTED] wrote: The language is Java. I've made some tests and they work very well for 25meg filesworks exactly the way it should, first time. MySQL had

Re: [GENERAL] Blobs in Postgresql

2007-08-17 Thread Trent Shipley
On Wednesday 2007-08-15 05:52, Gregory Stark wrote: Ron Olson [EMAIL PROTECTED] writes: Hi all- I am evaluating databases for use in a large project that will hold image data as blobs. I know, everybody says to just store pointers to files on the disk... Well not everyone. I usually

Re: [GENERAL] Blobs in Postgresql

2007-08-17 Thread Merlin Moncure
On 8/15/07, Ron Olson [EMAIL PROTECTED] wrote: Hi all- I am evaluating databases for use in a large project that will hold image data as blobs. I know, everybody says to just store pointers to files on the disk...can't do it here...the images are of a confidential nature and access to the

Re: [GENERAL] Blobs in Postgresql

2007-08-17 Thread Ron Olson
The language is Java. I've made some tests and they work very well for 25meg filesworks exactly the way it should, first time. MySQL had all kinds of nasty surprises for me when I first started working with blobs, but I can say that I took my code, changed the driver, and it all works like a

Re: [GENERAL] Blobs in Postgresql

2007-08-17 Thread Merlin Moncure
On 8/18/07, Ron Olson [EMAIL PROTECTED] wrote: The language is Java. I've made some tests and they work very well for 25meg filesworks exactly the way it should, first time. MySQL had all kinds of nasty surprises for me when I first started working with blobs, but I can say that I took my

Re: [GENERAL] Blobs in Postgresql

2007-08-15 Thread Gregory Stark
Ron Olson [EMAIL PROTECTED] writes: Hi all- I am evaluating databases for use in a large project that will hold image data as blobs. I know, everybody says to just store pointers to files on the disk... Well not everyone. I usually do, but if you're not handling these blobs under heavy load

[GENERAL] Blobs in Postgresql

2007-08-14 Thread Ron Olson
Hi all- I am evaluating databases for use in a large project that will hold image data as blobs. I know, everybody says to just store pointers to files on the disk...can't do it here...the images are of a confidential nature and access to the database (and resulting client app) will be highly

Re: [GENERAL] Blobs in Postgresql

2007-08-14 Thread Pavel Stehule
So turning to Postgresql, can I get any recommendations, suggestions and tips on blob handling in the database? The image sizes will be pretty variable, from a few kilobytes to several hundred megabytes, so I need something that will handle the various file sizes, hopefully transparently.

Re: [GENERAL] blobs

2007-07-04 Thread Michael Glaesemann
On Jul 4, 2007, at 11:34 , Cesar Alvarez wrote: is there a way to store pictures or executables in postgres?? From the PostgreSQL FAQ 4.10) What is the difference between the various character types? http://www.postgresql.org/docs/faqs.FAQ.html#item4.10 From the PostgreSQL Documentation

[GENERAL] blobs

2007-07-04 Thread Cesar Alvarez
hello every one is there a way to store pictures or executables in postgres?? Cesar Alvarez. begin:vcard fn:Cesar Alvarez n:;Cesar Alvarez title:Web Development Asesor and Software Enginner version:2.1 end:vcard ---(end of broadcast)--- TIP 6:

Re: [GENERAL] blobs

2007-07-04 Thread Raymond O'Donnell
On 04/07/2007 17:34, Cesar Alvarez wrote: is there a way to store pictures or executables in postgres?? http://www.postgresql.org/docs/8.2/static/datatype-binary.html --- Raymond O'Donnell, Director of Music, Galway Cathedral,

Re: [GENERAL] BLOBS : how to remove them totally

2003-12-22 Thread Nilabhra Banerjee
Thanx for ur suggestion... But I face a new problem now... connection.setAutoCommit works well with postgresql 7.3 .. but with postgresql 7.4 I am getting the error... Error in connection == ERROR: SET AUTOCOMMIT TO OFF is no longer supported I have tried pg73jdbc1.jar and pg73jdbc3.jar .. both

Re: [GENERAL] BLOBS : how to remove them totally

2003-12-20 Thread Nilabhra Banerjee
Thanks a lot for the clue... Now I am comfortably handling the Lrge Objects thru SQL... But unfortunately I could not extract this data to frontend thru java... I tried in two ways but got the same error...after getting the data in Blob or Large Object. Error in connection == FastPath call

Re: [GENERAL] BLOBS : how to remove them totally

2003-12-20 Thread Kris Jurka
On Sat, 20 Dec 2003, [iso-8859-1] Nilabhra Banerjee wrote: But unfortunately I could not extract this data to frontend thru java... I tried in two ways but got the same error...after getting the data in Blob or Large Object. Error in connection == FastPath call returned ERROR: invalid

Re: [GENERAL] BLOBS : how to remove them totally

2003-12-20 Thread Paul Ganainm
[EMAIL PROTECTED] says... That's a good discussion, but it left out at least one useful bit of info about managing large objects: there's a contrib utility (contrib/vacuumlo) that can find and remove large objects that are not referenced anywhere in the database. What is the URL for the

Re: [GENERAL] BLOBs, pg_dump pg_restore

2003-10-02 Thread Howard Lowndes
On Thu, 2 Oct 2003, Tom Lane wrote: Howard Lowndes [EMAIL PROTECTED] writes: On Wed, 1 Oct 2003, Tom Lane wrote: No, because pg_restore has logic to adjust the references to match the new BLOB OIDs. If you have a test case where this fails to work, let's see it ... No, I don't have

Re: [GENERAL] BLOBs, pg_dump pg_restore

2003-10-02 Thread Doug McNaught
Howard Lowndes [EMAIL PROTECTED] writes: OK, I'm convinced, except for one small, but not insignificant hiccup. When you dump a database with the BLOBs, even with the -c option, and then restore that database again with the -c option, you get double the BLOBs. The original BLOBs are there

Re: [GENERAL] BLOBs, pg_dump pg_restore

2003-10-02 Thread Howard Lowndes
On 2 Oct 2003, Doug McNaught wrote: Howard Lowndes [EMAIL PROTECTED] writes: OK, I'm convinced, except for one small, but not insignificant hiccup. When you dump a database with the BLOBs, even with the -c option, and then restore that database again with the -c option, you get double

[GENERAL] BLOBs, pg_dump pg_restore

2003-10-01 Thread Howard Lowndes
My situation is that I am interacting PHP 4.1.2 to PostgreSQL 7.2.2 I have no difficulty inserting and managing BLOBs into the Large Object system table, and I have a user table called images which maintains the relationship between the BLOB loid and the identity that relates to it in my user

Re: [GENERAL] BLOBs, pg_dump pg_restore

2003-10-01 Thread Howard Lowndes
On Wed, 1 Oct 2003, Joshua D. Drake wrote: Hello, We usually have a table called something like file_objects that contains information like the loid, content-type, filesize etc... that we reference. Yes, that's what I also have got: test= \d images Table images

Re: [GENERAL] BLOBs, pg_dump pg_restore

2003-10-01 Thread Tom Lane
Howard Lowndes [EMAIL PROTECTED] writes: Now, my concern is that if I use pg_dump with the --clean or --create, and the --blobs options, and then try a pg_restore from the resulting archive file, I believe the BLOBs will take up a different loid to the one they came from, and hence the

Re: [GENERAL] BLOBs, pg_dump pg_restore

2003-10-01 Thread Howard Lowndes
On Wed, 1 Oct 2003, Tom Lane wrote: Howard Lowndes [EMAIL PROTECTED] writes: Now, my concern is that if I use pg_dump with the --clean or --create, and the --blobs options, and then try a pg_restore from the resulting archive file, I believe the BLOBs will take up a different loid to the

Re: [GENERAL] BLOBs, pg_dump pg_restore

2003-10-01 Thread Tom Lane
Howard Lowndes [EMAIL PROTECTED] writes: On Wed, 1 Oct 2003, Tom Lane wrote: No, because pg_restore has logic to adjust the references to match the new BLOB OIDs. If you have a test case where this fails to work, let's see it ... No, I don't have any example, it is an enquiry. What I am

Re: [GENERAL] Blobs in PostgreSQL

2001-06-27 Thread Richard Church
Any examples available, please? On all of creating, insertion, updateing, setting it to null? From: Alex Pilosov [EMAIL PROTECTED] To: Richard Church [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [GENERAL] Blobs in PostgreSQL Date: Wed, 27 Jun 2001 08:43:33 -0400 (EDT) SQL syntax

[GENERAL] blobs and the toast project ?

2000-11-20 Thread dominique papin
Hi, In june, I had to migrate a web site using paradox tables on a winNT to a Linux box. I had chosen first postgresql 7.0 for its solid-based features. But unfortunately, when I started to migrate my tables, a problem raised : the implementation of blobs in Postgre. My tables stored lots of

[GENERAL] blobs dont rollback ?

2000-10-23 Thread Peter Pilsl
I recently ran into a big problems regarding blobs and rollback with postgreSQL 6.5.3 A table contains many entries and each entry includes a single blob-oid. In a databaseprocessing perlscript I need to delete such a blob and perform the lo_unlink and later I rollback the session without