Mule Zip File and send zipped file towards FTP server

前端 未结 3 2024
情书的邮戳
情书的邮戳 2021-01-22 23:03

I know Mule has great support for gzip compression of data using the element. However the client now wants zip compression since the file has to be placed on an FTP as a zip co

3条回答
  •  不知归路
    2021-01-22 23:19

    In the ZipTransformer constructor, the following is deprecated.

    registerSourceType(InputStream.class);
    registerSourceType(byte[].class);
    

    Use this instead:

    registerSourceType(DataTypeFactory.create(InputStream.class));
    registerSourceType(DataTypeFactory.create(byte[].class));
    

提交回复
热议问题