in reply to compress data to pass in url?

You should know that encoding the data in text-readable format will increase its size,so you're basically losing the advantages of compression.

how big is your data? how about a sample?

how about using Mime::Base64? For binary data, Base32 would use 5 bits/character (60% Size Increase), Base64 uses 6 bits/character (33.33% Size Increase).