This week's book giveaway is in the Java in General forum.
We're giving away four copies of Java by Comparison (eBook) and have Simon Harrer, Jörg Lenhard, Linus Dietz on-line!
See this thread for details.
Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.util.zip.DataFormatException: invalid code lengths set exception  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following code to decompress PNG IDAT data:



This works well on the second string (different PNG - uncommented string) but i get an exception when trying to decompress the 1st string:



* The total length of the problematic string is 9720 bytes

Can someone please explain what this exception means and how i can overcome it? Thanks,
 
bacon. tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!