Re: Please help with binary file
От | Paul Thomas |
---|---|
Тема | Re: Please help with binary file |
Дата | |
Msg-id | 20030702134148.A4651@bacon обсуждение исходный текст |
Ответ на | Please help with binary file ("Akash Shah" <akash.s@ap.sony.com>) |
Список | pgsql-jdbc |
On 02/07/2003 06:38 Akash Shah wrote: > Hi , > > I am trying to upload binary file to the PostgreSQL 7.3.2 with JDBC3 > driver > supplied by postgresql (pg73jdbc3). The table to which I am trying to > save > the file has a field of OID datatype. And while doing so I get > > "java.sql.SQLException: ERROR: oidin.............." error. > > I tried changing OID data type to bytea. After that code worked and I > tried > file sizes from 4KB to1.6 MB. If file size is larger than that ( even for > a > 10 MB size file ) execution just gets stuck. No error, no exception > thrown. Reaed the docs (5.6 Storing Binary Data). They give sample code of how to use Large Objects with JDBC. I think this will do what you want. HTH -- Paul Thomas +------------------------------+---------------------------------------------+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk | +------------------------------+---------------------------------------------+
В списке pgsql-jdbc по дате отправления: