Zip And Jar


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Zip And Jar

  1. #1
    Join Date
    Oct 2004
    Posts
    151

    Question Zip And Jar

    Hi everyone,

    I have a small program in which i try to encrypt a zip or jar file but here is the thing in that eveything can be decrypted and encrypted without any problems but the archives(either a jar or zip file) after decryption later cannot be read. This does not happen for other type of files. I notice this only happens to archives.

    Why is this so?

    I hope someone can explain to me this in detail

    Thank You

    Yours Sincerely

    Richard West

  2. #2
    Join Date
    May 2004
    Location
    Durham, UK
    Posts
    174
    Hi Richard,

    I don't know if it is of any help, but I had a similar problem when I wrote
    a small program to download PDF files from the internet.

    Other files came down correctly, but it seemed that the PDF files were corrupt.

    I found in my program that I was using InputStreamReader/BufferedStream reader which I suspect was doing some cr/lf conversions in the background.

    All that I really know is that I fixed it by using a plain InputStream instead.
    Hope this helps
    Graham

    Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, and if they get mad, you are a mile away and you have their shoes ;-)

    http://www.grahamrobinsonsoftware.com

  3. #3
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    Richard:

    Are you archiving after you encrypt, or do you archive and then encrypt? If the latter, then you are running into a problem with the interaction between encryption and the archiving format, which might include an encryption mechanism of its own ... Where have you searched for a solution to this? I would think that you are not the first to face this problem ...
    Last edited by nspils; 02-21-2005 at 02:15 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center