For a Customer who uses an external website to add contacts, etc in their Efficy (Summer 2012). Multiple calls are possible like update user, create user, create/modify actions,..
All these calls are posted to the serverscripts in the guestpage. All values are read correctly but we encounter 1 problem with an image.
In the arguments 'picture' is defined and expects an long string (base64 encoded).
"iVBORw0KGgoAAAANSUhEUgAAAdgAAAG6CAYAAACr5VfIAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAGXRFWHRTb2Z0d2..." and this goes on for a while.
As we are in serverscripts, I could not use windows object/functions.
When we save, we are using the next line.
Database.UpdateFields(ContContext, 0, 'PICTURE', picture);
Where picture is saved now is a normal string, I could not convert it to a blob, stream.
Converting the string to the following format did not work as well.
var picture = "data:image/png;base64, ..."
In db editor I can see the 'hugeblob' of an existing picture of a contact for example, on top defined the content type and below non readable text.
Has anyone already managed to save this to the database as blob?
It would be a great help because of the external website, there are not any other feasible options.
Thanks in advance.