Are you trying to do it all in javascript? You might be running into a 'built-in' security check of the canvas object:
http://stackoverflow.com/questions/2390232/why-does-canvas-todataurl-throw-a-security-exception This might help you: http://www.maxnov.com/getimagedata/ On Mon, Jan 30, 2012 at 5:37 PM, Benoit Chesneau <[email protected]> wrote: > On Mon, Jan 30, 2012 at 10:05 AM, Nah-Abiah Mould Al-Hassan > <[email protected]> wrote: >> Hi everybody, >> I want to save a qr code image I get from Google chart as an inline >> attachment >> but I keep getting an error. >> I have tried encoding it to base 64 using the canvas element but that does >> not >> work. The error code I get is 239 with a badarg in the json error response. >> Help please :) >> >> > > how do you send it as inline attachment? > > - benoit
