Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

java.util.zip questions... I figured it out!


  • From: Allen Tuggle" <allen@xxxxxxxxxxxxx (Allen Tuggle)
  • Subject: java.util.zip questions... I figured it out!
  • Date: Thu, 30 Mar 2000 13:12:38 -0500

This is a multi-part message in MIME format.

------=_NextPart_000_0042_01BF9A49.9F8C85E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Oops,
    I figured it out... I had an extra line in there from an earlier try =
and it was messing things up... Sorry.
Allen
  ----- Original Message -----=20
  From: Allen Tuggle=20
  To: advanced-java@xxxxxxxxxxxxxxxx=20
  Sent: Thursday, March 30, 2000 12:52 PM
  Subject: java.util.zip questions...


  Hello,
      I'm currently using this to simpley compress a file for storage in =
a database and then to uncompress later.  Right now i'm saving the file =
to disk then opening and compressing it with  java.util.zip.Deflater. =
and writing that out to disk.  when I read that file back in and try to =
uncompress it with java.util.zip.Inflater it gives me an error =
(java.util.zip.DataFormatException: unknown compression method)


  If any one can help I would greatly appreciate it... attatched is the =
three functions I have wrote warning they look ugly due to =
frustration....

     =20

------=_NextPart_000_0042_01BF9A49.9F8C85E0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Oops,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I figured it out... =
I had an=20
extra line in there from an earlier try and it was messing things up...=20
Sorry.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Allen</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:allent@xxxxxxxxxx"; title=3Dallent@xxxxxxxxxx>Allen =
Tuggle</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  href=3D"mailto:advanced-java@xxxxxxxxxxxxxxxx"=20
  =
title=3Dadvanced-java@xxxxxxxxxxxxxxxx>advanced-java@xxxxxxxxxxxxxxxx</A>=
 </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, March 30, 2000 =
12:52=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> java.util.zip =
questions...</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I'm currently =
using this to=20
  simpley compress a file for storage in a database and then to =
uncompress=20
  later.&nbsp; Right now i'm saving the file to disk then opening and=20
  compressing it with&nbsp; java.util.zip.Deflater. and writing that out =
to=20
  disk.&nbsp; when I read that file back in and try to uncompress it =
with=20
  java.util.zip.Inflater it gives me an error=20
  (java.util.zip.DataFormatException: unknown compression =
method)</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>If any one can help I would greatly =
appreciate=20
  it... attatched is&nbsp;the three functions I have wrote warning they =
look=20
  ugly due to frustration....</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3D"Courier New" size=3D2>&nbsp;&nbsp;&nbsp;=20
</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0042_01BF9A49.9F8C85E0--


---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx