Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Compression/Decompression using C#(Only using C# APIs. no third party)

Compression/Decompression using C#(Only using C# APIs. no third party)

Scheduled Pinned Locked Moved C#
csharpalgorithmsquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KASR1
    wrote on last edited by
    #1

    we have implemented the Compression/Decompression in C# using J# APIs. This J# supported in .Net 2.0 but MS have removed the support for J# in .Net4.0. we are migrating to .Net 4.0 and need to rewrite J# implementation in C# as J# is no longer supported. We tried using GZipSteam/ZipPackage but that do not provide the backward compatiblity i.e, we cannot use J# compressed file for decompressing. Also multiple file compression using GZipSteam is complex. Is there any other solution to do compression/decompression in C# itself.(We do not want to use third party library). Is is possible to write compression/decompression algorithm in C#? Any suggessions are welcome.

    OriginalGriffO 1 Reply Last reply
    0
    • K KASR1

      we have implemented the Compression/Decompression in C# using J# APIs. This J# supported in .Net 2.0 but MS have removed the support for J# in .Net4.0. we are migrating to .Net 4.0 and need to rewrite J# implementation in C# as J# is no longer supported. We tried using GZipSteam/ZipPackage but that do not provide the backward compatiblity i.e, we cannot use J# compressed file for decompressing. Also multiple file compression using GZipSteam is complex. Is there any other solution to do compression/decompression in C# itself.(We do not want to use third party library). Is is possible to write compression/decompression algorithm in C#? Any suggessions are welcome.

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Yes - if you know what the algorithm J# used is. (I don't) But an easier solution (if a bit clunky) would be to create a J# standalone module in .NET 2 and call into that from your C#. It means you have some code base you can't alter easily, but it would ensure that you could read your existing files. You could then automatically migrate them to Zip as you come across them, so eventually the J# stuff has disappeared.

      Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      K 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Yes - if you know what the algorithm J# used is. (I don't) But an easier solution (if a bit clunky) would be to create a J# standalone module in .NET 2 and call into that from your C#. It means you have some code base you can't alter easily, but it would ensure that you could read your existing files. You could then automatically migrate them to Zip as you come across them, so eventually the J# stuff has disappeared.

        Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

        K Offline
        K Offline
        KASR1
        wrote on last edited by
        #3

        Thanks for your infomation. I am thinking whether we can create a module in Java that takes care of comp/decomp. We can make use of that JAVA module in C# via interface methods. Is that would be possible?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups