Thanks @nandoconde. I was just giving an example of the data, and yes I did check. I can serialize to an IOBuffer and then deserialize from the same buffer to get back the original data. The problem occurs when I save the buffer to Postgres, then read it back.