canvas.toBlob with web service of ASP.NET

I would like to translate this javascript call php web service to web service

canvas.toBlob( function(blob) {

    var formData = new FormData();

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

}, "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

This site uses Akismet to reduce spam. Learn how your comment data is processed.