Tuesday, January 26, 2021

File to Mail (with static Filename)

This can be useful for requirements when the user/business wants the payload file during testing or for other purposes.

No ESR Objects involved.

In ID,

Create File/NFS/SFTP sender channel:

Enable ASMA

















RECEIVER MAIL CHANNEL:




























OUTPUT MAIL:












This will work for Text files or XML files at Sender side.
For pdf's,  change content type to application/pdf  and filename =   sample.pdf
For CSV files, FCC has to be used at the sender side along with the above module.
For SFTP sender, Messagetransform bean module can be used for FCC as well as configuring the content type & disposition.

Content-Disposition response header is a header indicating if the content is expected to be displayed inline in the browser, that is, as a Web page or as part of a Web page, or as an attachment, that is downloaded and saved locally.


The Content-Type entity header is used to indicate the media type of the resource. In responses, a Content-Type header tells the client what the content type of the returned content actually is. ... In requests, (such as POST or PUT ), the client tells the server what type of data is actually sent.





--------------------------------------------------AMOR FATI -----------------------------------------------













No comments:

Post a Comment