Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 29692 invoked from network); 27 May 2008 13:59:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 May 2008 13:59:59 -0000 Received: (qmail 77221 invoked by uid 500); 27 May 2008 13:59:54 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 77205 invoked by uid 500); 27 May 2008 13:59:54 -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 77187 invoked by uid 99); 27 May 2008 13:59:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2008 06:59:53 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.43.133] (HELO sca-es-mail-2.sun.com) (192.18.43.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2008 13:58:58 +0000 Received: from fe-sfbay-10.sun.com ([192.18.43.129]) by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m4RDxJQ8017528 for ; Tue, 27 May 2008 06:59:19 -0700 (PDT) Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0K1J001015H6KI00@fe-sfbay-10.sun.com> (original mail from Richard.Hillegas@Sun.COM) for derby-user@db.apache.org; Tue, 27 May 2008 06:59:19 -0700 (PDT) Received: from richard-hillegas-computer.local ([129.150.17.90]) by fe-sfbay-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0K1J0015C5IUZT00@fe-sfbay-10.sun.com> for derby-user@db.apache.org; Tue, 27 May 2008 06:59:19 -0700 (PDT) Date: Tue, 27 May 2008 06:59:19 -0700 From: Rick Hillegas Subject: Re: How to store many large files in the database? In-reply-to: <00ec01c8bd1c$0f721d90$32b2a8c0@Sally> Sender: Richard.Hillegas@Sun.COM To: Derby Discussion Message-id: <483C13B7.9010200@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <00cd01c8bc74$b5d0d710$32b2a8c0@Sally> <1372F93D-548C-44A9-B53D-8291B72C9276@sixfriedrice.com> <5627810d0805231042o181edf0etb045aa8069d0e0fa@mail.gmail.com> <00ec01c8bd1c$0f721d90$32b2a8c0@Sally> User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) X-Virus-Checked: Checked by ClamAV on apache.org Christian Gruber wrote: > Thanks for all the replys! > > I know it is not the best solution to store large files in a database, > but it was the easiest in an ejb3 environment. > My knowledge of the maximum file size seems to be a bit outdated. What > I have found now is a sizelimit for Fat32 of 4 GB, NTFS has no limit. > I hope no one has used Fat32 on his WindowsXP installation and my > fears are causeless. > > None the less does anybody know of a working example of a table > function that returns a part of the filesystem as a ResultSet? > > Thanks again! > Christian Hi Christian, If what you need is an example of a table function which wraps a flat file, then please look in the demo directory or the Derby source code for org.apache.derbyDemo.vtis.example.PropertyFileVTI. That's a table function which presents a property file as a 2 column table. In the same package, there are some other table functions which wrap log files and reports. Hope this helps, -Rick