def sendImage(self, path):
        message = Message(to=self.id, text=None)
        message.contentType = ContentType.IMAGE
        message.contentPreview = None
        message.contentMetadata = None

        message_id = self._client.sendMessage(message).id
        files = {
            'file': open(path, 'rb'),
        }
        params = {
            'name': 'media',
            'oid': message_id,
            'size': len(open(path, 'rb').read()),
            'type': 'image',
            'ver': '1.0',
        }
        data = {
            'params': json.dumps(params)
        }
        r = self._client.post_content('https://os.line.naver.jp/talk/m/upload.nhn', data=data, files=files)
        if r.status_code != 201:
            raise Exception('Upload image failure.')
        #r.content
        return True
Store a ``message`` of ``level`` to show to the web user.
dataset/ETHPy150Open carpedm20/LINE/line/models.py/LineBase.sendImage--crossover with--dataset/ETHPy150Open quantmind/lux/lux/extensions/rest/user.py/MessageMixin.message