cancel
Showing results for 
Search instead for 
Did you mean: 

How to serialize a java object and write it into a maxDB table

Former Member
0 Kudos

Hi does anybody know how to solve the problem described in the subject?

Thank you in advance.

Kind regards, Patrick.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi patrick,

These r the steps to do serialization in java

FileOutputStream f= new FileOutputStream(“MySerFile.ser”);

ObjectOutputStream obfile= new ObjectOutputStream(f);

obfile.writeObject(objectInstance);

obfile.close

Former Member
0 Kudos

Hmm...but this doesn't answer my question. What about the code for uploading this file (probably as an blob) into the database?

Thank you.