From: | Reid Thompson <reid(dot)thompson(at)ateb(dot)com> |
---|---|
To: | Jason Long <mailing(dot)list(at)supernovasoftware(dot)com> |
Cc: | Sam Mason <sam(at)samason(dot)me(dot)uk>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Use PSQLFS for photo storage |
Date: | 2009-01-14 12:49:18 |
Message-ID: | 1231937358.15728.2.camel@raker.ateb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, 2009-01-13 at 18:22 -0600, Jason Long wrote:
> Never used Python or Perl. I use primarily Java. I was thinking of
> doing something like
> INSERT INTO pictures (filename,data) VALUES ('filename','/path/to/my/image/img0009.jpg');
>
> But, this syntax doesn't seem to be supported.
>
> Maybe I can use a custom C function to get the contents of the file. Then do something like
>
> INSERT INTO pictures (filename,data) VALUES ('/path/to/my/image/img0009.jpg',getBinaryFileContents('/path/to/my/image/img0009.jpg'));
>
> Is there some postgres contrib for something like this?
>
>
>
>
Simple java stub test program attached. Modify to meet your needs. See
file header for URL of original example.
Attachment | Content-Type | Size |
---|---|---|
HelloPostgresql.java | text/x-java | 4.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | A. Kretschmer | 2009-01-14 12:59:48 | Re: simple limit of decimals |
Previous Message | pere roca | 2009-01-14 12:43:35 | simple limit of decimals |