create memory stream from other stream
first version to load tps
comment