双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

winform通过webclient向服务器上传文件,其中progressbar进度条怎么写?

xwj1199 xwj1199 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
            WebClient wc = new WebClient();
wc.Credentials = CredentialCache.DefaultCredentials;
FileStream fs = new FileStream(FileUrl, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fs);
byte[] fcount = br.ReadBytes((int)fs.Length);
Stream st = wc.OpenWrite(ServerFile, "PUT");
st.Write(fcount, 0, fcount.Length);


...全文
评论
收藏 已收藏
分享
返回顶部
xwj1199
C# 111,129 成员 642,540 内容