Skip to main content
Question

write to zip file, the file size are difference

  • February 17, 2023
  • 6 replies
  • 11 views

viviancfhung
Contributor
Forum|alt.badge.img+1

We have two FME server with same version.

The .fmw are the same.

We translate file from gml.zip to fgdb.zip.

But the output of 2 zip files are difference in size

The files size in fgdb folder are the same.

How can we set the FME server in order to get the zip file with same size

 

6 replies

hkingsbury
Celebrity
Forum|alt.badge.img+55
  • Celebrity
  • February 19, 2023

Its a bit weird that the sizes are different, but if the content is the same (and appears the same when you view the feature classes in the GDB) whats the concern?


redgeographics
Celebrity
Forum|alt.badge.img+50
hkingsbury wrote:

Its a bit weird that the sizes are different, but if the content is the same (and appears the same when you view the feature classes in the GDB) whats the concern?

How much is the difference anyway?


viviancfhung
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • February 21, 2023
hkingsbury wrote:

Its a bit weird that the sizes are different, but if the content is the same (and appears the same when you view the feature classes in the GDB) whats the concern?

The main point is that our customer challenge it


viviancfhung
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • February 21, 2023
viviancfhung wrote:

The main point is that our customer challenge it

difference is around several bytes to 1K in size.

 


redgeographics
Celebrity
Forum|alt.badge.img+50
viviancfhung wrote:

The main point is that our customer challenge it

This could be as simple as different timestamps on the files inside the zip being compressed differently.

 

I understand the concern, and if you want to be absolutely sure you can always compare the (unzipped!) files.


hkingsbury
Celebrity
Forum|alt.badge.img+55
  • Celebrity
  • February 21, 2023
viviancfhung wrote:

The main point is that our customer challenge it

That was one of my thoughts. There may also be some level of randomness in the compression. One instance may use a slightly better seed/random number to perform the compression.

 

You also say you're using the same version, but are the machines the same? different versions of windows, with different specs may have different settings when compressing.

 

Here are default the settings from 7z on my laptop. Looking at another machine i have access to, the defaults are different because the specs are different

image 

Basically, there are so many variables that are likely to play into this. If it were mbs different, then there could be an issue, but if the contents of the file are the same, then i don't see the problem with a couple of bytes difference.

 

It could even come down to the "pysical" position of the data on the drive. on one system the file might span two blocks and on the other system it might span three


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings