[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: String Conversion
I think you might be mis-understanding something somewhere...
"byte array" is normally used in a Java context (or other OOP
languages) to differentiate between an a Java String object vs. just an
array of characters that an RPG or C programmer would think of as a
"string".
x'404142' is a ASCII hexadecimal string representation of a byte array
containing "ABC"
It'd be a very strange web service that required hex strings...
Charles
On Wed, Jul 16, 2014 at 10:41 AM, <[1]Robin.Kresin@xxxxxxx> wrote:
� � �__________________________________________________________________
� �All;
� �Our webservice requires out context field to be a byte array
format -
� �(ASCII Hex).
� �I am having trouble converting to ASCII Hex on the iseries.
� �It was Binary Base64 and then they �changed it. :( � Below is
an
� �example of the string before and after.
� �.
� �File byteArray.txt shows what a Byte Array looks like.
� �File varchar.txt is what the byteArray.txt file looks like
before
� �converting it into Byte Array.
� �Robin
� �The information in this e-mail and any attachments is
confidential
� �and is intended solely for the attention and use of
� �[2]ftpapi@xxxxxxxxxxxxxxxxxxxxxx.
� �If you are not the intended recipient, or person responsible
for
� �delivering this information to the intended recipient, please
notify
� �the sender immediately and destroy this e-mail and all copies
of this
� �e-mail on any storage mechanism.
� �Unless you are the intended recipient or his/her representative
you are
� �not authorized to, and must not, read, copy, distribute, use or
retain
� �this message or any part of it.
--------------------------------------------------------------------
---
This is the FTPAPI mailing list. �To unsubscribe, please go to:
[3]http://www.scottklement.com/mailman/listinfo/ftpapi
--------------------------------------------------------------------
---
References
1. mailto:Robin.Kresin@xxxxxxx
2. mailto:ftpapi@xxxxxxxxxxxxxxxxxxxxxx
3. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------