If you want to know the size of binary data then this extension will be useful you just need to pass BinaryData as input and it will returns size in bytes.