Hi, I have the following in PHP that I am trying to convert to C#.
$dataurl = str_replace(" ", "+", $_POST["u"]);
$data = substr($dataurl, strpos($dataurl, ","));
$file_name = "saved/" . md5(uniqid(rand(), true)) . ".png";
$file = fopen($file_name, "wb");
<img src="<?php echo $file_name ?>" align="left" width="400" />
It takes an image that is encoded base 64 and converts to an image file which it then writes to the server. My problem mainly is the string replace at the start of the php code
Any help or pointers please?