资源简介
使用HTTP实现断点续传功能
包括客户端代码、服务器端整套项目代码

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace UpLoadClient
{
public partial class frmUpLoad : Form
{
public frmUpLoad()
{
InitializeComponent();
}
private void btnUpLoad_Click(object sender EventArgs e)
{
string msg = ““;
string fileName = this.txtFile.Text;
UpLoadLib.serverPath = this.txtServer.Text;
if (String.IsNullOrEmpty(fileName))
{
MessageBox.Show(“请选择要上传的文件!“);
return;
}
int byteCount = 100 * 1024;
if (UpLoadLib.UpLoadFile(fileName byteCount out msg))
{
MessageBox.Show(“文件上传成功!“);
}
else
{
MessageBox.Show(msg);
}
}
private void btnSelect_Click(object sender EventArgs e)
{
if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
{
this.txtFile.Text = this.openFileDialog1.FileName;
}
}
private void btn100_Click(object sender EventArgs e)
{
string msg = ““;
string fileName = this.txtFile.Text;
UpLoadLib.serverPath = this.txtServer.Text;
if (String.IsNullOrEmpty(fileName))
{
MessageBox.Show(“请选择要上传的文件!“);
return;
}
int byteCount = 100 * 1024;
if (UpLoadLib.UpLoadFileTest(fileName byteCount out msg))
{
MessageBox.Show(“文件前100K,上传成功!“);
}
else
{
MessageBox.Show(msg);
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 24576 2010-07-30 14:39 UpLoadClient\bin\Debug\UpLoadClient.exe
文件 28160 2010-07-30 14:39 UpLoadClient\bin\Debug\UpLoadClient.pdb
文件 5632 2005-11-11 22:25 UpLoadClient\bin\Debug\UpLoadClient.vshost.exe
文件 2017 2010-07-30 14:29 UpLoadClient\frmUpLoad.cs
文件 5678 2010-07-30 14:20 UpLoadClient\frmUpLoad.Designer.cs
文件 6017 2010-07-30 14:20 UpLoadClient\frmUpLoad.resx
文件 846 2010-07-30 14:39 UpLoadClient\obj\Debug\UpLoadClient.csproj.GenerateResource.Cache
文件 24576 2010-07-30 14:39 UpLoadClient\obj\Debug\UpLoadClient.exe
文件 180 2010-07-30 14:39 UpLoadClient\obj\Debug\UpLoadClient.frmUpLoad.resources
文件 28160 2010-07-30 14:39 UpLoadClient\obj\Debug\UpLoadClient.pdb
文件 180 2010-07-30 14:39 UpLoadClient\obj\Debug\UpLoadClient.Properties.Resources.resources
文件 307 2010-07-30 14:39 UpLoadClient\obj\UpLoadClient.csproj.FileList.txt
文件 475 2010-07-30 14:19 UpLoadClient\Program.cs
文件 1196 2010-07-29 16:18 UpLoadClient\Properties\AssemblyInfo.cs
文件 2878 2010-07-29 16:18 UpLoadClient\Properties\Resources.Designer.cs
文件 5612 2010-07-29 16:18 UpLoadClient\Properties\Resources.resx
文件 1095 2010-07-29 16:18 UpLoadClient\Properties\Settings.Designer.cs
文件 249 2010-07-29 16:18 UpLoadClient\Properties\Settings.settings
文件 3360 2010-07-30 14:19 UpLoadClient\UpLoadClient.csproj
文件 8089 2010-07-30 14:38 UpLoadClient\UpLoadLib.cs
文件 1106 2010-07-30 14:39 UpLoadClient\说明.txt
文件 518 2010-07-29 16:17 UpLoadServer\Default.aspx
文件 383 2005-09-07 09:40 UpLoadServer\Default.aspx.cs
文件 112 2010-07-29 17:23 UpLoadServer\GetFileLength.aspx
文件 1497 2010-07-30 14:14 UpLoadServer\GetFileLength.aspx.cs
文件 104 2010-07-29 16:56 UpLoadServer\UpLoadSer.aspx
文件 2015 2010-07-30 14:00 UpLoadServer\UpLoadSer.aspx.cs
文件 110 2010-07-30 11:34 UpLoadServer\UpLoadSer100.aspx
文件 1812 2010-07-30 14:36 UpLoadServer\UpLoadSer100.aspx.cs
文件 1546 2010-07-30 14:30 UpLoadServer\Web.Config
............此处省略15个文件信息
相关资源
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
- 基于c#的实验室设备管理系统621530
- C# 使用ListView控件实现图片浏览器(源
- C#简单窗体聊天程序
- C#指纹识别系统程序 报告
- c# 高校档案信息管理系统
- c#向word文件插入图片
- C#左侧导航菜单(动态生成)
评论
共有 条评论