Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

GZIP part of a file

807591Apr 25 2008 — edited Apr 25 2008
I have a text file that I am currently using to export data from a database. This data has to be in a particular order and must be readable. I have this part working just fine, but now I have a requirement to place more data at the end of this text file from the same database. This new data will increase the size of the file tremendously and I don't want this data to be modified(not readable). All of this data must be able to be read and parsed back to the database by our software. I would like to compress only the extra data before writing it to the text file. Is this possible? In other words, can I write compressed data only to a certain part of a text file and then only read that compressed part back in and uncompress it. The only part I have yet to master is the reading back from the text file. Every time I get the IOException: Not in GZIP Format. Any Ideas?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2008
Added on Apr 25 2008
8 comments
346 views