'Apache-Camel - Create Zip file from stream and send to SMTP server

I am looking for sample code references to email zip file (from stream) to SMTP server in camel Java. Here is what I tried and this code gives me : org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: null to the required type: java.io.InputStream with value null

from("amq:receiveZippedString")
    .bean(this, "decompress(*)")
    .marshall()
    .zipFile()
    .to("smtpServerEndPoint");


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source