stream2buffer issue solved