I need use the Saveto stream

My code is:

var
  St1:Tstream;
begin
  st1:=Tstream.create;
  Image1.Picture.graphic.savetostream(St1);
  st1.free;
end

but mark these error: 'Abstract Error'

why?

exist any major way ?

Thanks
jamiguelAsked:
Who is Participating?
 
rwilson032697Connect With a Mentor Commented:
Tstream is the abstract base class from which all the other stream classes are derived. Use TFileStream instead.

Cheers,

Raymond.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.