This is axis2 version1.4, if I confused you. Will be glad if someone can help me.
From: Shehan Simen [mailto:[EMAIL PROTECTED] Sent: Wednesday, 9 July 2008 5:07 PM To: [email protected] Subject: MTOM axis1.4 OutOfMemory for large file transfer Hi, I have OutofMemory exception problem with axis1.4, when I try to receive files. Were you able to resolve it? It is working fine with small attachments around 2MB. I checked the soap message in tcpMon, but still I see the file binary data inside the soap message. (not out side envelope). I am using the datahandler type, which is used for base64binary attachment My client code is as follows. FileOutputStream os = new FileOutputStream("C:\\temp\\images\\iiad.zip"); FileRawDataType fileRawDataType = fileAttachmentType.getFileRawData(); DataHandler dataHandler = fileRawDataType.getFileRawDataType(); dataHandler.writeTo(os); os.flush(); os.close(); fileRawDataType is a class defined by me for dataHandler type. I enabled the file caching in the axis2.xml, also the MTOM. Do you have any idea? Thankx. Regards, Shehan
