Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
olja
Contributor
Contributor

How consume data from tFileInputRaw in tJava component?

Hi,

I want to consume the content of a file with the tJava component. Actually I am using the tFileInputRaw to get the content.

0693p00000AZcxmAAD.png

In my tJava component I am using this code

System.out.println("working on content " + row1);

System.out.println("working on content " + row1.content);

This the result

0693p00000AZcxcAAD.png

Why is the content null? I would expect, that there is the byte array of my file. In the debug vie you can see that this variable is set with an byte array. Is it not possible to use this in a tJava component?

Thanks

Labels (3)
2 Replies
olja
Contributor
Contributor
Author

I have tested this with the tJavaFlex component, there it was possible to consume the in coming content. So I guess, that the tJava component cannot, maybe someone knows the difference, for me its strange why tJava cannot do this.

Anonymous
Not applicable

Hello,

Normally, tJava has no input or output data flow and is used as a separate subjob.

For more information, please have a look at this article about: What is the difference between tJava, tJavaRow, and tJavaFlex?

Best regards

Sabrina