when i try to save this file it creates and folder for the entire path
- by girish
ZipFileToCreate = "c:\user\desktop\webservice\file.zip";
so, when i try to save this file it creates the folder for the path like user\desktop\webservice\file\
why is it so,
FileStream fs = new FileStream(ZipFileToCreate, FileMode.Open);
byte[] data = new Byte[fs.Length];
BinaryReader br = new BinaryReader(fs);
br.Read(data, 0, data.Length);
br.Close();
Response.Clear();
Response.ContentType = "application/x-zip-compressed";
Response.AppendHeader("Content-Disposition", "filename="
+ Parameter + ".zip");
DeleteOldFiles();
Response.BinaryWrite(data);