I'm porting a VanilaScript based program into OS. I need something similar to Uint8Array in OS. Is there are anything like that? 

Hi Daniel,

You can use JavaScript in OutSystems, and thus use Uint8Array. OutSystems itself does not have this as a datatype.

In JavaScript you can use for example an OutSystems binary and convert it to Unit8Array

$parameters.Size = new Uint8Array($parameters.BinaryData).length;

Regards,

Daniel


Daniël Kuhlmann wrote:

Hi Daniel,

You can use JavaScript in OutSystems, and thus use Uint8Array. OutSystems itself does not have this as a datatype.

In JavaScript you can use for example an OutSystems binary and convert it to Unit8Array

$parameters.Size = new Uint8Array($parameters.BinaryData).length;

Regards,

Daniel



OS doesn't has a run time to support it. Your solution will only work for client-side. I'm talking about doing it inside a sever action. 

Is there are any extensions in forge that could do what I need?

Solution

Hi Daniel,

From your original post I couldn't read you where talking about server side code.

I don't know if there is a extension in the Forge, maybe you check the implemenation of the following extensions:

https://www.outsystems.com/forge/component-overview/287/extension-base64

https://www.outsystems.com/forge/component-overview/3242/binarydata-client-side

But if there isn't you can use OutSystems Integration Studio to create an extension.

Regards,

Daniel

Solution

Hi Daniel,

The two forge components i mentioned do not use Uint8Array in their implementation, so please ignore my previous post.

Regards,

Daniel