Fdr
Fdr

Reputation: 3714

Upload image created with javascript

How to upload image that is nested in img-element of the page (i.e. image was dynamically created with canvas2image jQuery plugin)? I have found uploadify plug-in, but don't know how to utilize it in this case. Should I create file input element with jQuery that will be used by uploadify?

Upvotes: 1

Views: 177

Answers (1)

alex
alex

Reputation: 490183

You could send the pixel data (obtained via getImageData()) to your server via XHR and recreate the image on your server.

Upvotes: 1

Related Questions