79
Views
5
Comments
Solved
Uint8Array in OS?
Question

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

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
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

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

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


UserImage.jpg
Daniel Hobgood

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. 

UserImage.jpg
Daniel Hobgood

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

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
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

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi Daniel,

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

Regards,

Daniel

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.