I am trying to create feature level metadata records server side and I want to return them to the client in some way. Is there a way to Zip a these records and then return them in a zipped genericfiledatabinding? I ideally need to do it this way because I need to keep CSW credentials client side.
There is no built-in functionality to do this, but you can do it quite
easily on your own.
In your process, use the zip() method of the IOUtils class to zip your
files. The zipped file can then be returned as GenericFileData.
Now you will need to create a mime type for the new zipped file format.
You will need to add this mime type to the GenericFileGenerator in the
You should also use the mime type in your process, when you create the
GenericFileData with the zip file as payload.
Last but not least, you could add the mime type and the file extension
"zip" in the io.properties file located in the directory
This should ensure that the zip file will be delivered with the correct