Add compressToBase64 support
Merge pull request #2 from cloudeecn/master

Add compressToBase64 support