1. try to write out the byte size to make sure they are same'......
Dim FileLen As Integer = MyResponse.ContentLength()
Response.Write("***" & FileLen & "***")
Response.End()2. use
test.aspx
<%@ Page Language="VB" Src="t5.aspx.vb" Inherits="class1" %>

解决方案 »

  1.   

    1.
    原文件:
    大小     799 KB (818,537 字节)
    占用空间 800 KB (819,200 字节)下载的文件:
    大小     799 KB (818,537 字节)
    占用空间 799 KB (818,688 字节)2.
    改了也不行思归GG,你一定帮帮偶,这个问题已经困扰了偶一天了。
      

  2.   

    >>>下载后得到的文件和先前的文件不一致
    what's wrong? they have same size (818,537字节)
      

  3.   

    try something else, like some.zip, some.wav
      

  4.   

    i tried your code on .zip files and it seems working
      

  5.   

    我试着建了一个6字节的文本文件,内容为"aaaaaa"占用空间  4.00 KB (4,096 字节)下载后占用空间  512 字节 (512 字节)好像和缓冲区大小有关系,那么:在这里怎么设置缓冲区大小?