Jo Smo Jo Smo - 1 year ago 69
PHP Question

How to compress large text stored in a database?

Most of the text stored in my database is from 1MB to 1.5MB big. How could i compress it, so that it would get smaller in size?

Answer Source

A Hash is not revirsable, you can make a 1.5mb large text into a small string with the help of hashing, but you can not make the same hash back into the text.

What you are looking for is a Compression algorithm. You can make the files alot smaller with compression, but unlikely the size of a hash.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download