Skip to Main Content

Java Database Connectivity (JDBC)

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Store compressed data to blob column

843859Jul 26 2010 — edited Nov 20 2014
Hi,

I compressed a String using class Deflator and stored it to a blob column in MySQL 5.1 database table.
After reading the compressed string out of the table the read string is different.

Is there a way to save and restore compressed data to/from a database?
I am looking for a general, database-independent solution - e.g. not MySQL compress() or self compressing columns (PostgreSQL).

Who can help?

Thank you
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 25 2010
Added on Jul 26 2010
4 comments
1,037 views