Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 67660 invoked from network); 15 Feb 2005 20:04:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Feb 2005 20:04:45 -0000 Received: (qmail 60084 invoked by uid 500); 15 Feb 2005 20:04:40 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 60035 invoked by uid 500); 15 Feb 2005 20:04:40 -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 59987 invoked by uid 99); 15 Feb 2005 20:04:39 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web53001.mail.yahoo.com (HELO web53001.mail.yahoo.com) (206.190.39.191) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 15 Feb 2005 12:04:38 -0800 Received: (qmail 66497 invoked by uid 60001); 15 Feb 2005 20:04:34 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=lRHFMvtTmOo/nz20J2KlZ+3N6GpJnHItgcbMc7qpAXQ1f2mTIKhavQSiOAmNep/7qrpCZuBtVGJZgSLcHC9HFIQrG1TwPfYWOmVzCfwgJyJzjBViTbU+644tvjgsQd9bdFjL2gX7sk9H70b6oxUk2SQhnaIn3Mz4BT8mAw/Jwrw= ; Message-ID: <20050215200434.66495.qmail@web53001.mail.yahoo.com> Received: from [129.42.184.35] by web53001.mail.yahoo.com via HTTP; Tue, 15 Feb 2005 12:04:34 PST Date: Tue, 15 Feb 2005 12:04:34 -0800 (PST) From: Suavi Ali Demir Subject: Re: How to set value to Blob field of derby-made-table. To: Derby Discussion In-Reply-To: <20050215194248.93684.qmail@web31103.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N How about you first serialize your object into a byte[] and then do a setBytes() ? And then to read it back you can do getBytes() and then deserialize from that byte[]. Would that work? Regards, Ali --- Mithun Ruikar wrote: > Hello there , > > I have problem while setting Blob value to table > created in derby. > I had created : a datasource by parameter > create=true. > and then created new table in it with one column > with Datatype as Blob. > > But when I tried to setObject value to this column ( > by serializable object awt.color) > It gave derby exception : trying to get Blob value > from Object type. > > setBlob also didnt work with error saying : this > method is undefined for (int , Object) > and if i typecast it to (int , (Blob) Object) : I > got classcastexception. > > please tell me how to set this value to blob field > > -- mithun > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Search presents - Jib Jab's 'Second Term'