# CompressToString Method Compresses a given object to a string using `base64` encoding of `gzip` format. ## Definition **Namespace:** CapyKit.Helpers **Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.2 **C#** ``` C# public static string CompressToString( Object obj ) ``` **F#** ``` F# static member CompressToString : obj : Object -> string ``` #### Parameters
  Object
The object.
#### Return Value String A string in `base64` encoding. ## See Also #### Reference CompressionHelper Class CapyKit.Helpers Namespace