> Generate a new stream
> Read out from oldstream olds.read(data,1), and transfer the data I need into
> NewStream news.write(data,1), keeping the OldStream position, which is now
> at the start of graphics information.
> Generate the data into NewStream, taking care of header information and so
> on.
>
> At this point I want to take what is left over from OldStream (the graphic
> part), and drop it into the current marker position in NewStream:
>
> i:=oldS.Size-oldS.Position;
> newS.CopyFrom(oldS,(i));
> Result:=newS;
>
> Do I get the cigar, or is it wrong?
the process...
1. Load all data to Stream A
2. Copy part of A to B
3. Write Additional info to B
4. Write remainder of A to B
...is correct if there are no internal references to files locations... Does JPEG use
a directory of tags or are tags always read sequentially with a tag-length stored at
the beginning of each (along with tag-type I assume)...
--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz