cancel
Showing results for 
Search instead for 
Did you mean: 

How to zip a set of pictures

fabrice_
Champ on-the-rise
Champ on-the-rise

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

1 ACCEPTED ANSWER

Fred_Vadon
Star Contributor
Star Contributor

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

View answer in original post

2 REPLIES 2

Fred_Vadon
Star Contributor
Star Contributor

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

Hello,