Packager: rightpad 0 and stay with original length

10 views
Skip to first unread message

TienLuong

unread,
Mar 7, 2020, 12:24:12 PM3/7/20
to jpos-...@googlegroups.com
Hi all,

Sorry for my bad English but I want to find a packager to pack my field 35
of ISO8583 message:

- Value is type HEX as input
- If value's length is odd number, rightpad with 0
- When packing into raw iso message, it takes the length before padded.

For example:

- Value 5432154321543210D9 will be 185432154321543210D9 after packing
- Value 5432154321543210D99 will be 195432154321543210D990 after packing

The closest one that I can find is : IFB_LLHEX but it leftpad and it did not
take befre-padded length.

Thanks in advance!



--
Sent from: http://jpos.1045706.n5.nabble.com/jPOS-Users-f2246022.html

chhil

unread,
Mar 9, 2020, 12:51:37 PM3/9/20
to jpos-...@googlegroups.com
You can add a pad attribute to the packager as seen in a packager here

https://github.com/jpos/jPOS/blob/master/jpos/src/dist/cfg/packager/vapsms.xml
Padding Boolean true  is for left padding and false is for right padding.  

One of the Jpos implementations for padding  can be seen at


-chhil

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage.  Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/1583601848140-0.post%40n5.nabble.com.
Reply all
Reply to author
Forward
0 new messages