jcampion
8 years agoNew Contributor III
Streaming XML data to ZipFile Write - how to set internal filename
I would like to stream data directly to a zip file (without first writing the data to disk).
I want to dynamically set the name of the file inside the zip file (not the zip file, but the file it contains).
Given this file:
mydata.zip
myfile1.xml
I want to create mydata.zip file (which I can do and name properly), and name the internal xml file without first writing the xml to disk.
When I use the XML formatter, it creates output as output0, not as myfile1.xml.
If I read a file from disk, it correctly sets the file name, however if I use the XML formatter to create binary data to stream to the ZipFile Write component, I can’t find a way to set XML filename.
Any suggestions are greatly appreciated.
Thanks,
Judy