Re: Process non-xml files from a zip into another zip

Hi Erik,
The pxp:unzip extension step can extract the JPEGs base64-encoded in a
c:data element, but don't think there is any standardised way to save
the contents. Something like p:unescape-markup would be nice to follow
up with but non-XML content is implementation-defined and I don't know
what Calabash will do.
You should be able to list the zip file's contents with the step, pick
the JPEGs you want, and then run a p:exec with your favourite zip
extractor, however. Calabash now has a cx:wait-for-update step (thanks
Norm!) that allows you to pause the pipeline in the meantime.
Then list the contents of the folder, generate a zip manifest with some
XSLT and use that as input to a pxp:zip extension step.

Ari Nordström
Senior Consultant 
Condesign Operations Support AB
Phone +46 31 744 17 91
Mobile +46 736 000 333
>>> "Erik Siegel" <> 29/10/2013 13:59 >>>

Hi all,
I have a problem where I need to process data in a zip file. Fine as
long as its XML.
However, i also need to extract non-xml files from the source zip (e.g.
jpg files) and add them to the destination zip file. I'm trying to
figure out if I can do this using Calabash only. Anyone that can help me
out on this?
Erik Siegel

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete
the original.  Any other use of the email by you is prohibited.
Condesign AB, 556255-8313, säte Göteborg; Condesign Automation AB,
556271-3676, säte Göteborg; Condesign Engineering AB, 556469-2092 säte
Göteborg; Condesign Infocom AB, 556453-7172, säte Ljungby; Condesign
InfoProductions AB, 556385-4255, säte Linköping; Condesign Operations
Support AB, 556307-1231, säte Göteborg.

Received on Tuesday, 29 October 2013 14:40:08 UTC