One Star

Byte[] in context

Hi;
Is it possible to pass byte[] variables between subjobs using context.. Or is there a different way to do it.. Converting it to string than back to byte[] does not produce the same byte[] value.. Smiley Sad
I will be running the subjob using iterate (parallel) so i have to pass that byte[] value..
Regards
Fatih Kutlay
1 REPLY
Community Manager

Re: Byte[] in context

Hi
Define a context variable with object type, for example:
String foo = "bar";
byte [] b=foo.getBytes();
context.new1=b;
byte [] b1=(byte []) context.new1;
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business