aspose file tools*
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
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: 1057
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to open zip file in filesystem retrived from sybase database