Quote Originally Posted by phibermon View Post
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.
Thanks phibermon

I use TMemoryStream but it does't work so i try this and it works just fine...

instead load image from file with

Code:
 
  LoadImageFromFile(SnapImg,myImg);
i loaded directly to TMemoryStream

Code:
  strm1.LoadFromFile(SnapImg);
the rest i left just the same and it works...

Thank you...

[/code]