【学习笔记】获取网络图片并转成byte[]

一、开始

                WebClient mywebclient = new WebClient();
                byte[] Bytes = mywebclient.DownloadData("https://s1.hdslb.com/bfs/seed/jinkela/header-v2/images/app-download.png");
                var Base64String = Convert.ToBase64String(Bytes);

二、结束

posted @ 2020-08-28 22:49  千山慕雪  阅读(593)  评论(0编辑  收藏  举报