#1 2011-08-25 09:27:55

Fatkut
Member
Company: Turkish Airlines
Registered: 2011-05-18
Posts: 16

Byte[] in context

Tags: [byte[], context, java]

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.. sad
I will be running the subjob using iterate (parallel) so i have to pass that byte[] value..

Regards
Fatih Kutlay

Offline

#2 2011-08-25 13:09:31

shong
Talend team
Registered: 2007-08-29
Posts: 10310
Website

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


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

Board footer

Powered by FluxBB