For data that can get bigger than 64KB I have had more luck using multipart/form-data, like if I where uploading a file in a form, than with urlencoding. Is much harder to create, but you don't need to encode anything, you can put the actual binary dump in the post.
On 10 May 2012 09:54, spirit <[email protected]> wrote: > Thx, I try application/octet-stream but nothing happend, data not > send (0 errors on console): > > data: "answear=" + canvas.toDataURL("image/jpeg") > > Only answear is send. It works as expected only when I use > "application/x-www-form-urlencoded" data are send. > > But I saw another problem. I use canvas to read this data. But when I > get data, put on browser and save image I see sth strange: img looks > like the same but not the same. Canvas version is bigger, pixels are > not the same. > > Any idea why? How can I save exacly the same img like the source using > JS in Greasemonkey? > -- -- ℱin del ℳensaje. -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
