Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

httpClient.GetStreamAsync System.NotSupportedException: The 'data' scheme is not supported

$
0
0

I am trying to save on server an image that is captured with Html2Canvas on Client.

The URL of the image is retrieved in javascript code from

html2Canvas.toDataURL("image/png");

and is sent to the server where I try to get the stream with

await httpClient.GetStreamAsync(imgUrl);

But I am getting the following error

System.NotSupportedException: The 'data' scheme is not supported.

The url has the following format

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAByA..

Any idea about this?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>