[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Byte Array - how to do on the iSeries



Robin,

I don't understand what you sent (the gifs were stripped out of position - this is text email!). How about you keep it simple.

If you send this string:
E|7|SM

What should it look like?

Or are you saying you need to convert a string representing hex back to character?

To step back up to the beginning...This can't really be that hard. Your data is plain text (in Spanish)...why encode it in some way? Just send it.


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Robin.Kresin@xxxxxxx
Sent: Friday, August 08, 2014 3:51 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Byte Array - how to do on the iSeries

All;

First, I want to say that I have appreciated all your help.

Contendio - Data we create
E|7|SM|1181347|1|51|A|2014/08/07|1181347|do not ship|553|0|1
|13.1962|16|6|523930001|STO9205269U2|SERVIPARTES DE TOLUCA S
A DE CV|AV. SAN PEDRO NO. 242|SANTA MARIA ATARASQU|-|-|LERMA
|C.P.52050|0|EDO|SERVIPARTES DE TOLUCA SA DE CV|JOSE VILLAVI
CENCIO|AV. SAN PEDRO NO. 242|SANTA MARIA ATARASQUILLO||C.P.5
2050|0|EDO|BEST||131.58|.00||||5M255/00     Toda autorizació n de 
devolución debe ser solicitada dentro de los 30 días de spués de
facturación.|1|1|||||.00||||||||||P|7|SM|1181347|1|STA990000-A|STA990000-A|EA|1.000|25.5000|12
2435772004477|2012/12/21|NUEVO LAREDO.|STROBE ML2 - 12-80V -
AMB|||||P|7|SM|1181347|2|MBMD972032|MBMD972032|EA|1.000|101
4400|132435773001012|2013/02/05|NUEVO LAREDO.|GASKET SET -
OVERHAUL|||||P|7|SM|1181347|3|YT518800629|YT518800629|EA|1.0
00|4.6400|122435772003150|2012/10/19|NUEVO LAREDO.|BULB - 36V 10W
SP14||||| 


Below is what is sent to the webservice.  The contenidobyte is what goes 
to the web service.  Below is from our .net person.  The last 2 columns on 
the far right is the byte array.


We are trying to duplicate this on the iSeries.   Do any of you know how 
to take Hex to a byte array on the iSeries?

The Webservice provider is in Mexico and they were not able to get the 
base64 to work so that is why they switched to a byte array.


----- Forwarded by Robin Kresin on 08/08/2014 03:23 PM -----









The information in this e-mail and any attachments is confidential
and is intended solely for the attention and use of  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:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------