This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes Unable to open zip file in filesystem retrived from sybase database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Unable to open zip file in filesystem retrived from sybase database" Watch "Unable to open zip file in filesystem retrived from sybase database" New topic
Author

Unable to open zip file in filesystem retrived from sybase database

Raja Roy
Greenhorn

Joined: Sep 13, 2012
Posts: 1
Hi,
I have written a java prog which is retriving blob data from my sybase database which i stored as a zip file

this thing working fine and data is inserted .Now I am trying to retrieve this zip I stored and keep it in different directory in filesystem. For that I have done this
For information the zip file I stored contains two xml file
and this prog working fine a zip is created with required size but when I try to open that it is giving error
I have also done a simple prog to check zip functionality like created a zip and move two txt file in that .the case is that zip also not opening
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 1035
    
  10

Why are you unzipping the stream and then re-zipping it to write it out to the new file. Why are you not just writing the binary stream to the output file without unzipping it.
 
 
subject: Unable to open zip file in filesystem retrived from sybase database
 
Similar Threads
Character Encoding
problem using getSize on classes in jar file
Decompress the HTTP Request body
retrieving zip file from a Blob
Question on ZipInputStream and encoding