>
> Is it that the Bitmaps are compressed?
>
We just compress the bitmaps in the GZipChannel, but that's not the case.
BITMAP = 82 20 00 00 08 00 00 00 04 00 00 00 00 00 00 00

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe from this group, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users?hl=en
-~----------~----~----~----~------~----~------~--~---
> How does one I dentify the Bitmap string from the returned hexdump
> output?
Your Packager tells you where the BitMap is (what it follows and precedes).
>
> Is it that the Bitmaps are compressed?
A bitmap will be in the 'raw' form once the message has been .pack()'d.
If you can share some output here and indicate which packager you are
using, I'm sure we can point you at the bitmap. Even without the
Packager name, it should be fairly easy to see...
--
Mark
> Do the dots.... after 0800 signify any thing?
Each '.' is a placeholder for each byte that does not have a printable
character equivalent value.
So going across from the 0800, the '.' on the first line have the values:-
0000 30 38 30 30 82 20 00 00 08 00 00 00 04 00 00 00 0800. ..........
x'82'
x'00'
x'00'
x'08'
x'00'
x'00'
x'00'
x'04'
x'00'
x'00'
x'00'
You should look to the expanded values for each value.
hth
--
Mark
> But now which are those bytes that are non printable (is it the bitmap
> bytes??)
Mostly, but it is possible that the bitmap can happen to contain byte
values that are valid (printable) characters.
>>From the extract below, I see the values for fields 0, 7, 11, 37 and
> 70 except for the bitmaps.
>
> Hex Dump out put
> 0800. ..........
> ....052920473840
> 3568914920403568
> 061
So then yes, the dots indicate each byte of the bitmap. You need to
look at the 'middle of the output to see the raw data.
For completeness:-
0000 30 38 30 30 82 20 00 00 08 00 00 00 04 00 00 00 0800. ..........
^
bitmap starts |
0010 00 00 00 00 30 35 32 39 32 30 34 37 33 38 34 30 ....052920473840
^
bitmap ends |
Giving a bitmap of x'82200000080000000400000000000000' across 16 bytes.
The binary form of this hexadecimal value:-
1000 0010 0010 0000 0000 0000 0000 0000
0000 1000 0000 0000 0000 0000 0000 0000
0000 0100 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
Number the bits from 1 to 128 from top left to bottom right and we have
the indicators for which fields are present.
(Bit 1 indicates that the second bitmap is present)
>
> Original Msg
>
> <isomsg>
> <field id="0" value="0800"/>
> <field id="7" value="0529204738"/>
> <field id="11" value="403568"/>
> <field id="37" value="914920403568"/>
> <field id="70" value="061"/>
> </isomsg>
>
> How should the values for field 1 and 2 be represented in the XML form
> above incase field 1 & 2 where to be dumped?
I don't understand what you are asking.
In XML form, you can just provide the fields, the bit map is not needed
as the field presence is implicit.
You could send the bitmap in character hexadecimal:-
<bitmap>82200000080000000400000000000000</bitmap>
But I am only guessing at what you want.
--
Mark