Reputation: 29463
I want to create an object from a Ruby program and store it in an SQL database as a blob. I then want to be able to read this blob directly into a Java program at a later date. I understand that these blobs will probably be incompatible. How can I go about making a Java-readable blob from Ruby?
Upvotes: 1
Views: 809
Reputation: 16435
You should use thrift, it is much faster than (de)serializing json. See the benchmark here
Upvotes: 0
Reputation: 38899
Upvotes: 2
Reputation: 15434
You can use json (xml, yaml) format to store object as string. And parse it in java.
Upvotes: 2