File Size on disk is different from File size getting through BinaryDataSize action

File Size on disk is different from File size getting through BinaryDataSize action

  

Hi,

I have a file which is of file size 9.64MB. 


But then when it is uploaded to Outsystems, by using the BinaryDataSize function the file size is 10115166 bytes which is more than 10 MB. 10 MB is actually a cut off line for me to stop user uploading document more than 10 MB.

Does any one has idea on this?

Help !!!


Hi,


As you can see in your first screenshot in the brackets it's also 10.115.166 bytes.

This is roughly 9.64MB (round issues of course) because

10.115.166 / 1024 = 9878 KB

9878 /1024 = 9.64 MB



In digital world, thousands multiplication is not 1000 but 1024.

It's from permutation of binary 0 and 1 which is 2^10 = 1024.

1 KB = 1024 Byte

1 MB = 1024 MB / 1.048.576 Byte

10 MB = 10.240 MB / 10.485.760 Byte