i am using cropperjs to crop images
Using the method getCroppedCanvas
to get reference to the cropped canvas image
Using the canvas method canvas.toDataURL
to compress the images into a jpeg files.
I don't use canvas.toBlob
as its browser support is not clear.
My question is how can i turn the string i get from canvas.toDataURL
into a blob so i can later use it in formData.
Update
server expect form data - multi-part