toSyncInputStream