Earlier, receiving data was size of the file which is not what we want. And we are trying to decode that as they are in binary form. Which can not working properly. So refactor code accordingly. Task - 3162824 closes odoo/odoo#113953 Related: odoo/enterprise#37650 Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>