canvas.toBlob with web service of ASP.NET

I would like to translate this javascript call php web service to asp.net web service

canvas.toBlob( function(blob) {

    var formData = new FormData();

    formData.append("image_file", blob );
    var xhr = new XMLHttpRequest;
    xhr.open( "POST", "abc.php" );
    xhr.send(formData);

}, "image/png");

In web services, It should define the blob to what datatype ?

 <WebMethod()> _
   Public Sub Upload_Image_Gallery( ByVal BlobData As String)

     'save blobData become image files...


    End Sub


Source: html5

Leave a Reply