making deflation and base64 encoding in right order...