Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you inflate in C# what has been deflated in java?

Status
Not open for further replies.

sdint

Programmer
Apr 20, 2007
2
US
I have xml strings in a database that have been compressed in Java using the Deflater class with default options. I would like to inflate the text in C#, but have not been able to do it using the DeflateStream class. Can it be done? There don't seem to be options on the C# side and I'm too late to change the java side. Do I just need to call the java class from C#? I know this is possible, but I've not done it before.
 
You would need to know what compression algorithm was used on the Java side, and then either buy or build the equivalent on the .NET side in C#. There is not likely a direct equivalent to be found in the framework.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
After reading more about the respective algorithms I agree. I've decided to decompress upstream from the C# processing. I wish I had researched this before I started running! It looks like gzip might be a common format.

Anyway, thanks for the note.
 
The guys at #develop have an open source gzip implementation written entirely in C# which might be some use to you
Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top