Skip to main content
Question

How do I write two different file formats to one zip file?

  • September 28, 2016
  • 4 replies
  • 108 views

fmelizard
Safer
Forum|alt.badge.img+20

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

fmelizard
Safer
Forum|alt.badge.img+20
  • Author
  • Safer
  • 3719 replies
  • September 28, 2016

If you are using traditional writers, then I believe it's as easy as specifying the same zip file name for both Writer's dataset parameter.

It definitely works this way for the FeatureWriter. Here is an example:

write-to-the-same-zip-file.fmw


fmelizard
Safer
Forum|alt.badge.img+20
  • Author
  • Safer
  • 3719 replies
  • September 29, 2016

Also check out https://knowledge.safe.com/articles/673/zip-your-output-with-fme.html -- you can use this technique and have multiple traditional writers where you specify the same path to a zip file and then even different directories inside that zip file where the output will be placed. For example:

Your textfile writer might have its output dataset as c:\\temp\\package.zip\\readme.txt

In the same workspace, your shape writer would have: c:\\temp\\package.zip\\roads

And your XML writer would have: c:\\temp\\package.zip\\metadata\\roads.xml

One zip file would be created, and within it, the data would live in the subidirectories specified. Cool.


tono
Supporter
Forum|alt.badge.img+13
  • Supporter
  • 39 replies
  • September 8, 2020

If you are using traditional writers, then I believe it's as easy as specifying the same zip file name for both Writer's dataset parameter.

It definitely works this way for the FeatureWriter. Here is an example:

write-to-the-same-zip-file.fmw

Missing link here. Could you please send it again? Thanks in advance!!!


LizAtSafe
Safer
Forum|alt.badge.img+17
  • Safer
  • 1541 replies
  • September 16, 2020

Missing link here. Could you please send it again? Thanks in advance!!!

Hi @tono​ I've fixed the link.