public static byte[] GetCompressedDocumentContentBytes(string path) { return(!string.IsNullOrEmpty(path) ? GZipUtils.Compress(File.ReadAllBytes(path)) : null); }
public static string GetBase64Document(string path) { return(!string.IsNullOrEmpty(path) ? Convert.ToBase64String(GZipUtils.Compress(File.ReadAllBytes(path))) : string.Empty); }