#1
  1. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2006
    Location
    India
    Posts
    857
    Rep Power
    548

    String compression (for cookies)


    Hi,

    Facing a new problem reminds me Devshed again. I am looking for a support for following:

    One of the cookie size is more than 3K which is creating troubles. The better solution is to get rid of having that big data in a cookie but that is not an option considering many different reasons, not relevant to the question.

    Can someone help me with a piece of code to compress a string and then decompress it to get the original value.

    I did that in php with gzlib but looking for an option in VB.

    Thanks in advance
    Akash Dwivedi
    "Whatever the mind can conceive and believe, the mind can achieve."
    Feel good..


  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Location
    spaceBAR Central
    Posts
    225
    Rep Power
    41
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2006
    Location
    India
    Posts
    857
    Rep Power
    548
    Thanks for trying for me.

    These are all DotNet codes whereas I am seeking support for VB6. I have found few code/algorithms for compression like LZW algorithm that does the job for compression and decompression but only in variables. It fails when I try to retrieve that compressed data back from cookie.
    Akash Dwivedi
    "Whatever the mind can conceive and believe, the mind can achieve."
    Feel good..



IMN logo majestic logo threadwatch logo seochat tools logo