couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Ramage <ryan.ram...@gmail.com>
Subject Re: Saving qr code image from Google chart as an inline attachment
Date Tue, 31 Jan 2012 03:23:12 GMT
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 <bchesneau@gmail.com> wrote:
> On Mon, Jan 30, 2012 at 10:05 AM, Nah-Abiah Mould Al-Hassan
> <nah-abiah.mould@4sightmicrosystems.com> 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

Mime
View raw message