Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET convertion of SharpZipLib

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #19526 |

    I’m converting a project that I found on http://www.codeproject

    http://www.codeproject.com/vb/net/MhtBuilder.asp?df=100&forumid=104741&exp=0&select=927773&fr=51#xx927773xx

    however I don’t know how to convert the following line of code into Xceed– any help is apprecieated.

    s = New Zip.Compression.Streams.InflaterInputStream(New MemoryStream(b), _
    New Zip.Compression.Inflater(True))

    Imported from legacy forums. Posted by William (had 2802 views)

    User (Old forums)
    Member
    Post count: 23064

    This should work:

    s = New Xceed.Compression.CompressedStream( New MemoryStream( b ) )

    The CompressedStream class serves both decompressing (reading from the inner stream and decompress, or “inflate”) and compressing (compressing or “deflate”, then write to the inner stream).

    Imported from legacy forums. Posted by Martin (had 406 views)

    User (Old forums)
    Member
    Post count: 23064

    Works great- thanks for the speedy reply

    Happy Holiday’s

    Imported from legacy forums. Posted by William (had 3642 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.