Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 47257 invoked from network); 6 Mar 2009 10:25:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2009 10:25:24 -0000 Received: (qmail 16702 invoked by uid 500); 6 Mar 2009 10:25:22 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 16665 invoked by uid 500); 6 Mar 2009 10:25:22 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 16656 invoked by uid 99); 6 Mar 2009 10:25:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Mar 2009 02:25:22 -0800 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcaddu-derby-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Mar 2009 10:25:14 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LfXEV-0008B6-MW for derby-user@db.apache.org; Fri, 06 Mar 2009 10:24:47 +0000 Received: from static-87-79-70-172.netcologne.de ([87.79.70.172]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Mar 2009 10:24:47 +0000 Received: from peter.nabbefeld by static-87-79-70-172.netcologne.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Mar 2009 10:24:47 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: derby-user@db.apache.org From: epdv Subject: Re: How to read blobs? Date: Fri, 06 Mar 2009 11:24:38 +0100 Lines: 29 Message-ID: References: <5627810d0903050937v1fb851doe4be24dcb16b75c7@mail.gmail.com> <49B0D50F.7060608@Sun.COM> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: static-87-79-70-172.netcologne.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1b3pre) Gecko/20081202 SeaMonkey/2.0a2 In-Reply-To: <49B0D50F.7060608@Sun.COM> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Kristian Waagan schrieb: > epdv wrote: >> >> Thank You for the answer - but I've also got problems with >> autocommit(false): Recordset not open. How can I get the InputStream >> then, and can I access the opened InputStream independently from the >> blob, i.e. can I read the stream still after freeing the blob? > > You can operate on the Blob until you commit or rollback if you turn off > autocommit. > As soon as you call Blob.free(), the Blob object, or any objects > obtained from it (like an InputStream), cannot be used any more. This > holds regardless of whether you have committed/aborted or not. > If I understand correctly, I'll need to open one connection per opened (not yet closed) stream then. How can I open a pooled connection then, without using J2EE (can only find docs for j2ee ... :-( )? > The problem you see with the result set, must be something else. > I'll look at this later, as cannot use my current code, thus problems might disappear just while doing my changes, as a "side-effect" ;-) Kind regards Peter