zoukankan      html  css  js  c++  java
  • rar压缩文件下载

     //string fileName = "ceshi.rar";//客户端保存的文件名         //string filePath = Server.MapPath("keji.rar");//路径         //路径         string filePath = Server.MapPath("~/DownLoadFileTemp/" + this.FileUrl.Text);         string fileName = this.FileUrl.Text;

            FileInfo fileInfo = new FileInfo(filePath);         Response.Clear();         Response.ClearContent();         Response.ClearHeaders();         Response.AddHeader("Content-Disposition", "attachment;filename=" + fileName);         Response.AddHeader("Content-Length", fileInfo.Length.ToString());         Response.AddHeader("Content-Transfer-Encoding", "binary");         Response.ContentType = "application/octet-stream";         Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312");         Response.WriteFile(fileInfo.FullName);         Response.Flush();         Response.End();

  • 相关阅读:
    LDA模型了解及相关知识
    GAN
    tensorflow学习6
    GAN的文献综述
    python相关工具
    tensorflow学习5----变量管理
    tensorflow学习5----GAN模型初探
    8月14日至8月20日技术积累
    8月7日至8月13日技术积累
    8月1日到8月6日技术要点
  • 原文地址:https://www.cnblogs.com/Carri/p/5405112.html
Copyright © 2011-2022 走看看