Re: Execute Stream?



didi wrote:
Hi, is possible to load exe File in TFileStream and execute it?

I need this for preview purpouses..

I have two file one is exe that rapresent the header
the second file is a data file that is attached before header.

I join the two files together with Stream and I want to execute
the result in manner to get preview before saving it to disk..

is possible?



You could save it to a temporary file and execute it then. I dont think that you can execute a Stream. Since it is a data file i guess you know the behavior of the *.exe file, you could simulated it.


Bye
	Mike
.



Relevant Pages

  • controlling order of data import through sql loader
    ... I have a data file that has Header and Detail information. ... loadseq SEQUENCE) ...
    (comp.databases.oracle.server)
  • Re: NetworkStreams impractical?, Buffering NetworkStreams, how?
    ... > appear as a stream. ... The header can contain whatever ... but should include the length of the packet which is to follow. ... > some memory buffer in your class. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Inserting a SOAP Header in a client request
    ... and writing to the stream. ... yes you're using the soap object model to add the header ... I assumed that a SoapHeader ... > public override object GetInitializer(LogicalMethodInfo methodInfo, ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: Object serialization and NetworkStream - extraneous characters in output
    ... when you retrieve the stream and try reading the ... you found there is an additional header "o;?" ... As for the problem you mentioned, I think it is likely due to the encoding ... ASCII stream won't have such a header). ...
    (microsoft.public.dotnet.framework)
  • Re: Segmented Data Over Sockets
    ... Keep reading bytes until you receive 0. ... only difference here is now your adding boundaries to the stream. ... prepend an int length in the header which says how many data bytes to follow ... |> each byte of the local structure on the receiving end, ...
    (microsoft.public.win32.programmer.networks)