eclipse - TypeError: file() argument 1 must be encoded string without NULL bytes, not str odoo -
    the python version 2.8.2 , using in eclipse. getting error when trying execute following command:   the function is:   @api.one @api.depends('image') def _compute_image_details(self):     if self.image:         image_content = self.image.decode('base64')         print type(self.image)         print type(image_content)          # file size         self.size = len(image_content)          # camera make , model exif tags         img = pil.image.open(image_content)         exif_tags = img._getexif()          # 0x010f numeric code "make" exif field         # can find list of fields here: exiv2.org/tags.html         self.camera_maker = exif_tags.get(0x010f)   the error raised is:   traceback (most recent call last):   file "/home/next/workspace/odoo-8.0/openerp/http.py", line 537, in _handle_exception     return super(jsonrequest, self)._handle_exception(exception)   file "/home/next/workspace/odoo-8.0/openerp/http.py", line 574, in dispatch  ...