<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using image (png) as resource in the Talend Managment Console in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-image-png-as-resource-in-the-Talend-Managment-Console/m-p/2302417#M74402</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to send an email with the tSendmail component. My email contains a signature written in html and includes 2 images using the cid mode :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;src=\"cid:"image002.png+"\"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works, but now I would like to store these images as "resource" in the Talend Managment Console instead of adding them using the local path file. I created 2 resources, one for each image and I set up my job in the TMC to use these resources. The problem is that when I call these resources in my job (context.resource_file_image001) the file name is not "image001.png" but something like 3723827328.tmp, and because of that my image is not added to the email signature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my html code looks like this:&lt;/P&gt;&lt;P&gt;src=\"cid:"+context.resource_file_image002+"\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the "Attachments" part of the tSendmail component I have "context.resource_file_image002"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below the result of what I get when I receive the email (i was expected "image001.png" and "image002.png");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000AFVJLAA5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156507i53AF8681CC26C8D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000AFVJLAA5.png" alt="0693p00000AFVJLAA5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how to do that ?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas Letellier&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:13:56 GMT</pubDate>
    <dc:creator>ThomasLetellier</dc:creator>
    <dc:date>2024-11-16T01:13:56Z</dc:date>
    <item>
      <title>Using image (png) as resource in the Talend Managment Console</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-image-png-as-resource-in-the-Talend-Managment-Console/m-p/2302417#M74402</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to send an email with the tSendmail component. My email contains a signature written in html and includes 2 images using the cid mode :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;src=\"cid:"image002.png+"\"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works, but now I would like to store these images as "resource" in the Talend Managment Console instead of adding them using the local path file. I created 2 resources, one for each image and I set up my job in the TMC to use these resources. The problem is that when I call these resources in my job (context.resource_file_image001) the file name is not "image001.png" but something like 3723827328.tmp, and because of that my image is not added to the email signature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my html code looks like this:&lt;/P&gt;&lt;P&gt;src=\"cid:"+context.resource_file_image002+"\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the "Attachments" part of the tSendmail component I have "context.resource_file_image002"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below the result of what I get when I receive the email (i was expected "image001.png" and "image002.png");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000AFVJLAA5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156507i53AF8681CC26C8D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000AFVJLAA5.png" alt="0693p00000AFVJLAA5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how to do that ?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas Letellier&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-image-png-as-resource-in-the-Talend-Managment-Console/m-p/2302417#M74402</guid>
      <dc:creator>ThomasLetellier</dc:creator>
      <dc:date>2024-11-16T01:13:56Z</dc:date>
    </item>
  </channel>
</rss>

