I have an object and I don't know how I can cast it to a Blob, so thyat I can save it to a mysql database.

Can Anyone help me?