putting Image from database in cgi app

Gerhard Häring gh at ghaering.de
Wed May 21 10:52:12 EDT 2003


Gerhard Häring wrote:
> Fredrik Lundh wrote:
> 
>> Gerhard Häring wrote:
>>
>>> In the end, using the temp file is probably the easiest solution, at
>>> least as long as the web technology you use is CGI.
>>
>>
>> and you never have more than one visitor at a time, or don't care
>> if people don't get the right cover...
> 
> 
> How would that be a problem? Just create a unique name for the temp 
> file, put in a directory, like, say "cache/" and have a cron job that 
> periodically deletes old temp files.
> 
> Are there possible circumstances where that approach would be problematic?

Apart from the obvious DoS vulnerability ;-)

-- Gerhard





More information about the Python-list mailing list