S
Sharon
when i try to download my zip file via my asp net program, the zip file will
be corrupted after i download, below is my code:
' Identify the file to download including its path.
Dim filepath As String = Server.MapPath("\eClinicApp\VISITD.ZIP")
' Identify the file name.
Dim filename As String = System.IO.Path.GetFileName(filepath)
Response.Clear()
' Specify the Type of the downloadable file.
' octet-stream
Response.ContentType = "application/octet-stream"
' Set the Default file name in the FileDownload dialog box.
Response.AddHeader("Content-Disposition", "attachment; filename="""
& filename & """")
' Download the file.
Response.WriteFile(filepath)
Response.Flush()
Any body know what happen, pls help
be corrupted after i download, below is my code:
' Identify the file to download including its path.
Dim filepath As String = Server.MapPath("\eClinicApp\VISITD.ZIP")
' Identify the file name.
Dim filename As String = System.IO.Path.GetFileName(filepath)
Response.Clear()
' Specify the Type of the downloadable file.
' octet-stream
Response.ContentType = "application/octet-stream"
' Set the Default file name in the FileDownload dialog box.
Response.AddHeader("Content-Disposition", "attachment; filename="""
& filename & """")
' Download the file.
Response.WriteFile(filepath)
Response.Flush()
Any body know what happen, pls help