In my Asp.net Application, I'm downloading a zip file using File Streaming. 
When Opening the downloaded file I get this error:

"Either multipart or corrupt ZIP archive".

I downlodaed it using FTP client and the zip file is Ok!!!

My download code is:
******************

FileStream fs = File.OpenRead(strPath);

byte[] bytBytes = new byte[fs.Length];

fs.Read(bytBytes, 0, (int)fs.Length);

fs.Close();

HttpContext.Current.Response.Clear();

HttpContext.Current.Response.AddHeader("Content-disposition", "inline; 
filename=" + strFileName);

HttpContext.Current.Response.AddHeader("Content-Type" , "application/zip");

HttpContext.Current.Response.BinaryWrite(bytBytes);


******************



Can anybody help?

Jana



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to