ok...this is the code to write the bytes into the zip entry...
FileOutputStream fos=new FileOutputStream("my_test.html");
fos.write(ByteArray2);
// THIS LOCAL FILE IS FOR TROUBLESHOOTING...AT THIS POINT...I OPEN my_test.html ON THE HARDDRIVE AND THE HTML TEXT DISPLAYS...THE IMAGES DON'T...BUT THATS THE NEXT PROBLEM...
// OK..NOW CAN I DUMP THIS SUCKER INTO A ZIP?
try {
// Create the ZIP file
String outFilename = "c:\\my_test.zip";
ZipOutputStream zip_os = new ZipOutputStream(new FileOutputStream(outFilename));
// Create a ZIP entry and add it to the output stream.
zip_os.putNextEntry(new ZipEntry("my_test.html"));
// Write the byte array to the output stream
zip_os.write(ByteArray2);
// Close the entry in the archive
zip_os.closeEntry();
// Close the ZIP archive
zip_os.close();
} catch (IOException e) {
}
// I OPEN THE ZIP ON THE HARDDRIVE...AND A BLANK HTML DISPLAYS FOR THAT ENTRY
So I can't figure out what goes wrong between writing the byte array to a local file and writing the same byte array into a zip entry...Thank you again for reading...
[ March 14, 2007: Message edited by: Tom Griffith ]