<?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: tRESTRequest file upload in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRESTRequest-file-upload/m-p/2362477#M126607</link>
    <description>Hi Shong 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;May I know how tRestRequest receive a byte array? Is it set the body in schema as "&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;byte[]"?&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Thu, 13 Aug 2015 09:46:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-08-13T09:46:45Z</dc:date>
    <item>
      <title>tRESTRequest file upload</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRESTRequest-file-upload/m-p/2362475#M126605</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi,&lt;BR /&gt;1) With Talend ESB 5.4. (e.g. also with TOS4ESB) you can use the tRESTRequest component to upload binary data into a byte array which you then can use in other tXX components. But keep in mind that the file you upload is hold in memory on the REST provider, means you need to be sure about the max. size and the memory consumption on the provider. But for smaller files it might be ok. E.g. upload a profile image to a new user account in a single rest call with the meta data and the picture (as binary) of the person.&amp;nbsp;&lt;BR /&gt;2) using a Route with cHttp and cFile to get the file content via standard HTTP and save it to a local file directly which you then might run a scheduled DI Job on or you directly call the tXXX components from the route to further process the file with cTalendJob.&lt;BR /&gt;Dietmar&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;According to the suggestion in 
&lt;A href="http://community.talend.com:80/t5/Design-and-Development/resolved-Could-not-create-the-Java-virtual-machine/m-p/1531#M14483" target="_blank"&gt;http://community.talend.com:80/t5/Design-and-Development/resolved-Could-not-create-the-Java-virtual-machine/m-p/1531#M14483&lt;/A&gt;, May I know how to achieve file upload using&amp;nbsp;tRESTRequest&amp;nbsp;component?</description>
      <pubDate>Sat, 16 Nov 2024 11:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRESTRequest-file-upload/m-p/2362475#M126605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: tRESTRequest file upload</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRESTRequest-file-upload/m-p/2362476#M126606</link>
      <description>Hi 
&lt;BR /&gt;Read the file and convert it to binary (byte[]) data, and pass a byte array via tRestRequest to webservice server. In server side, read this byte array and convert it to local file or store it to database. You can refer to the following article to know how to read a file and convert it to a byte array. 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/pages/viewpage.action?pageId=190513201" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/pages/viewpage.action?pageId=190513201&lt;/A&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 10 Aug 2015 03:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRESTRequest-file-upload/m-p/2362476#M126606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-10T03:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: tRESTRequest file upload</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRESTRequest-file-upload/m-p/2362477#M126607</link>
      <description>Hi Shong 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;May I know how tRestRequest receive a byte array? Is it set the body in schema as "&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;byte[]"?&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 13 Aug 2015 09:46:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRESTRequest-file-upload/m-p/2362477#M126607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-13T09:46:45Z</dc:date>
    </item>
  </channel>
</rss>

