How to zip a set of pictures

Hello,

I have to send a zip file with a set of pictures but I can't manage to define the xpath.

Here's what I try in the automation chain :

Files > Get Document Files > xpath : file:content
Files > Zip > photos.zip

I get the following error :

java.lang.ClassCastException: org.nuxeo.ecm.core.api.model.impl.primitives.BlobProperty cannot be cast to org.nuxeo.ecm.core.api.model.impl.ListProperty

I also tried something like this with no success :

picture:views/view[0]/content

What's the xpath to get the pictures files ?

Thank you very much for your answers

Fabrice

0 votes

1 answers

1379 views

ANSWER



Hi,

You should try with the operation Get Document File and not Get Document FileS if you have only a mono valued field which is the case of file:content for example.

Hope that help

Fred

1 votes



Hello,

Thanks a lot, it works fine. I'd like to send this zip file by mail now. I ask a new question in the list.

Regards

Fabrice

05/24/2012