FileSender implements IProducer, not IBodyProducer (the latter has an additional length attribute; see the interface definition for details).
FileSender implements IProducer, not IBodyProducer (the latter has an additional length attribute; see the interface definition for details).