ios和安卓给后台上传图片代码
来源:互联网 发布:mac解压不了zip 编辑:程序博客网 时间:2024/05/01 21:07
前提是用form表单提交下面是实现代码仅供参考。
public void AddImg()
{
HttpFileCollection files = Request.Files;
HttpPostedFile file = files["pic"];
System.Drawing.Image imgPic;
imgPic = System.Drawing.Image.FromStream(file.InputStream);
string src = DateTime.Now.ToString("yyyyMMddhhmmss") + ".png";
string path2 = Server.MapPath("~/Image/" + src);
imgPic.Save(path2, System.Drawing.Imaging.ImageFormat.Png);
imgPic.Dispose();
{
HttpFileCollection files = Request.Files;
HttpPostedFile file = files["pic"];
System.Drawing.Image imgPic;
imgPic = System.Drawing.Image.FromStream(file.InputStream);
string src = DateTime.Now.ToString("yyyyMMddhhmmss") + ".png";
string path2 = Server.MapPath("~/Image/" + src);
imgPic.Save(path2, System.Drawing.Imaging.ImageFormat.Png);
imgPic.Dispose();
string res = "/Image/" + src;
Response.Write(res);
}
Response.Write(res);
}
- ios和安卓给后台上传图片代码
- 上传图片兼容ios和安卓
- iOS 图片上传被后台给旋转了90度
- 安卓 PC IOS客户端图片上传
- 微信页面上传图片,安卓和ios上传接口的兼容处理
- Ios上传图片 后台接收
- 安卓在代码中给button添加和设置图片
- 安卓上传图片
- ios和安卓上传MP3文件
- 移动端html5图片上传方法【更好的兼容安卓IOS和微信】
- 手机网页版JS压缩上传图片--base64位 兼容IOS和安卓
- 移动端html5图片上传方法【更好的兼容安卓IOS和微信】
- 移动端html5图片上传方法【更好的兼容安卓IOS和微信】
- h5上传图片完美兼容安卓ios
- 微信开发上传图片ios与安卓兼容问题
- 实现android上传多张图片和文字给php后台
- android 图片上传以及php后台代码
- Apache Cordova 安卓android上传图片或者文件 调用后台服务实现java代码 ft.upload(imageURI, uri, that.uploadSuccess, that.
- 用户方式中线程的同步
- 程序员到项目经理
- 使用PostThreadMessage在Win32线程间传递消息
- NEFU要崛起——第4场 A - Chat Server's Outgoing Traffic
- NO.84 ADF Mobile起步
- ios和安卓给后台上传图片代码
- Linux 关中断 与 开中断
- 今天的安卓巴士break了。。。
- Linux Compcache
- 合并两个字符串的重叠部分
- A应用启动B应用
- ios和安卓上传MP3文件
- nginx tomact 负载 集群
- WebService CXF学习(入门篇3):对象传递