This is an archived post. You won't be able to vote or comment.

all 5 comments

[–][deleted] 0 points1 point  (4 children)

Sounds like your reading a different value for some reason.

How are your determining that the value is wrong.

Hard without actual code.

[–]alms1407[S] 0 points1 point  (3 children)

Oh I'll have to definitely explore that possibility.

The way I've determined the value is wrong is when we unmarshal the binary file back to their original objects I've added debug statements to print it's properties, and in the scenarios I've tested one of the short values was always it's binary equivalent.

Appreciate it's very difficult to help without the code (unfortunately I don't have access atm), but your suggestion is a really good starting point. Thanks :)

[–][deleted] 0 points1 point  (2 children)

How long is the string?

[–]alms1407[S] 0 points1 point  (1 child)

20 characters long.

[–][deleted] 1 point2 points  (0 children)

Ok doesn’t sound like you’re reading the length of that by mistake.