75
Views
13
Comments
Solved
OutSystems My File Size not showing base on Binary Data

Hi all,

I'm current new to OutSystems. So I also did use BinaryData_API (Convertor). But i still can't view my File Size base on the screenshot that I show with the debugging mode. I am wondering what is the issue or is there any way to fix this issue?. Once again thank you so much for the help. 

My OML File (Google Drive): https://drive.google.com/file/d/1wryu63jtevxt2Yxyq5w1e_qn2FN-ZC-6/view?usp=sharing

2021-01-04 08-13-48
Toto
 
MVP
Solution

So you want to get the size in Integer ? is that correct ?

Because output of BinaryDataSize is Integer.


UserImage.jpg
Deemo

I am also using the SFTP Forge Plugin for this. 

2021-01-04 08-13-48
Toto
 
MVP

Hi,

On your screenshot, it showing that BinaryDataSize is 18798 bytes, can you elaborate the question ? what is not showing ?

UserImage.jpg
Deemo

I want to show the File Size to (Integer Data type) Instead of BinaryDataSize. Because OutSystem Table (Expression). Don't allow me to show Binary Data Type so it must be converted to Intger, Long Intger or Text. 

2021-01-04 08-13-48
Toto
 
MVP
Solution

So you want to get the size in Integer ? is that correct ?

Because output of BinaryDataSize is Integer.


UserImage.jpg
Deemo

Yes Correct. But i don't know why. Why the value is not passing through to my FileSize Variable when i already assign it already and did a convertation. 

2021-01-04 08-13-48
Toto
 
MVP

See my example, but take note, because this is client action that called server action, it need a while to transfer to the server, so the value will changed after the server response.

Better use BinaryDataClientSide (https://www.outsystems.com/forge/component-overview/3242/binarydata-client-side-o11) so everything will be done on client side.

DemoFileSize.oml
UserImage.jpg
Neha Bhimsaria

Hello , 

Can you please share the oap file?

The OAP will be downloaded from here.

As you have many other dependencies as well. 

Thanks 

Neha

UserImage.jpg
Deemo

Sorry for the late reply here is my OAP File. Attach on the google drive: https://drive.google.com/file/d/1RTPgtbC3c3iihJnc09SMwdpZ65x42qag/view?usp=sharing

UserImage.jpg
Deemo

The issue for this is still not solve. Kindly help on it thank you so much. 

2021-01-04 08-13-48
Toto
 
MVP

Has you tried my oml in my previous answer ? 

UserImage.jpg
Deemo

Thank you so much your method do work. Let me mark it as solution. So i just want to clarify. How do we know when to use Server Action or Client Action?? Base on the requirement that we want to fulfill?

2021-01-04 08-13-48
Toto
 
MVP

In layman term : better use client action for everything you need before submit, after submit, then use server action.


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