Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 07-13-2012, 12:59 AM
Rad Koder Rad Koder is offline
Junior Member
 
Join Date: Dec 2011
Posts: 3
Default How can I read or copy a portion from TStream

I want to read a rtf file from my Application which is appended to the end of my Application EXE,
What I'm able to do is read and store the exe size in a record at the end, now I want to copy rtf file of unknown size only (because size may change for each of the new appended file) I know the exe size and the size of Record added at the end of the file (Record size is 38) any help?????
Attached Images
File Type: jpg untitled.JPG (13.4 KB, 7 views)
Reply With Quote
  #2  
Old 07-17-2012, 04:38 AM
abcd abcd is offline
Senior Member
 
Join Date: Nov 2009
Posts: 132
Default

Use marker/flag. Your exe | marker | document.

Use string search to find the marker and split the binary. Another way to store your document is store it into a resource.
Reply With Quote
Reply

Tags
streams

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 03:04 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.