Hi,
The file is 0kb but below js code return size 3
debugger
var binaryDataSize = window.atob($parameters.Binarydata);$parameters.Size = binaryDataSize.length;
Please suggest
Resolved with nullbinary check.
Javascript bytes size returns non zero for 0 kb file.
You can check binary data size here as well. Can you check by this.
Regards,
Wasimkhan S
Hii Ujwala ,
I share the oml file you can go through this.
Thanks and regardsMuskan Jain
Can you please uploaded 0 byets file and check the outsput wrt javascript
Hi @ujwala T,
If feasible Can you please share the PDF file along with the OML.
Thanks,Vignesh Prakash.
Can anyone please sugges,Need to use client side javascript
var fileinputelement = window.atob($parameters.PDF);$parameters.Size = fileinputelement.length;
Returning non zero lenght for zero bytes file.
Hi @ujwala T,Kindly share your OML and the file that you are testing.
Thanks,Vignesh Prakash
@ujwala T
There's a Forge component that offers binary data size for client side:
https://www.outsystems.com/forge/component-overview/3242/binarydata-client-side-o11
Could be useful and easier to re-use and maintain compared to custom js code. :)