Problems to update byte value in a table informix

One Star

Problems to update byte value in a table informix

I need help ... I have to update a table with a string of type byte. Paste the string in the TMAP by the cast: Byte.valueOf (dg1651dv161sd51 ..."), but when I try to upgrade gives the following error:
Exception in component tMap_5
java.lang.NumberFormatException: For input string: "504b0304140002000800074f5a3d75465ac3b ....
The field of the table that I update is byte, so realizao cast.
I hope I can teach. Thanks.
Community Manager

Re: Problems to update byte value in a table informix

Hello
There exist some chars such 'a' ,'b' in these string "504b0304140002000800074f5a3d75465ac3b ....", you must remove these rows or do some processing before convert it to byte using Byte.valueOf(String s)
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Problems to update byte value in a table informix

nice post
One Star

Re: Problems to update byte value in a table informix

thanks for the share guysSmiley Happy
Smiley Happy
Smiley Happy
Smiley Happy
Smiley Happy
Smiley Happy