<?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: Downloading document from REST API in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Downloading-document-from-REST-API/m-p/2350698#M117514</link>
    <description>&lt;P&gt;Hi @Abhishek Chakraborty​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to download image from sharepoint. I have tried with tFileFatch &amp;amp; able to download .jpeg but when I'm trying to open it then its showing me error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Error:- It appears that we don't support this file format&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000UwBJeAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138157iFA8C2E5B21764D24/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000UwBJeAAN.png" alt="0695b00000UwBJeAAN.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000UwBJjAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135174iF537EED7C4CD2DEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000UwBJjAAN.png" alt="0695b00000UwBJjAAN.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000UwBJoAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132362i498F08E66A790A69/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000UwBJoAAN.png" alt="0695b00000UwBJoAAN.png" /&gt;&lt;/span&gt;﻿&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000UwBJtAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152140iBFFD3FBEF23780E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000UwBJtAAN.png" alt="0695b00000UwBJtAAN.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2022 11:19:09 GMT</pubDate>
    <dc:creator>Jmiles1658991691</dc:creator>
    <dc:date>2022-08-09T11:19:09Z</dc:date>
    <item>
      <title>Downloading document from REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Downloading-document-from-REST-API/m-p/2350695#M117511</link>
      <description>&lt;P&gt;I have REST API in which there is document attached we need to download.&lt;/P&gt;&lt;P&gt;Can you suggest any method to do so?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried following ways.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Connected the tRestClient to tFileOutputDelimiter, it sends garbage values for obvious reason the document datatype cannot be read.&lt;/LI&gt;&lt;LI&gt;I connected the tRestClient to tfileOutputXML,&amp;nbsp;attached are the screenshot of the subjob, RESTAPI schema and properties of the tfileOutputXML and tRestClient. Body field is document type which has got some data to be downloaded. I am getting null pointer exception for the same.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Note :&lt;/STRONG&gt; I am using tRestClient as the REST API which I am using has got internal redirection which can be enabled in this component only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Below is the complete error log.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exception in component tFileOutputXML_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;at dns_poc.api_doc_downloand_0_1.API_Doc_downloand.tRESTClient_1Process(API_Doc_downloand.java:1555)&lt;BR /&gt;at dns_poc.api_doc_downloand_0_1.API_Doc_downloand.tREST_1Process(API_Doc_downloand.java:867)&lt;BR /&gt;at dns_poc.api_doc_downloand_0_1.API_Doc_downloand.runJobInTOS(API_Doc_downloand.java:1867)&lt;BR /&gt;at dns_poc.api_doc_downloand_0_1.API_Doc_downloand.main(API_Doc_downloand.java:1701)&lt;BR /&gt;[FATAL]: dns_poc.api_doc_downloand_0_1.API_Doc_downloand - tFileOutputXML_1 null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Downloading-document-from-REST-API/m-p/2350695#M117511</guid>
      <dc:creator>HrushikeshMedhe</dc:creator>
      <dc:date>2024-11-16T07:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading document from REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Downloading-document-from-REST-API/m-p/2350696#M117512</link>
      <description>You can use the tFileFetch component that allows you to download files.</description>
      <pubDate>Fri, 13 Jul 2018 08:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Downloading-document-from-REST-API/m-p/2350696#M117512</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-07-13T08:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading document from REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Downloading-document-from-REST-API/m-p/2350697#M117513</link>
      <description>&lt;P&gt;Hi Abhishesk,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the suggestion it worked but I am afraid still the file content downloaded is garbage one.&lt;/P&gt;
&lt;P&gt;Do you know if any encoding parameters might need to be tweaked on Talend side?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Hrushikesh.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 10:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Downloading-document-from-REST-API/m-p/2350697#M117513</guid>
      <dc:creator>HrushikeshMedhe</dc:creator>
      <dc:date>2018-07-13T10:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading document from REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Downloading-document-from-REST-API/m-p/2350698#M117514</link>
      <description>&lt;P&gt;Hi @Abhishek Chakraborty​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to download image from sharepoint. I have tried with tFileFatch &amp;amp; able to download .jpeg but when I'm trying to open it then its showing me error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Error:- It appears that we don't support this file format&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000UwBJeAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138157iFA8C2E5B21764D24/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000UwBJeAAN.png" alt="0695b00000UwBJeAAN.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000UwBJjAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135174iF537EED7C4CD2DEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000UwBJjAAN.png" alt="0695b00000UwBJjAAN.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000UwBJoAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132362i498F08E66A790A69/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000UwBJoAAN.png" alt="0695b00000UwBJoAAN.png" /&gt;&lt;/span&gt;﻿&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000UwBJtAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152140iBFFD3FBEF23780E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000UwBJtAAN.png" alt="0695b00000UwBJtAAN.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 11:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Downloading-document-from-REST-API/m-p/2350698#M117514</guid>
      <dc:creator>Jmiles1658991691</dc:creator>
      <dc:date>2022-08-09T11:19:09Z</dc:date>
    </item>
  </channel>
</rss>

