If you want to upload a binary image to Odoo using API..here are the steps: controllers/main.py # -*- coding: utf-8 -*- from odoo.tools.translate import _ from odoo import http from odoo.http import request from odoo.addons import web from time import strftime import functools import datetime import json import base64 import sys import copy from dateutil import parser import logging from operator import itemgetter logger = logging.getLogger(__name__) def serialize_exception(f): @functools.wraps(f) def wrap(*args, **kwargs): try: return f(*args, **kwargs) except Exception, e: logger.debug("An exception occured during an http request") #se = _serialize_exception(...