0 votes

Hello,

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).
For example: "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.
Kind regards,

Jonas Vdb

asked in WorkFlow / Serverscript by (104 points)
Hello Jonas, I tried storing a decoded base64 string inside the picture field (this is required) but then it also didn't work. I suggest you create a support ticket

1 Answer

0 votes

let us know about the answer here^^

answered by (989 points)
1,249 questions
1,521 answers
1,859 comments
328 users