C# convert between Image and Base64string

 static void ImageMSDemo(string picPath)
        {            byte[] imageArray = System.IO.File.ReadAllBytes(picPath);
            string base64ImageRepresentation = Convert.ToBase64String(imageArray);
            var img = Image.FromStream(new MemoryStream(Convert.FromBase64String(base64ImageRepresentation)));
            img.Save("newImg.jpg");
        }

 

上一篇:Vue Component 子访问父组件 $parent


下一篇:Tensorflow版Faster RCNN源码解析(TFFRCNN) (19) rpn_msr/proposal_target_layer_tf.py