Hello,
I want to save association view in Database.
In below code snippets, I have to pass filename, but I want to store this data to database instead of File.
GXXmlWriterSettings settings = new GXXmlWriterSettings();
settings.setValues(false);
client.getObjects().save(tempFile, settings);
So, How to save this to a String to save data in database.
Thank You
Hi, You need to create a…
Hi,
You need to create a memory stream and the save it to the DB.
Something like this:
ByteArrayOutputStream ms = new ByteArrayOutputStream(4000);
GXXmlWriterSettings settings = new GXXmlWriterSettings();
settings.setValues(false);
client.getObjects().save(ms, settings);
//Save ms to the DB.
BR,
Mikko
Thanks for info, but due to…
Thanks for info,
but due to all my work is in json/ String, I would like to save data in String or Json format. Please could you help regarding this.
Thanks again.
Hi, I have answered for your…
Hi,
I have answered for your question here:
https://www.gurux.fi/node/21379
BR,
Mikko
Thanks and Sorry for same…
Thanks and Sorry for same double questions