# 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.0+6cdd805be49c3b769a116584ea6904955ecd820d **C#** ``` C# public static string CompressToString( Object obj ) ``` **VB** ``` VB Public Shared Function CompressToString ( obj As Object ) As String ``` **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