Interpreting base 64 in C# from an image based via JSON/PHP (base64_encode)
问题 So I'm able to read an image file successfully, and pass it back to my C# application but I'm unable to decode it properly. I'm returning the JSON data as such (the json_encode function isn't shown) via PHP: $imgbinary = fread(fopen($filename, "r"), filesize($filename)); if ( strlen($imgbinary) > 0 ){ return array("success"=>true, "map"=>base64_encode($imgbinary)); } Then in C# I use Newtonsoft.Json to decode the string (I can read success and the map properties successfully), but I'm unable