title: How Textstream Read/Write methods work in VB 6?
body: <p>VB application is re-engineered to java.
  There is a ZIP file which is read using TextStream.Read(file.size) method in the VB application and this is stored in the DB(coloumn having IMAGE as its data type in Sql).
  How can we read this from java and write to a file so that the ZIP file is valid.
  Is there any particular way of writing/handling these files in java ? </p>
  
  <p>I have found that Textstream.Read method returns a string, but then what is the encoding thats used here and should some characters be removed from the string like newline characters ?</p>
  
  <p>Just to add i am using hibernate , mapped as binary type to retrieve this coloumn.</p>