Actually, it's not like a .zip file in any way, that's a totally inappropriate analogy. Reading some of the links in the early pages of this thread might steer you in the right direction.
Like I said, I'm not an engineer. Sorry if my analogy was misleading. It's just that folding/unfolding sounds a lot like zipping/unzipping.