I have a data column in a SQLite table that is stored as a blob. In particular, this is a serialized POJO (java object).
In any case, I would like to view it in the SQLite console as a hex dump, for example:
0000000000 |The correction f| 0000000016 |or the aberratio| 0000000032 |n of light is sa| 0000000048 |id,.on high auth| 0000000064 |ority, not to be| 0000000080 | perfect even in| 0000000096 | that most perfe| 0000000112 |ct organ, the.ey| 0000000128 |e..|
I know that the SELECT HEX(obj) FROM data WHERE rowid = 1 will receive the data as soon as hexadecimal, but now I want to pass it to something that will give me a hexdump representation.
PS - I know that the data I'm trying to view is binary (serialized POJO), but I would like to see what is inside as an experiment. So, even if the end result is cryptic anyway, please let me know!
Update: I tried some of the suggestions, but found that sqlite3 does not output full hex. I expect around 500 bytes, but instead get as 10:
root@ubuntu :~
source share