Click here to Skip to main content
15,905,682 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I'm working on a project and one of my task is to encode the file contents. I found a helpful article on encoding and decoding on internet http://stackoverflow.com/a/1081776/885507[Best Compression algorithm for a sequence of integers]. In given code ShowRaw function prints the hex string. I want this hex sting to a very small string.

You can get the sample hex string from http://pastebin.com/h4amRqYk[here].

Please give me some ideas to do this task.


Thanks
Kapil
Posted
Comments
BillWoodruff 5-Jan-15 5:42am    
Important to know here what "file contents" is: is it a sequence of integers ? integers of a certain Type; Int32, Int64 ... or Bytes ? And, why is it you want to use Hex ?

The code you linked to on SO is by Marc Gravell: I'd trust any code he wrote; he's a genius.
Kapil Waghe 5-Jan-15 6:11am    
Hi, file contents is bytes of a file may be a small image. It is not a sequence of integers. I tried many algorithms like LRE, LZ4Codec, LZO.NET etc to compress the bytes but did not get expected results so, now I'm trying with Hex. Thanks

1 solution

If you want help on a Stack Overflow answer, then I would suggest that you contact the author of the answer via Stack overflow: we are not in the habit of correcting their mistakes, if any.

This is a different site - would you expect AMD to provide technical support on Intel products?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900