RE: jdbc large object support ??
От | Peter Mount |
---|---|
Тема | RE: jdbc large object support ?? |
Дата | |
Msg-id | 1B3D5E532D18D311861A00600865478CF1B124@exchange1.nt.maidstone.gov.uk обсуждение исходный текст |
Ответ на | jdbc large object support ?? (John Thorhauer <jthorhauer@phoenixcolor.com>) |
Список | pgsql-interfaces |
The LargeObject & LargeObjectManager classes implement the actual interface to the large objects. setBytes() actually uses those classes, so in theory using the LargeObject classes would be the better. However, setBytes() is part of the standard JDBC api. Personally I prefer the extension classes, as you gain random access to the BLOB. Peter -- Peter Mount Enterprise Support Mushroom Maidstone Borough Council Any views stated are my own, and not those of Maidstone Borough Council -----Original Message----- From: John Thorhauer [mailto:jthorhauer@phoenixcolor.com] Sent: Thursday, July 20, 2000 12:08 PM To: postgres-inter Subject: Re: [INTERFACES] jdbc large object support ?? Peter Mount wrote: > > Large Objects have been supported for years - just not via streams. > > Stream support is simply passing an InputStream (say from a file) directly > to a large object in the database. The ImageViewer example shows the other > two ways, using setBytes() and using our own extensions. I tried the setBytes method and it worked great! Thanks for the help. However, I have another question. If I understand correctly I can use the setBytes() method or the getLargeObjectAPI() method. Is one preferred over the other? Does either have any distinct problems that I should be aware of? I know these are real general questions but I am trying to make sure that I start off going in the right direction with this stuff ;-) Thanks again, John -- ******************************** ** John Thorhauer ** jthorhauer@phoenixcolor.com ********************************
В списке pgsql-interfaces по дате отправления: