Community mailing list archives

Digital signature(Custom Widget): How to save image(defined in widget template ) in database?

mihir shah
- 07/17/2015 10:43:17
Dear community,

ello Everyone,

We're going to implement the digital signature by using custom widgets in odoo 8. We've captured sign into the image . But, the problem we're facing right now is how to save the image of signature (defined in widget template .xml) in database.  

<img id="imgb64" style="width:300px;height:150px"> </img> 

In view of this module, widget is defined as binary field..

<field name="signature_image" widget="signature"/> 

Is it possible to link up this image to database from .js file of widget?

Thanks in advance.

Mihir Shah

*Please Don't print this email unless you really need to "Save Earth and Save Environment"