Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ChaitraCP
Contributor
Contributor

Convert file to byte

Hi,

I have to read the file as byte and store the data and length of the content of the file. How can we achieve this in talend.

Kindly anyone share the java code and job screenshot. Im using Talend 6.3.

Thanks,

Chaitra CP

Labels (3)
4 Replies
Anonymous
Not applicable

Hello,

What's your input source? The Json file, excel file or XML file? You could use tJava component to convert the original file to byte[] or create a custom routine to achieve it.

Could you please describe your requirements more specific?

Best regards

Sabrina

Anonymous
Not applicable

Hi

tFileInputRaw can read a file as a string or byte[] or InputStream, what do you want to do next?

 

Regards

Shong

ChaitraCP
Contributor
Contributor
Author

Hi @Shicong Hong​ & @Xiaodi Shi​ ,

 

Thanks. We have converted the data into bytes. But i need few more inputs. Kindly help me on this.

 

I need to read the .txt file and store the data in bytes and upload the files into SharePoint . Its working fine in tRest component.

 

Is it possible to achieve the same thing in tRestClient component. Could you please attach the code/Scressnhot with tRestclient component.0695b00000UwZaZAAV.png 

Thanks,

Chaitra CP

 

 

 

ChaitraCP
Contributor
Contributor
Author

Hi @Shicong Hong​ , @Xiaodi Shi​ ,

 

Kindly help me on this.

 

Thanks & Regards,

Chaitra CP