NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: rjolda on April 14, 2010, 05:09:51 AM
-
Hi,
How does the Web server know that a Memory String has been extracted from a BLOB and how does it know to serve the String instead of an actual file?
Thanks,
Ron Jolda
-
Hi Ron,
ALAIK, you need to BlobToFIle() and serve the file.
Regards
Alberto
-
no, you certainly do not need to save the blob to a file, and then serve the file.
Ron - I presume you've examined example 40?
In it there is code in the WebHandler procedure, in the _SendFile method.
This code is before the parent call, and you'll notice ends with a RETURN if the requested "file" is found as a Blob.
You'll also notice that it makes a call to _SendMemory, sending the contents of the Blob (which was temporarily stored in sendString).
Cheers
Bruce