Skip to Content
author's profile photo Former Member
Former Member

Zip file attachment

Hello,

we are searching for an answer to the following problem...

We are trying to send an email with an attached file via the email adapter. We are using the mail package format for sending the email. The content of the mail package is converted into an file attachment in the mail adapter. Because we have to define the attachment name we use the MessageTransformationBean to change it.

Now we want to zip the attached file... Can anyone give me a hint, how to realize it? Have we write a module, which we have to call inside the mail adapter? If so, where must we place this module in the EJB sequence?

Thank you for your replies...

Best regards,

Lars

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2005 at 04:56 PM

    Hi Lars

    I am not sure if this suggestion might work, but in your MessageTransformationBean, in the parameter Transform.ContentDisposition try passing "xyz.zip" instead of 'xyz.txt' and see what you get as output.

    cheers

    Sameer

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 10, 2005 at 07:36 PM

    Hi Lars

    I think the only way now is to do some module programming. We did zipping in one of our proof-of-concept application for file adapter with additional attachments. I can send you the code if you need it.

    Regards

    siva

    sivakup@apci.com

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.