RTC Forums

Subscription => Support => Topic started by: zxplzzc on November 15, 2011, 12:30:11 PM



Title: How to Output the image directly from the HTTP Server to web browsers?
Post by: zxplzzc on November 15, 2011, 12:30:11 PM
I store the web page templates and the gif images in the resource of the exe  to prevent others from change it,but how can I  output the resources  to web browsers directly  without accessing the files in the disk? In the trtcconnection there is only Write(String)?


Title: Re: How to Output the image directly from the HTTP Server to web browsers?
Post by: D.Tkalcec (RTC) on November 15, 2011, 12:50:40 PM
Obviously, you will need to extract the resource into an AnsiString before you can write it out. There is no other way.


Title: Re: How to Output the image directly from the HTTP Server to web browsers?
Post by: D.Tkalcec (RTC) on November 15, 2011, 12:52:48 PM
Btw ... in case you are also asking how to embed the image into a web page, here is a related topic (https://rtcforum.teppi.net/index.php?topic=122.0).