Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8209235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:39:11+00:00 2026-06-07T09:39:11+00:00

I have a problem trying to decompress (in Java) a string that was compressed

  • 0

I have a problem trying to decompress (in Java) a string that was compressed in Visual Basic, using DeflateStream. I did a little bit of research and saw and tried a lot of code that decompresses in Java using Inflater and InflaterOutputStream. None of the codes found succeeded. I looked over a lot of sites, and searched on google a lot of ways. I can say that the first 3-pages from google that concern java, inflater/deflater compression, visual basic, deflaterStream are already read, without success. I want to know if this thing is possible (and it should be since I have found a way of compressing/decompressing between Java and C# here : http://www.dreamincode.net/forums/topic/243808-compression-and-decompression-between-java-and-c%23/ )
I would also like to know if there are compatibility issues regarding Visual Basic DeflateStream and Java analog classes Inflater/Deflater. If someone had a similar problem I would highly appreciate also some code snippets.

Thanks,
Mihai

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T09:39:13+00:00Added an answer on June 7, 2026 at 9:39 am

    Ok, so I finally managed to solve this. It was a beginner error, but it took me long enough to solve it. The issue was represented by the fact that when I was reading the initial file (that was compressed and encrypted), I was keeping in memory the content of the file as a string, instead of reading directly the content as an array of bytes. And of course, some of the bytes were not supported by the string encoding and they were lost, and that is why the format of the compression was no recognized. The Inflater/Deflater classes from Java are compatible with the DeflateStream class from vb.net !

    Thank you very much for your help and assistance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem trying to turn my python code into an executable using
I have a problem when trying to count in PHP using a button and
I have a problem when trying to execute this update statement (below) using C#
I have this problem when trying to run hello world program using android SDK.
Using Hlint via the command prompt works for me, but I have problem trying
I have a problem trying to stream audio using the AsyncPlayer class in android.
I have a problem trying to solve a situation, when I use Java Reflection
I have a problem trying to delete an entire row using the code as
I have problem that im trying to get solve for like week. My goal
I have a small problem trying to unzip a file using the 7za command-line

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.