Ok sistemato bastava fare un print del valore binario preceduto dagli header:

Content-type e Content-Disposition.

Grazie lo stesso.