Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid inflate #6

Open
Marka83 opened this issue Mar 31, 2013 · 0 comments
Open

Invalid inflate #6

Marka83 opened this issue Mar 31, 2013 · 0 comments

Comments

@Marka83
Copy link

Marka83 commented Mar 31, 2013

I'm deflating following html using both System.IO.Compression.DeflateStream and Ionic.Zlib.DeflateStream:

<div id="feedHeaderContainer">
      <div id="feedHeader" dir="ltr" class="feedBackground">
        <div id="feedIntroText">
          <p id="feedSubscriptionInfo1"></p>
          <p id="feedSubscriptionInfo2"></p>
        </div>
        <div id="feedSubscribeLine"></div>
      </div>
    </div>

They both produce same base64 output:

s0nJLFPITLFVSktNTfFITUxJLXLOzytJzMxLLVKy4+VSAAMbTFVKCimZRbZKOSVAVnJOYnExRNIpMTk7vSi/NC8FoRtNv2deSVF+SGpFCbIKoJoCuIrg0qTi5KLMgpLM/DzPvLR8QyU7G/0CYlUboau20Qdaj8s1UN1JqT5AL4N0IqtF5kHYAA==

Decompression in C# works just fine, but using RawDeflate.inflate produces following result:

<div id="feedHeaderContainer">
      <div id="feedHeader" dir="ltr" class="feedBackground">
        <div id="feedIntroText">
          <p id="feedSbscrpass="feedBackground">
        <div id="feedIóbscrpass="feedBackground">
        <div id="feedIóbscrpass="feedBackground">
        <div id="feedIóbscrpass="feedBackground">
        <div id="feedIóbscrpass="feedBackground">
        <div id="feedIóbscrpaöscrpaöscrpaösc��NP]%�Ç��"feedBackground">
        <div id="feedIóbscrpass="feedBackground">
        <dieLedIdiv pass="feedBav pass="feedv pass

When i compress complete html document it returns empty string.

This is my code:

var com = 's0nJLFPITLFVSktNTfFITUxJLXLOzytJzMxLLVKy4+VSAAMbTFVKCimZRbZKOSVAVnJOYnExRNIpMTk7vSi/NC8FoRtNv2deSVF+SGpFCbIKoJoCuIrg0qTi5KLMgpLM/DzPvLR8QyU7G/0CYlUboau20Qdaj8s1UN1JqT5AL4N0IqtF5kHYAA==';

unc = Base64.btou(RawDeflate.inflate(Base64.fromBase64(com)));
alert(unc);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant