<?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 Re: Uploading a file to tREST API in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292474#M65543</link>
    <description>&lt;P&gt;This looks like a file/folder permission issue. Have you tried moving the file to a location where everyone has permission?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2018 09:48:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-28T09:48:04Z</dc:date>
    <item>
      <title>Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292469#M65538</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am calling a REST API which has multiple input parameters and one of the input parameters is a file (CSV).&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can I load a file using tREST component?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 21:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292469#M65538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-26T21:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292470#M65539</link>
      <description>&lt;P&gt;It would help to see the API specification for this. But you may be able to just use the tFileFetch (&lt;A href="https://help.talend.com/reader/jomWd_GKqAmTZviwG_oxHQ/F4QsQrja9IQEa_kKqmBfNQ" alt="https://help.talend.com/reader/jomWd_GKqAmTZviwG_oxHQ/F4QsQrja9IQEa_kKqmBfNQ" target="_blank"&gt;https://help.talend.com/reader/jomWd_GKqAmTZviwG_oxHQ/F4QsQrja9IQEa_kKqmBfNQ&lt;/A&gt;). Don't be put off by the name, this component can be used to both download files and upload them.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 22:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292470#M65539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-26T22:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292471#M65540</link>
      <description>&lt;P&gt;Thanks for the reply. However i have to pass a bunch of parameters in the body of the request as shown in the postman screenshot below. How do you propose I do that using tFileFetch? Any example to share perhaps?&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsLc"&gt;Capture.PNG&lt;/A&gt;</description>
      <pubDate>Mon, 26 Feb 2018 22:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292471#M65540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-26T22:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292472#M65541</link>
      <description>&lt;P&gt;The tFileFetch sends a multipart message in the body. This contains the file and the other parameters. It is unfortunate that I cannot try this out as I do not have access to your service. Web services are notoriously tricky to work out without having access to them. But have you tried setting our parameters in the parameters section of the tFileFetch?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 23:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292472#M65541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-26T23:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292473#M65542</link>
      <description>&lt;P&gt;I tried with the tFileFetch component and it seems to be hitting the service but returns with the below error message. I get the header of the response back but not the body and I dont know from where its trying to pick the "\defaultfilename.txt". Also, if I try to run the component the second time it fails. And if I change the file name to something else it runs again with the below message. Do you know whats going on here.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"Starting job Copy_of_testRestAPI at 15:35 27/02/2018.&lt;/P&gt; 
&lt;P&gt;[statistics] connecting to socket on port 3694&lt;BR /&gt;[statistics] connected&lt;BR /&gt;Status Line: HTTP/1.1 200 OK&lt;BR /&gt;*** Response Header ***&lt;BR /&gt;Server: nginx&lt;BR /&gt;Date: Tue, 27 Feb 2018 20:35:45 GMT&lt;BR /&gt;Content-Type: application/json&lt;BR /&gt;Content-Length: 612&lt;BR /&gt;Connection: keep-alive&lt;BR /&gt;Vary: Accept-Encoding&lt;BR /&gt;X-Powered-By: Express&lt;BR /&gt;Vary: Origin&lt;BR /&gt;X-Content-Type-Options: nosniff&lt;BR /&gt;X-XSS-Protection: 1; mode=block&lt;BR /&gt;Strict-Transport-Security: max-age=86400; includeSubDomains&lt;BR /&gt;Exception in component tFileFetch_1 (Copy_of_testRestAPI)&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;java.io.FileNotFoundException: \defaultfilename.txt (Access is denied)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;at java.io.FileOutputStream.open0(Native Method)&lt;BR /&gt;at java.io.FileOutputStream.open(Unknown Source)&lt;BR /&gt;at java.io.FileOutputStream.&amp;lt;init&amp;gt;(Unknown Source)&lt;BR /&gt;at java.io.FileOutputStream.&amp;lt;init&amp;gt;(Unknown Source)&lt;BR /&gt;at amgen_data_validations.copy_of_testrestapi_0_1.Copy_of_testRestAPI.tFileFetch_1Process(Copy_of_testRestAPI.java:618)&lt;BR /&gt;at amgen_data_validations.copy_of_testrestapi_0_1.Copy_of_testRestAPI.runJobInTOS(Copy_of_testRestAPI.java:890)&lt;BR /&gt;at amgen_data_validations.copy_of_testrestapi_0_1.Copy_of_testRestAPI.main(Copy_of_testRestAPI.java:733)&lt;BR /&gt;[statistics] disconnected"&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsMG"&gt;1.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ls6k"&gt;2.PNG&lt;/A&gt;</description>
      <pubDate>Tue, 27 Feb 2018 20:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292473#M65542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-27T20:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292474#M65543</link>
      <description>&lt;P&gt;This looks like a file/folder permission issue. Have you tried moving the file to a location where everyone has permission?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 09:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292474#M65543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-28T09:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292475#M65544</link>
      <description>&lt;P&gt;yes the file is in "c://" with read write access to everyone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, like I said if I change the name of the file it works fine and then in the above case it got the header back but not the body.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 17:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292475#M65544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-28T17:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292476#M65545</link>
      <description>&lt;P&gt;Attaching my settings from tFileFetch. Does this seem to be right? Any pointers?&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsMf"&gt;3.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsJP"&gt;4.PNG&lt;/A&gt;</description>
      <pubDate>Wed, 28 Feb 2018 17:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292476#M65545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-28T17:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292477#M65546</link>
      <description>&lt;P&gt;Your settings look fine.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The defaultfilename.txt comes from some default code for the tFileFetch to set a destination filename. You could maybe try&amp;nbsp;ticking "Use cache to save resource" as a workaround (if that is causing this, it is a bug).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is really difficult to resolve without having access to the service. Documentation and implementations of services can vary wildly and you really need to treat using them with Talend like a debugging exercise. If I were you I would try this method demonstrated here:&amp;nbsp;&lt;A href="http://talend.nl/talend-tech-tip-calling-a-rest-service-for-file-upload/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://talend.nl/talend-tech-tip-calling-a-rest-service-for-file-upload/&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 17:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292477#M65546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-28T17:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292478#M65547</link>
      <description>&lt;P&gt;Ultimately I did write the JAVA code to call the API. Which is not the ideal way to do it. So going to close this topic and have opened another one to see if anyone from Talend can address it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 20:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292478#M65547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-09T20:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292479#M65548</link>
      <description>&lt;P&gt;rhall_2_0&lt;/P&gt; 
&lt;P&gt;I am very interested in how&amp;nbsp;&lt;SPAN&gt;tFileFetch&amp;nbsp;for uploading a file to an API&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;however the link you specified in your response is invalid&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;could you please either send me a new link or provide the necessary instructions on how to use this connector&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;you have always been helpful&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;thank you in advance&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;mjan100917&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jan 2019 16:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292479#M65548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-20T16:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292480#M65549</link>
      <description>rhall_2_0 
&lt;BR /&gt; 
&lt;BR /&gt;I am very interested in how&amp;nbsp;tFileFetch&amp;nbsp;for uploading a file to an API 
&lt;BR /&gt;however the link you specified in your response is invalid 
&lt;BR /&gt; 
&lt;BR /&gt;could you please either send me a new link or provide the necessary instructions on how to use this connector 
&lt;BR /&gt; 
&lt;BR /&gt;you have always been helpful&amp;nbsp; 
&lt;BR /&gt; 
&lt;BR /&gt;thank you in advance&amp;nbsp; 
&lt;BR /&gt; 
&lt;BR /&gt;mjan100917 
&lt;BR /&gt;</description>
      <pubDate>Sun, 20 Jan 2019 16:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292480#M65549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-20T16:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292481#M65550</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMQ5AAO"&gt;@mjan100917&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just tested the link and it works for me. I suspect that maybe the server was down when you tried it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jan 2019 22:40:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292481#M65550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-20T22:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292482#M65551</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The link &lt;A href="http://talend.nl/talend-tech-tip-calling-a-rest-service-for-file-upload/" alt="http://talend.nl/talend-tech-tip-calling-a-rest-service-for-file-upload/" target="_blank"&gt;http://talend.nl/talend-tech-tip-calling-a-rest-service-for-file-upload/&lt;/A&gt; seems to be broken. Does anyone have the original post?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 09:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292482#M65551</guid>
      <dc:creator>OSchmitt1227</dc:creator>
      <dc:date>2021-06-03T09:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292483#M65552</link>
      <description>&lt;P&gt;Hi, is it not possible to uploading a (csv) file via HTTP PUT method using the tRESTClient component ? tFileFetch is deprecated in studio 7.3, so it doesn't seem very industrializable ...&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 14:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292483#M65552</guid>
      <dc:creator>hamdi_bourbia</dc:creator>
      <dc:date>2021-10-01T14:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file to tREST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292484#M65553</link>
      <description>&lt;P&gt;You can upload files using the tRestClient, but there is not a standard "out of the box" way of achieving this. It very much depends on the API you are using. Some APIs require the file is converted to a Base64 encoding, some take the contents of the file and recreate the file on the server (usually when the file is just supplying data), others do it other ways. Then there are the different headers, etc, you need to configure.  The only way I have ever managed to achieve this is by having access to the API, the API documentation and then configuring the tRestClient according to that. Sometimes I have also had to use some Java in order to get it working. This is not a flaw with Talend, this is a consequence of different implementations of how this task is achieved.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 18:07:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Uploading-a-file-to-tREST-API/m-p/2292484#M65553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-01T18:07:11Z</dc:date>
    </item>
  </channel>
</rss>

