lsfusion/platform

Supported string with files ($R) in HTTP requests / responses

Closed this issue · 0 comments

Example:

On server:

readResource(STRING resource) {
    EVAL ACTION 'exportString() <- \'$R\{' + resource + '\}\';';
}

On client:

EXTERNAL HTTP 'http://127.0.0.1:8888/exec?action=MyCompany.readResource&p=inventory.png' TO exportString;
MESSAGE '<img src="${exportString()}"></img>';