temp implementation for asset input stream, just use memory input stream logic