Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Send byte[] file as email attachment

Dear community

 

I'm need to Talend and not sure what the correct way is to handle email attachments.

 

I'm sending a  binary file via a tRestRequest which I would like to send via email (attachment). As far as I can tell, the mail attachment parameter only accepts a String List. 

 

Any ideas?

 

Regards,

Jaco 

Labels (3)
3 Replies
Anonymous
Not applicable
Author

Here is some more Infos:

 

0683p000009M0kq.png0683p000009M0kv.png

 

I can see that the binary file is read via tLogRow, just not sure how I can add this as an email attachment. The process should be able to attach any type of file.

 

Many thanks!

Regards,

Jaco

Anonymous
Not applicable
Author

Hello,

Sorry for delay!

In attachments field of tsendmail component, you need to enter the path to the attached file or the path to the folder if all files directly under it will be attached.

Do you want to attach automatically an attachment to an email sending via REST?

 

Best regards

Sabrina

 
Anonymous
Not applicable
Author

Hi Sabrina and thanks for the reply.

 

I think we will be more efficient if you would read the complete ticket.

 

My question was how can I attach a file (in BYTE[]) which was send via REST. I know how to attach a file from a file path. I can also save the received file to the file system, but the goal is to send it directly as attachment.

 

Goal is to build a message service so that I can send a mail with attachment via a REST connector.

 

Thanks!

Jaco