Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 2501 invoked from network); 1 Jul 2007 16:54:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jul 2007 16:54:46 -0000 Received: (qmail 3009 invoked by uid 500); 1 Jul 2007 16:54:45 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 2990 invoked by uid 500); 1 Jul 2007 16:54:45 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 2971 invoked by uid 99); 1 Jul 2007 16:54:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jul 2007 09:54:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jul 2007 09:54:41 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1I52gn-0004bj-1e for user-java@ibatis.apache.org; Sun, 01 Jul 2007 09:54:21 -0700 Message-ID: <11383532.post@talk.nabble.com> Date: Sun, 1 Jul 2007 09:54:20 -0700 (PDT) From: Mark P Ashworth To: user-java@ibatis.apache.org Subject: Re: MySQL and Blob In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: info@connext.co.za References: <11379634.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Good Day, At first I did not have the jdbcType or javaType and then systematically added them because I was getting the same error the whole time. I used the php admin interface to add file data in the blob data field, and when I retrieve the data is present, I am just not sure how to get the insert to work. Regards, Mark P Ashworth Larry Meadors-2 wrote: > > Did you try it w/o the jdbcType and javaType? > > Larry > > > On 7/1/07, Mark P Ashworth wrote: >> >> Good Day, >> >> I am trying to insert a byte[] field into a MySQL database. >> >> >> >> >> insert into email ( >> name, >> subject, >> from, >> body, >> type >> ) values ( >> #name#, >> #subject#, >> #from#, >> #body#, >> #type# >> ) >> >> >> When I look at the SQL generated I see that it has not converted the >> body >> field correctly so that MySQL will accept the statement. >> >> insert into email ( name, subject, from, body, >> type ) values ( 'register', 'Test', >> 'info@connext.co.za', '[B@11381e7', '' ) >> >> I am using iBatis 2.3.0.677 >> >> Regards, >> Mark P Ashworth >> -- >> View this message in context: >> http://www.nabble.com/MySQL-and-Blob-tf4007004.html#a11379634 >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/MySQL-and-Blob-tf4007004.html#a11383532 Sent from the iBATIS - User - Java mailing list archive at Nabble.com.