-
C# 下载图片示例
using System;using System.Web;public class DownImg : IHttpHandler { //图片下载功能 public void ProcessRequest(HttpContext context) { System.Net.WebResponse response = null; System.IO.Stream stream = null; string path = context.Request.Url.Query.Split(new string[] { "coverimg=" }, StringSplitOptions.RemoveEmptyEntries)[1]; System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(path); response = request.GetResponse(); stream = response.GetResponseStream(); System.IO.MemoryStream memStream = Txooo.Mobile.HttpTools.CloneStream(stream); byte[] bytes = new byte[memStream.Length]; memStream.Read(bytes, 0, bytes.Length); // 设置当前流的位置为流的开始 memStream.Seek(0, System.IO.SeekOrigin.Begin); context.Response.ContentType = "application/octet-stream"; //通知浏览器下载文件而不是打开 string fileName = DateTime.Now.Ticks.ToString() ".jpg"; context.Response.AddHeader("Content-Disposition", "attachment; filename=" fileName); context.Response.BinaryWrite(bytes); context.Response.Flush(); } public bool IsReusable { get { return false; } }}
- 2014-05-29下载
- 积分:1
-
收费系统 对过往的车辆收取对应的过路费用
收费系统 对过往的车辆收取对应的过路费用-system of the vehicles crossing the corresponding charge fees
- 2023-01-22 07:05:03下载
- 积分:1
-
Windows编程demo
C#测试使用NotifyPropertyChanged接口、xml序列化以及datagridview控件导入导出excel代码demo。(C# test use NotifyPropertyChanged interfaces, xml serialization and import and export controls excel datagridview code that demo.)
- 2022-01-26 03:56:02下载
- 积分:1
-
数据挑战题
说明: c++制作的小游戏,还有一个排队看病系统,仅供大家参考(Curriculum design of C + +)
- 2020-12-23 10:41:02下载
- 积分:1
-
FastReport
FastReport开发指南,用来提供给初学fastReport的完整开发方案-FastReport
- 2022-02-14 06:51:12下载
- 积分:1
-
dianziyuanqijianbujukekaoxingfenxi
一份描述电子元器件布局可靠性的文档,对于嵌入式系统的开发有重要意义,特别是EMC方面。(A description of the reliability of the document layout of electronic components for embedded systems development is significant, especially in EMC terms.)
- 2010-07-25 14:56:12下载
- 积分:1
-
RS485
这是基于飞思卡尔十六位单片机的RS485通信的例程(freescale RS485 routine)
- 2014-09-16 09:15:43下载
- 积分:1
-
rtclib
说明: 库文件.ds1307的库文件。arduino库文件。库文件.ds1307的库文件。arduino库文件。(arduino ds1307 164kb)
- 2020-06-19 20:00:02下载
- 积分:1
-
C++遗传算法path-planning
说明: 基于遗传算法的移动机器人路径规划问题研究,代码可运行。(Based on the genetic algorithm of mobile robot path planning problem research, code can run)
- 2021-01-21 15:58:41下载
- 积分:1
-
vm
说明: 一个小型虚拟机的实现(a small Virtual Machine Implementation)
- 2004-12-18 15:36:24下载
- 积分:1