At what point are you getting this error??Please elaborate on your flow process/steps etc…Is your FTP and TN receving/extraction part successfull? Are you zipping/unzipping the file before or after TN process??
I am getting the same problem when i attach a winzip file and send it via pub.client.smtp function.
When i try opening the winzip attachment which i got via mail, it says that “file may not be valid archive” and “try downloading file again”. However, source file is properly zipped.
Are you attaching the file to email by giving the file name i.e. location of the file(attachments/filename) or adding the content of file i.e. attachments/content.
In pub.client.smtp service, under attachements i am passing the content type as “application/zip” (mime type),content in the form of bytes (by getting the target zip file by using pub.file.getfile) and file name as "filename.zip"
Is there any specific reason you are not using the “attachments/filename” parameter. Instead of using pub.file.getfile function, directly pass the fully qualified name of file in attachments/filename and thats it. You won’t even have to pass the content type.
I have been working with zip files since I got a computer. But once I had an unpleasant complicated proposition. My zip archives were lost. Fortunately I entered the Google and came upon - how to restore zip file program on windows xp, it resolved my issue within seconds and ultimately free of charge. What is more I knew how the utility could help and repair any file with *.zip extension.