将不确定变成确定~Uri文本文件不用浏览器自动打开,而是下载到本地
这个标题有点长,简单来说就是,对于一个文件下载来说,是否可以提示用户,让它去保存,而不是将它在浏览器中打开,在浏览器中打开有个致命问题,那就是,如果你的页面编码和文件的编码不一致时,打开的就是乱码,本文事实上主要解决的就是这个问题。
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAo0AAAB4CAIAAAAYD1+ZAAAff0lEQVR4nO2deXAcxb3H528CeRAwkJPLBgw2NjkeUQiQhCshKV5VUvxFikpVzBECWeMgwPgGm8uAbfIqNg+WRQjZWt2HbR22JXuttWStDuuWd7VanZblSLYL2X71TKr2/bG7Mz3T3bMzu9u7Lev7qW+p7N2e/v361z39m+7ZnVUuu+UZruY/842onuVqwbOX6/ScUbc+d/mtz13B0F803Ubp1r9crtPzqq7g6baI/nrFbX/9JlO3G/TCf9BamIiu1OnFK+9g6ypSd7541Z1/o/UtVYsMctjV1YscVy821/JrFi+/5i627v39O1ct/NO9v39n3l3L5y1ZPm/JS5a1gq2lK641190rrr17xXXm+uGK63644vo4+nsc/UjVy9/m6ceavhNVtk4/Meq7Ceg/X6H1PYPuUfUqqe+r+imt1yL6gXVlaXrwyS3X//CZB5/cor5yQ1QrzXVj1sobfxbR61zda9AqWjfF1c/javVN962+6b7VN5vo/ojW3GJN8+9fM//+tQw9EE+/0GmBUesW/GLdgl8adatBv4poPanbzLQhottJPWim3/75nzdmvfjbZf+8/aENTC18aMPCh95Y+NAbCx/m6g5Nb/J0Z0SPqNrI1qPxtejXJtoU0eK4+s2mxb/ZdJe5HlP1Flu/jWqJprdNtFSnd6L6nU53x6SY5elbnvlGVM9yNf/Zy3V6zig6c0f1F02xfEwm78s5uoKnaI5//orbnv8mU7cb9Nf/oLWQJ+t5+oUr72DrKlJ3vnDVnS/S+paqRQbRmZsn63nacc1ixzV3sXXfH9696o6n7vvDu/Pucsxb4pi3ZLllcfL30peuNWrO5+mfvELrewZpOftVUt9XdQ+t14z6KVd0zn74ya3X3/30w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I0wAAAIC8IE8DAAAA8oI8DQAAAMgL8jQAAAAgL8jTAAAAgLwgTwMAAADygjwNAAAAyAvyNAAAACAvyNMAAACAvCBPAwAAAPKCPA0AAADIy/8DejvW18epG0QAAAAASUVORK5CYII=" alt="" />
上面的URI格式的文件直接使用浏览器打开,由于文件编码是GB2312而网页编码是UTF-8,所以,页面上的文字就变成了乱码。
知道了产生问题的根源之后,我们再来解决它,首先,我们没法去控制URI上的文件编码,所以,我们只能把它读到本地(WWW服务器),然后再进行二次组织,并返回到客户端(自己的浏览器),对于URI的文件来说,我们不能直接返回,必须把它读成流之后,再返回,其实,.net为我们已经封装的很简便了,下面是实现的代码,大家看一下:
/// <summary>
/// 下载文件,同步支持本地和URI的文件
/// </summary>
/// <param name="path"></param>
/// <returns></returns>
public ActionResult DownLoad(string path)
{
if (path.IndexOf("http://") < )
{
string localPath = Server.MapPath("/" + path);
string contentType = MimeMapping.GetMimeMapping(localPath);
return File(localPath, contentType, "下载文件");
}
else
{
HttpWebRequest request = (HttpWebRequest)System.Net.WebRequest.Create(path);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream stream = response.GetResponseStream();
var contentType = response.ContentType;//获得文件的总大小
return File(stream, contentType, "下载文件");
}
}
下载是视频截图:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAEkCAIAAADMxYNvAAAgAElEQVR4nO2dd3gcxd2A9+8vyZdevnzpARKKJSAhdCJ6aKEjiEQNEEKTMaYYYXwgbIrBDQMCI+EzYJpFYiyD7GBjDA6CJEQhS0IKAULgS4fggiv3/bGnvbmd+c3OXtHt6d553kfPam52dnb29r3f7t7NeP7QIAAA6LS0tHj+0GCORCKRSMUpk8kUFFlzWwMApIqoIv9rq3MDPrD1uR/Y+rwPbHPeB7c574PbnP+hr53/oa+d/6GvX/DfAdte+OFtL/zwdhd+ZLuOj2zX8ZHtOz66/diP7jD2ozuM/dgOF31szEUfH3PRx5vGfbxp3Ceaxn2i+eJPNF/8yR0v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UgkUp2m/wfezsD0wJWtsAAAAABJRU5ErkJggg==" alt="" />
将不确定变成确定~Uri文本文件不用浏览器自动打开,而是下载到本地的更多相关文章
- Atitit.检测文本文件的编码 自动获取文件的中文编码
Atitit.检测文本文件的编码 自动获取文件的中文编码 1 不能使用load来检测编码..1 2 使用convert来检测编码1 3 程序检测文本编码2 3.1 根据utf bom头2 3.2 检测 ...
- 不用浏览器,直接用代码发送文件给webservices所在服务器 并且可以周期行的发送
package com.toic.test; import java.io.DataInputStream; import java.io.DataOutputStream; import java. ...
- [SAP ABAP开发技术总结]客户端文本文件、Excel文件上传下载
声明:原创作品,转载时请注明文章来自SAP师太技术博客( 博/客/园www.cnblogs.com):www.cnblogs.com/jiangzhengjun,并以超链接形式标明文章原始出处,否则将 ...
- linux ssh 不用密码自动登录的几种方法
1. 自动ssh/scp方法== A为本地主机(即用于控制其他主机的机器) ;B为远程主机(即被控制的机器Server), 假如ip为192.168.60.110;A和B的系统都是Linux 在A上运 ...
- net 把指定 URI 的资源下载到本地
DirectoryInfo dir = new DirectoryInfo(AppContext.BaseDirectory); var path = dir.FullName + @"te ...
- 【mysql】备份篇1:使用系统计划任务+mysqldump 定时备份mysql数据库 不用输入密码自动导出sql文件
项目部署在服务期上之后,有了新的需求,需要每月定时备份mysql数据库的所有数据! 查找了网上的多篇文章之后,自己又对bat文件中的mysqldump语句进行改进,可以实现了不用输入密码就能自动定时备 ...
- JDK自带工具一览表。妈妈再也不用担心你到处去下载小软件了~~
原来JDK早早就给我准备好了要用到的工具..反编译,JVM性能监视.诊断. JDK(Java Development Kit)是Java程序员最核心的开发工具,没有之一. JDK是一个功能强大的Jav ...
- qq邮箱是怎么做到同一个浏览器让多个不用用户同时打开的? --session的控制
待解:..... 借鉴网址:http://www.zhihu.com/question/20235500 欢迎来讨论.....
- 迅雷最新bug已被找到!mac不用登录也可以极速下载了!
想体验迅雷不限速的快感吗?下载这款迅雷Mac(不限速免vip)免登录版吧!拥有了这款迅雷Mac破解版,电影.游戏等所有大文件都不在话下.体验极速的下载功能,尽在迅雷Mac(不限速免vip)破解版!需要 ...
随机推荐
- 提高代码质量 CheckStyle FindBugs PMD
提高代码质量-工具篇 注:这是一篇翻译文章,原文:How to improve quality and syntax of your Android code,为了理解连贯,翻译过程中我修改了一些陈述 ...
- MySQL中GROUP_CONCAT中排序
SELECT concat('',group_concat(option_name )) as option_name,select_id FROM zuyi_t_search ...
- java 获取本地电脑的分辨率代码
1.代码: java.awt.Toolkit tk=java.awt.Toolkit.getDefaultToolkit(); java.awt.Dimension screenSize= ...
- Java反射机制及IoC原理
一. 反射机制概念 主要是指程序可以访问,检测和修改它本身状态或行为的一种能力,并能根据自身行为的状态和结果,调整或修改应用所描述行为的状态和相关的语义.在java中,只要给定类的名字, 那么就可以通 ...
- 用Java程序判断是否是闰年
我们知道,(1)如果是整百的年份,能被400整除的,是闰年:(2)如果不是整百的年份,能被4整除的,也是闰年.每400年,有97个闰年.鉴于此,程序可以作以下设计: 第一步,判断年份是否被400整除, ...
- Python 7 —— 扩展与嵌入
Python 7 —— 扩展与嵌入 所谓扩展是指,在Python当中调用其他语言,由于Python的问题主要是效率,这里的扩展主要是指扩展C C++程序(重点) 所谓嵌入是指,在其他语言当中可以调用P ...
- vijos1909寻找道路
描述 在有向图 G 中,每条边的长度均为 1,现给定起点和终点,请你在图中找一条从起点到 终点的路径,该路径满足以下条件: 路径上的所有点的出边所指向的点都直接或间接与终点连通. 在满足条件 1 ...
- 修改Eclipse的 workspace目录
1.进入 Window > Preferences > General > Startup and Shutdown 选中 Prompt for workspace on start ...
- If you really want to compile without asm, configure with --disable-asm.
真是一个奇葩问题,对我来说是的,完全不知道是什么意思,但是他就是出现了. 找到了一个相关问题http://trac.ffmpeg.org/wiki/How%20to%20quickly%20compi ...
- 使用Maven自动部署Tomcat 6和Tomcat 7下Web应用
使用Maven自动部署Tomcat 6和Tomcat 7下Web应用 开启Tomcat远程管理权限 在tomcat的config目录下的tomcat-users.xml文件, <role rol ...