NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: kevin plummer on April 14, 2015, 05:07:06 AM
-
Hi,
Anyone serving files out of a MSSQL blob field in the _sendfile method?
I have saved a jpg to the blob field and in the _sendfile method check if it is being requested and try to serve it up using the following code from example 40...
loc:found = BF:Bin{prop:size}
sendstring &= new(string(loc:found))
sendstring = BF:Bin[1: loc:found]
self._SendMemory(sendString,loc:found)
dispose(sendString)
-
I think the one line should read;
sendstring = BF:Bin[0: loc:found-1]
cheers
Bruce
-
Hi Bruce,
Is this different than the example because it is stored in a SQL DB?
Cheers,
Kev
-
no, it's a bug in the example...
-
and the book if you are working on a revised edition...