Rohit Gupta

Rohit Gupta

  • 139
  • 17.3k
  • 2.1m

Upload HTML Canvas image to Azure Blob storage

Jan 6 2023 6:04 AM


I am trying to upload a signature (which is in Canvas.toDataURL() format) to Azure Blob Storage. The problem I am facing is that the image I am getting is not in the form that azure accepts.

Can anyone help me with how I can convert it to the required form?

var image = element.toDataURL("image/png").replace("image/png", "image/octet-stream"); 
return image;


Answers (2)