[
https://issues.apache.org/jira/browse/AXIS2-4707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12867829#action_12867829
]
Amila Chinthaka Suriarachchi commented on AXIS2-4707:
-----------------------------------------------------
have you set the enableMTOM parameter to true? by default it is false.
<parameter name="enableMTOM">true</parameter>
> Axis2 cannot transfer file from server to client (downloading) with MTOM
> ------------------------------------------------------------------------
>
> Key: AXIS2-4707
> URL: https://issues.apache.org/jira/browse/AXIS2-4707
> Project: Axis2
> Issue Type: Bug
> Components: transports
> Affects Versions: 1.5.1
> Environment: code is tested on the Axis2 web server and Jboss 5.1.
> Reporter: Tao Gui
> Attachments: mtom.zip, mtomdownload.txt, mtomupload.txt
>
>
> Hi, Axis2 Dev Team,
> Axis2 cannot transfer file from server to client (downloading) with MTOM for
> me. The transfer also fails if the file is bigger than 10MB.
> Axis2 has a sample code (\mtom) to transfer a file from client to server
> (uploading, called attachement in the code) with MTOM. It works for me and
> can transfer file up to 10GB. I added the function to download the file (from
> server to client, please see the attached code.). Using TCPMON, i see the
> data being downloaded is "Content-Transfer-Encoding: 8bit" (please see
> attached mtomdownload.txt), not "binary" as for the data uploaded (please see
> attached mtomupload.txt). If MTOM is working, it should be "binary". When the
> file being downloaded is bigger than 10MB, client will throw OutOfMemery.
> I tested the code on the Axis2 web server and Jboss 5.1.
> I also tried Thilina's code to download with MTOM ,
> http://thilinag.blogspot.com/2008/04/download-file-from-axis2-web-service.html.
> The data is not downloaded as binary either.
> Furthermore, the attachment caching only works for me on the server side.
> Configuring attachment caching on the client (setting
> setProperty(Constants.Configuration.CACHE_ATTACHMENTS, Constants.VALUE_TRUE)
> and setProperty(Constants.Configuration.ATTACHMENT_TEMP_DIR,
> "c:\\temp\\axistmp2\\")) doesn't work and doesn't have any effect (no cache
> file generated) for me either.
> Thanks,
> Tao
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]