Create metadatainputstream