Re: java.lang.OutOfMemoryError in a MTOM client

2012-06-14 Thread ggarciao
I forgot to mention that I'm using a /FileDataSource/ to create the /DataHandler /that I'm sending from the client: *FieldType data = new FieldType(); data.setName("data"); FileDataSource fileDataSource = new FileDataSource(file); fileDataSource.setFileTypeMap(new MimetypesFileTypeMap()); data.se

java.lang.OutOfMemoryError in a MTOM client

2012-06-14 Thread ggarciao
I'm creating a webservice client to send huge files using MTOM. The server side (CXF) is implemented correctly: MTOM is enabled and is using DataHandler instead of byte[]. I tested the server side with not-that-big files and is working as expected: the client is sending and XOP attachment and the s