Thanks. I looked into this further and it seems that both content-type and content-disposition (but not content-id) can be used to indicate the file name, e.g.

Content-type: image/jpeg; name="mypic.jpg"
Content-disposition: attachment; filename="mypic.jpg"


From: "Liu, Tao" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: "'[email protected]'" <[email protected]>
Subject: RE: Indicating filenames during file attach
Date: Fri, 6 Jan 2006 18:13:29 -0500

You may look at these two methods in Axis 1.x.

org.apache.axis.attachments.AttachmentPart.setContentId(ID); // in client if
uploading
org.apache.axis.attachments.AttachmentPart.getContentId(ID); // in service
if uploading

You can set/get the filename as a content ID.

Tao

-----Original Message-----
From: Jarmo Doc [mailto:[EMAIL PROTECTED]
Sent: Friday, January 06, 2006 8:06 AM
To: [email protected]
Subject: RE: Indicating filenames during file attach

But AttachmentPart::setAttachmentFile(String path) is protected, not public.

I'm getting the impression that I need to pass the original filenames of the
attachments independently of the attachments themselves.


>From: "Tootell, James" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: <[email protected]>
>Subject: RE: Indicating filenames during file attach
>Date: Thu, 5 Jan 2006 19:01:34 -0500
>
>If you wrote the component that sends the attachment to the web service,
>you should be able to specify the filename.  In SAAJ, it looks like
>setContent(Object object, String contentType) only attaches the file.
>Calling setAttachmentFile(String path) should allow you to name the
>attachment.  "Axis102030.att" may just be some kind of default.
>
>HtH,
>JT

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee(r)
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

Reply via email to