Hi Simone,
It really is a PDF file (I checked)! It´s a legacy database, the blob field was not filled by DAL, but by another system (in Java). I guess a base64 decode is going on incorrectly when the DAL reads the database. I tried to replace the Field type parameter from 'blob' to 'SQLCustomType', but it didnt work. It doenst read the field's value from DB.
Field("lb_documento", "blob")
Field("lb_documento", type=SQLCustomType(type='string', native='blob'))
In the first declaration the field came "base64 decoded". When using the second one, the blob field is not read from DB.
Do you know any way to read a native blob field using DAL without decode it ?
Thanks a lot,
Fred