[BONITA 6.2.6] getting byte[] from database to a document

Hi there,

I’m getting a byte from a postgres query but I don’t know how to save it and then cast it to a document created in my process.
I’ve saved the result of my query as a java.lang.Byte but I don’t understand how to handle it afterward (I’m not even sure I should save it that way).
I’ve checked the “handling-documents” part of the documentation but with no results.

Does someone have an idea about how I should handle it ?

thanks for any help,
Paul