标签:isp var span sed 判断 分享 none adb ted
此处上传一张图片示例:
1 HttpPostedFileBase file_IO = request.Files[key]; //key==0 2 3 System.IO.BinaryReader reader = new System.IO.BinaryReader(file_IO.InputStream); 4 byte[] file_Bytes = reader.ReadBytes(file_IO.ContentLength); 5 var length = file_Bytes.Length; 6 7 System.Drawing.Image image = System.Drawing.Image.FromStream(file_IO.InputStream); 8 var width = image.Width; //px 9 var height = image.Height; //单位是 px
标签:isp var span sed 判断 分享 none adb ted
原文地址:http://www.cnblogs.com/leap-li/p/7742375.html