legacy binary doc import - accept any inputstream