axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doss Markus" <>
Subject Attachment size
Date Tue, 04 Feb 2003 10:26:35 GMT
Due to the problems with lost memory using base 64 encoded images in
services yesterday I tried today to use attachments. It works fine if I
attach files (tif images) with file size not greater than 11-12 MB.
Files with sizes greater than 12MB were not written from the server
service. Are the any limitations for the filesize or any possible
solutions for files with 20, 30 or more MB.
My datahandler in the service client:
params.addElement (new Parameter("name", String.class, "hallo", null));
DataSource ds = new ByteArrayDataSource(new File("c /21.tif"),null);
DataHandler dh = new DataHandler(ds);
Parameter("image",javax.activation.DataHandler.class, dh, null));
The service :
DataSource ds = dh.getDataSource();
ByteArrayDataSource bds = new
            FileOutputStream fos = new
Thanks Markus

View raw message