GZip data in ob2

Hello, I followed @Ruri and start using:
var zipped = RuriLib.Helpers.GZip.Zip(bytes);
in ob2 like he said in GZip data (bytes) in OB2
but its not the same thing in golang

my code in ob2:
string str = “test”;
byte bytes = System.Text.Encoding.UTF8.GetBytes(str);
var zipped = RuriLib.Helpers.GZip.Zip(bytes);
string result = Convert.ToBase64String(zipped);

my code in golang:
func gzipData(data byte) byte {
var b bytes.Buffer
gz := gzip.NewWriter(&b)
gz.Write(data)
gz.Close()
return b.Bytes()
}
But in unzip it works fine in golang and ob2

please help @Ruri @DJHooligan @FairyRoot

what if you leave out the convert to base64 and replace it with a FileWriteBytes block?

string str = "test";
byte[] bytes = System.Text.Encoding.UTF8.GetBytes(str);
var zipped = RuriLib.Helpers.GZip.Zip(bytes);

BLOCK:FileWriteBytes
  path = "D:\\zipped.zip"
  content = @zipped
ENDBLOCK