Hiho,
derzeit erzeuge ich den Inflater so:
Delphi-Quellcode:
Inflater inf = new Inflater();
try{
PreparedStatement pst = connection.prepareStatement(sql);
ResultSet result = pst.executeQuery();
while(result.next()){
is = new ZipInputStream(result.getBinaryStream(1));
while(true){
int numRead = is.read(input);
if((numRead + 1) != 0){
inf.setInput(input, 0, numRead);
}
int numDecompressed = 0;
while((numDecompressed = inf.inflate(output, 0, output.length)) != 0)
{
os.write(output, 0, numDecompressed);
}
if(inf.finished())
{
break;
}
else if(inf.needsDictionary())
{
System.err.println("Dictionary required! bailing...");
break;
}
else if(inf.needsInput())
{
continue;
}
}
}
inf.reset();
result.close();
}
Werde gleich mal die Idee mit Inflater(true) versuchen
*Edit*: Inflater(true) funktioniert leider nicht
. Bekomme eine Fehlermeldung in der steht: "too many length or distance symbols"