Is this possible using API?
How can I find the length of an object in bytes???

Woka