• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to open zip file in filesystem retrived from sybase database

 
Raja Roy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic