Camel users, ( thank you ) My project is to receive a zip compressed and encrypted file attachment from a customer, naturally, decompress and decrypt the attachment via email transfer.
I am only focusing on the zip portion now because over email I can't get it to work. Seems that the compression size changes when sent over email. It seems my logic works, if I take the zip file and simply drop it in the route from my Jboss environment it works. I can zip, unzip, the file from command line and the camel route. However, if I send the file as an attachment over email, the file size changes, and of course it does not work and throws the error... org.apache.camel.RuntimeCamelException: java.util.zip.ZipException: invalid code lengths set which suggests the zip file attachment has been altered during its transfer over email. The original file size is 9044 Bytes, after email xfr becomes, 15580 Bytes. If I try opening it from the OS with unzip, gunzip, it shows: [root@alphprdfuse2i latest]# unzip ge-ip/core/tobeprocessed/archive/cfindustries.zip.ge Archive: ge-ip/core/tobeprocessed/archive/cfindustries.zip.ge caution: zipfile comment truncated error [ge-ip/core/tobeprocessed/archive/cfindustries.zip.ge]: missing 3282862893 bytes in zipfile (attempting to process anyway) error [ge-ip/core/tobeprocessed/archive/cfindustries.zip.ge]: attempt to seek before beginning of zipfile (please check that you have transferred or created the zipfile in the appropriate BINARY mode and that you have compiled UnZip properly) I've tried changing the file extension to JPEG, PNG, ge, etc... with no success. Does anyone know what I can do to get around this??? Thank you !! Gary Mills