<?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: [resolved] Send file to WebService in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312177#M83148</link>
    <description>Use a tJavaRow for the encode/decode.&lt;BR /&gt;To enccode&lt;BR /&gt;		    String s = new sun.misc.BASE64Encoder().encode(input_row.Image);&lt;BR /&gt;		    //System.out.println("Text Decryted : " + s);&lt;BR /&gt;		    output_row.Image = s;&lt;BR /&gt;To deccode&lt;BR /&gt;		    byte[] buf = new sun.misc.BASE64Decoder().decodeBuffer(input_row.Image);&lt;BR /&gt;		    //System.out.println("Text Decryted : " + s);&lt;BR /&gt;		    output_row.Image = buf;</description>
    <pubDate>Thu, 10 Nov 2011 09:02:25 GMT</pubDate>
    <dc:creator>janhess</dc:creator>
    <dc:date>2011-11-10T09:02:25Z</dc:date>
    <item>
      <title>[resolved] Send file to WebService</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312168#M83139</link>
      <description>Hi all,
&lt;BR /&gt;I'm trying to send a file to a Webservice, along with other parameters. For reading the file I use tFileDelimited with no separators, then pass the content to tWebServiceInput. I cannot figure out how to refer that content in the parameter list from tWebServiceInput for sending it to the WebServer.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Radu</description>
      <pubDate>Sat, 16 Nov 2024 12:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312168#M83139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Send file to WebService</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312169#M83140</link>
      <description>Hi 
&lt;BR /&gt;Store the content into a global variable and get it on the parameter list of tWebserviceInput, for example: 
&lt;BR /&gt;tFileInputDelimited--main--tJavaRow 
&lt;BR /&gt; | 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt; | 
&lt;BR /&gt;tWebserviceInput--main--tLogRow 
&lt;BR /&gt;on tJavaRow: 
&lt;BR /&gt;globalMap.put("file_content", input_row.content) //content is the column name on tFileInputDelimited 
&lt;BR /&gt;on tWebserviceInput, set the value of parameters as below: 
&lt;BR /&gt;(String)globalMap.get("file_content") 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 08 Nov 2011 12:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312169#M83140</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-08T12:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Send file to WebService</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312170#M83141</link>
      <description>Hi Shong,
&lt;BR /&gt;It worked. Thanks for your help!
&lt;BR /&gt;Best Regards,
&lt;BR /&gt;Radu</description>
      <pubDate>Wed, 09 Nov 2011 08:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312170#M83141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-09T08:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Send file to WebService</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312171#M83142</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi Shong,&lt;BR /&gt;It worked. Thanks for your help!&lt;BR /&gt;Best Regards,&lt;BR /&gt;Radu&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Good news, thanks for your feedback!
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 09 Nov 2011 09:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312171#M83142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-09T09:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Send file to WebService</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312172#M83143</link>
      <description>Hi, 
&lt;BR /&gt;The file gets to the WebService in a wrong format. I guess it's not byte[] when send from WebServiceInput. I specified byte[] in FileInputDelimited's schema, and also changed the parameter expression in WebServiceInput to (byte[])globalMap.get("file_content"), but still, the received file is corrupted (is csv, xlsx,..). 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Radu</description>
      <pubDate>Wed, 09 Nov 2011 11:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312172#M83143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-09T11:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Send file to WebService</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312173#M83144</link>
      <description>Should you not just specify it as a string?</description>
      <pubDate>Wed, 09 Nov 2011 14:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312173#M83144</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2011-11-09T14:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Send file to WebService</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312174#M83145</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Should you not just specify it as a string?&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;I did that at first, but with similar results.&lt;BR /&gt;Inside the talend job it seems to be ok, it has the right length, but then the webservice receives it truncated at 6 characters.</description>
      <pubDate>Wed, 09 Nov 2011 14:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312174#M83145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-09T14:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Send file to WebService</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312175#M83146</link>
      <description>Ah! I think you need base64 encoding. I had this problem sending binary data from a webservice. Had to encode it to send from webservice and decode on receipt.</description>
      <pubDate>Wed, 09 Nov 2011 15:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312175#M83146</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2011-11-09T15:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Send file to WebService</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312176#M83147</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Ah! I think you need base64 encoding. I had this problem sending binary data from a webservice. Had to encode it to send from webservice and decode on receipt.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;How can I encode it? Is it a componet which I have to use or encode in java?
&lt;BR /&gt;I should mention that I'm not a java programmer.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Radu</description>
      <pubDate>Thu, 10 Nov 2011 08:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312176#M83147</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-10T08:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Send file to WebService</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312177#M83148</link>
      <description>Use a tJavaRow for the encode/decode.&lt;BR /&gt;To enccode&lt;BR /&gt;		    String s = new sun.misc.BASE64Encoder().encode(input_row.Image);&lt;BR /&gt;		    //System.out.println("Text Decryted : " + s);&lt;BR /&gt;		    output_row.Image = s;&lt;BR /&gt;To deccode&lt;BR /&gt;		    byte[] buf = new sun.misc.BASE64Decoder().decodeBuffer(input_row.Image);&lt;BR /&gt;		    //System.out.println("Text Decryted : " + s);&lt;BR /&gt;		    output_row.Image = buf;</description>
      <pubDate>Thu, 10 Nov 2011 09:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312177#M83148</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2011-11-10T09:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Send file to WebService</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312178#M83149</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Use a tJavaRow for the encode/decode.&lt;BR /&gt;To enccode&lt;BR /&gt;		    String s = new sun.misc.BASE64Encoder().encode(input_row.Image);&lt;BR /&gt;		    //System.out.println("Text Decryted : " + s);&lt;BR /&gt;		    output_row.Image = s;&lt;BR /&gt;To deccode&lt;BR /&gt;		    byte[] buf = new sun.misc.BASE64Decoder().decodeBuffer(input_row.Image);&lt;BR /&gt;		    //System.out.println("Text Decryted : " + s);&lt;BR /&gt;		    output_row.Image = buf;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Thanks Jan! Now it works.&lt;BR /&gt;Best Regards!</description>
      <pubDate>Thu, 10 Nov 2011 10:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312178#M83149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-10T10:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Send file to WebService</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312179#M83150</link>
      <description>Would be the same procedure to send an XML to a Restful Web Service or is there something better?</description>
      <pubDate>Thu, 09 Feb 2012 16:04:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312179#M83150</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-02-09T16:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Send file to WebService</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312180#M83151</link>
      <description>I think it only applies to binary data. Text should be ok.</description>
      <pubDate>Thu, 09 Feb 2012 16:28:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312180#M83151</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-02-09T16:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Send file to WebService</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312181#M83152</link>
      <description>Hello, I was wondering if this process for encoding goes after you send the content of the file through a String.&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tFileInputDelimited--main--tJavaRow--Encoding--output&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Thank you!&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 09 Dec 2015 00:18:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Send-file-to-WebService/m-p/2312181#M83152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-09T00:18:00Z</dc:date>
    </item>
  </channel>
</rss>

