SetBase64
![SetBase64 1:](Images/jpg/13465140107__Web.jpg)
This method sets the value of a property to a Base64-coded value. A data structure, for example, can be used as the source. Coding to the Base64 format takes place inside the method.
Syntax
METHOD SetBase64 : SJsonValue
VAR_INPUT
v : SJsonValue;
p : PVOID;
n : DINT;
END_VAR
Return value
Name | Type |
---|---|
SetBase64 | SJsonValue |
Inputs
Name | Type |
---|---|
v | SJsonValue |
p | PVOID |
n | DINT |
Sample call:
jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonProp := fbJson.FindMember(jsonDoc, 'property');
jsonValue := fbJson.SetBase64(jsonProp, ADR(stStruct), SIZEOF(stStruct));