How to correctly deserialize a ByteArrays as an SFSObject on the client?
-
- Posts: 13
- Joined: 03 Aug 2019, 04:36
Re: How to correctly deserialize a ByteArrays as an SFSObject on the client?
I'm sorry, and yes I'm new to this so it's getting a little tricky, I'll use your suggestion and study the example, Thanks so much for the help!
-
- Posts: 13
- Joined: 03 Aug 2019, 04:36
Re: How to correctly deserialize a ByteArrays as an SFSObject on the client?
Coming back to thank you Lapo, everything is now working normally!
I did:
On the client i just get the "params" and all is done.
Thank you very much for the support and your patience! appreciate!
My suggestion is to extract the ByteArray you need directly from the server side result-set and send only that to the client.
I did:
Code: Select all
try
{
ISFSArray queryResult = dbManager.executeQuery(sql, new Object[] { sender.getName() });
ISFSObject response = SFSObject.newFromBinaryData(queryResult.getSFSObject(0).getByteArray("data"));
send("gp", response, sender);
}
catch (SQLException e)
{
trace(ExtensionLogLevel.WARN, "SQL Failed: " + e.toString());
}
On the client i just get the "params" and all is done.
Thank you very much for the support and your patience! appreciate!
Who is online
Users browsing this forum: No registered users and 61 guests