Add readByIdToOutputStream and readOneToOutputStream