#Creating ZIP file which is not openning afterwards?
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
I was given the following code :
and it creates my ZIP file, but when I try to open it, Windows say it can't
is there a reason for this?
it says the compressed file is not valid as an error
You're writing a zip output stream to an ObjectOutputStream, which doesn't write a valid zip file
i didnt write any of that code
it says Object(ZIP(file))) no?
What's the file which you're trying to open as a zip file
And which code creates that file
it's a test code to show how this works, by the looks of it, it's trying to write an object (which I changed to a string) to a .ser file
oh, is it possible that it's not working because I did not close my stuff? I think I did not put the whole thing
@rapid citrus Yes, that was it
if you don't close your stream, it seems like it does not work
it started working
.close
Ah lol