Because you are using the TStream 'abstract' class - it's not meant to be used directly, It doesn't have .seek() etc implemented.

Check out TMemoryStream which will give you what you're after.