0 - Stream must be a resource