Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 21538 invoked from network); 6 Jun 2006 15:04:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Jun 2006 15:04:55 -0000 Received: (qmail 2897 invoked by uid 500); 6 Jun 2006 15:04:52 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 2791 invoked by uid 500); 6 Jun 2006 15:04:51 -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 2756 invoked by uid 99); 6 Jun 2006 15:04:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2006 08:04:51 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.31] (HELO brmea-mail-1.sun.com) (192.18.98.31) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2006 08:04:47 -0700 Received: from fe-amer-01.sun.com ([192.18.108.175]) by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k56F4QiG009560 for ; Tue, 6 Jun 2006 09:04:26 -0600 (MDT) Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J0G00E011QJBV00@mail-amer.sun.com> (original mail from Farrukh.Najmi@Sun.COM) for derby-user@db.apache.org; Tue, 06 Jun 2006 09:04:26 -0600 (MDT) Received: from [129.150.65.191] by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J0G00DAD1VD1L20@mail-amer.sun.com> for derby-user@db.apache.org; Tue, 06 Jun 2006 09:04:26 -0600 (MDT) Date: Tue, 06 Jun 2006 11:03:29 -0400 From: Farrukh Najmi Subject: Re: A truncation error was encountered tryin,g to shrink BLOB 'XX-RESOLVE-XX' to length 1048576. In-reply-to: <44858890.6020308@apache.org> Sender: Farrukh.Najmi@Sun.COM To: Derby Discussion Message-id: <44859941.8050208@sun.com> MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_LLPmi5MZDSb7ZRXWXIp+gA)" References: <44856D59.6050506@sun.com> <44858890.6020308@apache.org> User-Agent: Thunderbird 1.5.0.2 (X11/20060420) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. --Boundary_(ID_LLPmi5MZDSb7ZRXWXIp+gA) Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT Daniel John Debrunner wrote: > Farrukh Najmi wrote: > > >> Dear Derby team, >> >> I am storing a blob into Derby 10.1.2.1 using hibernate and getting this >> SQLException from Derby (see second stack trace below). >> The blob is just a gig image of size 1.4MB. This seems well within the >> 2GB limit for blobs. What is wrong and how can I fix it? >> > > You probably created the table without specifying a length on BLOB, this > defaults to BLOB(1M). You need to use BLOB(2G). e.g. > > create table T (a int, b BLOB(2G)) > > A bug about this info missing in the doc was reported as DERBY-769 > > http://issues.apache.org/jira/browse/DERBY-769 > > Dan. > > > Thank you Dan! That sounds like the problem. BTW I am curious why the 2G is not the default? Is there a performance / space downside to specifying BLOB(2G) always? -- Regards, Farrukh --Boundary_(ID_LLPmi5MZDSb7ZRXWXIp+gA) Content-type: text/x-vcard; name=farrukh.najmi.vcf; charset=utf-8 Content-transfer-encoding: 7BIT Content-disposition: attachment; filename=farrukh.najmi.vcf begin:vcard fn:Farrukh Najmi n:Najmi;Farrukh email;internet:farrukh.najmi@sun.com tel;work:781-442-9017 url:http://ebxmlrr.sourceforge.net/tmp/farrukhRacePointIcon.jpg version:2.1 end:vcard --Boundary_(ID_LLPmi5MZDSb7ZRXWXIp+gA)--