Warning: include_once(/home/favoledo/robertozanardo.com/wp-content/sunrise.php): Failed to open stream: No such file or directory in /home/favoledo/robertozanardo.com/wp-includes/ms-settings.php on line 52

Warning: include_once(): Failed opening '/home/favoledo/robertozanardo.com/wp-content/sunrise.php' for inclusion (include_path='.:/opt/alt/php83/usr/share/pear:/opt/alt/php83/usr/share/php:/usr/share/pear:/usr/share/php') in /home/favoledo/robertozanardo.com/wp-includes/ms-settings.php on line 52
latin Archivi - Odoo e Soluzioni Open Source

Decode binary datas from Odoo attachments

odoo 14

Decode binary datas from Odoo attachments Attachments in Odoo are stored in binary field named datas, you can access the field datas of ir.attachment model, and then: message_bytes = base64.b64decode(datas) message = message_bytes.decode(‘ISO-8859-1’) then you can print message o write it to a file to have the original attachments.