provide size of resource

this adds a method to expose the size of the binary data of a Resource document