<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>11 Oct 2016 23:44:54 Z</lastBuildDate><pubDate>11 Oct 2016 23:44:54 Z</pubDate><description>Hi everyone!&#13;
&#13;
follow the code...&#13;
&#13;
[code:xml]&#13;
public static string UnZip(string value)&#13;
{&#13;
    //Transform string into byte[]&#13;
    byte[] byteArray = new byte[value.Length];&#13;
    int indexBA = 0;&#13;
    foreach (char item in value.ToCharArray())&#13;
    {&#13;
        byteArray[indexBA++] = (byte)item;&#13;
    }&#13;
&#13;
    //Prepare for decompress&#13;
    System.IO.MemoryStream ms = new System.IO.MemoryStream(byteArray);&#13;
    System.IO.Compression.GZipStream sr = new System.IO.Compression.GZipStream(ms,&#13;
        System.IO.Compression.CompressionMode.Decompress);&#13;
&#13;
    //Reset variable to collect uncompressed result&#13;
    byteArray = new byte[byteArray.Length];&#13;
&#13;
    //Decompress&#13;
    int rByte = sr.Read(byteArray, 0, byteArray.Length);&#13;
&#13;
    //Transform byte[] unzip data to string&#13;
    System.Text.StringBuilder sB = new System.Text.StringBuilder(rByte);&#13;
    //Read the number of bytes GZipStream red and do not a for each bytes in&#13;
    //resultByteArray;&#13;
    for (int i = 0; i &lt; rByte; i++)&#13;
    {&#13;
        sB.Append((char)byteArray[i]);&#13;
    }&#13;
    sr.Close();&#13;
    ms.Close();&#13;
    sr.Dispose();&#13;
    ms.Dispose();&#13;
    return sB.ToString();&#13;
}&#13;
[/code]&#13;
&#13;
--&#13;
Analista de Sistemas Jr&#13;
www.arsistemas.com.br&#13;
Pai da Alícia e Marido da Andréa &lt;3</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59926-how-convert-this-code/read.awp</link><title>How to convert this code to WX?</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
