Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 6974 invoked from network); 17 Nov 2005 17:27:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Nov 2005 17:27:24 -0000 Received: (qmail 13221 invoked by uid 500); 17 Nov 2005 17:27:22 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 13194 invoked by uid 500); 17 Nov 2005 17:27:21 -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 13183 invoked by uid 99); 17 Nov 2005 17:27:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2005 09:27:21 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.36] (HELO brmea-mail-4.sun.com) (192.18.98.36) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2005 09:28:55 -0800 Received: from fe-amer-09.sun.com ([192.18.108.183]) by brmea-mail-4.sun.com (8.12.10/8.12.9) with ESMTP id jAHHR0D7005372 for ; Thu, 17 Nov 2005 10:27:00 -0700 (MST) 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 <0IQ40060107YFL00@mail-amer.sun.com> (original mail from Nathan.Maves@Sun.COM) for user-java@ibatis.apache.org; Thu, 17 Nov 2005 10:26:59 -0700 (MST) Received: from [10.0.4.184] ([192.18.101.66]) by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0IQ4006QD0GZP58G@mail-amer.sun.com> for user-java@ibatis.apache.org; Thu, 17 Nov 2005 10:26:59 -0700 (MST) Date: Thu, 17 Nov 2005 10:29:06 -0700 From: Nathan Maves Subject: Re: Inserting Blob Data in Oracle 9i In-reply-to: <083743079D8BF041B38B3E2BE77A6F53080C1912@hwdsaddc.msdc.hcltech.com> Sender: Nathan.Maves@Sun.COM To: user-java@ibatis.apache.org Message-id: <583407EF-2EA7-496F-BA18-1D9B3779459D@sun.com> MIME-version: 1.0 X-Mailer: Apple Mail (2.746.2) Content-type: multipart/alternative; boundary="Boundary_(ID_UZvffehJf4cbNCuZA0t4TA)" References: <083743079D8BF041B38B3E2BE77A6F53080C1912@hwdsaddc.msdc.hcltech.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Boundary_(ID_UZvffehJf4cbNCuZA0t4TA) Content-type: text/plain; format=flowed; delsp=yes; charset=US-ASCII Content-transfer-encoding: 7BIT Well for starters I am not sure why you wrote your own Custom Type Handler (CTH). Both the CLOB and BLOB handlers are now built into iBatis. But in any case I think you will find your answer here... http://opensource2.atlassian.com/confluence/oss/display/IBATIS/How+do +I+use+a+BLOB+or+CLOB Looks towards the bottom. Nathan On Nov 17, 2005, at 9:48 AM, Manikandan.R, ISDC Chennai wrote: > Hi, > We are doing some feasibility analysis on IBatis SqlMapper. We are > using Oracle 9i database and ojdbc14.jar as driver, and we have > external Typehandlers for clob and blob data and are matched to > String and byte array respectively. As for as fetching blob and > clob from database there is no issue. Whenever we tried to insert > some binary data of size greater than 4k we come across an issue of > 'connection reset by peer - socket write error'. We persume that > this error is because of taking lot of time to execute the query. > What could be the change we need to do, to resolve this issue. > > thanks in advance, > Manikandan R. > --Boundary_(ID_UZvffehJf4cbNCuZA0t4TA) Content-type: text/html; charset=ISO-8859-1 Content-transfer-encoding: QUOTED-PRINTABLE Well for starters I am not su= re why you wrote your own Custom Type Handler (CTH).=A0 Both the CLOB= and BLOB handlers are now built into iBatis.

But in any case I think you will find y= our answer here...

http://opensource2.atlassi= an.com/confluence/oss/display/IBATIS/How+do+I+use+a+BLOB+or+CLOB<= /DIV>

Looks towa= rds the bottom.

Nathan

On Nov 17, 2005, at 9:48 AM, Man= ikandan.R, ISDC Chennai wrote:

Hi,
= We are doing some feasibility analysis on IBatis Sql= Mapper. We are using Oracle 9i database and ojdbc14.jar as driver, an= d we have external Typehandlers for clob and blob data and are matche= d to String and byte array respectively. As for as fetching blob and = clob from database there is no issue. Whenever we tried to insert som= e binary data of size greater than 4k we come across an issue of 'con= nection reset by peer - socket write error'. We persume that this err= or is because of taking lot of time to execute the query. What could = be the change we need to do, to resolve this issue.

thanks in advance,
Manikanda= n R.


--Boundary_(ID_UZvffehJf4cbNCuZA0t4TA)--