Hi,
I´m sorry, The upload did work. The download of the files was corrupted. I streamed the file with follwing code:
// Write the data to the current output stream.
Response.OutputStream.Write(buffer, 0, length);
// Flush the data to the HTML output.
Response.Flush();
Response.Close();
This is only working, if the compression within IIS is disabled. If it is enabled the last bytes of the download is missing. Following changes helped:
Response.OutputStream.Write(buffer, 0, length);
// Flush the data to the HTML output.
Response.Flush();
Response.End();
or
Response.TransmitFile(fl.FullName);
Response.End();
Best regards