Nice. So we have a working workaround, but the original issue seems to be still present.
Can you please help us to find out what is happening?
The version 2.0.6083.0 you are using is 4 years old, so it is possible that the issue is already solved. Unfortunately, I am not able to reproduce the issue with the 2.0.6083.0 version nor the latest version.
Can you please try the similar as before, but now use the original call: zip.AddFile(Temp_BPI_SaveLocation + strDataFileWithTimeStamp, @"\files\").
The test code should look like this:
// Add the file to newly created "files" folder within the zip file
var result = zip.AddFile(Temp_BPI_SaveLocation + strDataFileWithTimeStamp, @"\files\");
Console.WriteLine("Result: {0}, {1}, {2}.", result.FilesAffected, result.FilesCompressedLength, result.FilesUncompressedLength);
var item = zip[@"\files\" + strDataFileWithTimeStamp];
if (item == null)
Console.WriteLine("File not found in the Zip file.");
else
Console.WriteLine("Zip file lengths: {0}, {1}.", item.CompressedLength, item.Length);
What is the program output now?
Are you able to extract the file or is it empty?
Are you able to extract the file programmatically as mentioned before?