Sprad has asked for the wisdom of the Perl Monks concerning the following question:
I have a function that returns the contents of an image file. I don't have the actual file, it's in a DB somewhere. I just get the binary data, as if I'd read it in as text. I'd like to wrap a CGI around this so that users can look up an image and see it on the page. If I can do it without writing that image data to a temp file, that would be really cool. Is that possible?
If not, is there some good way of handling the temp files? Seems like there's all sorts of issues there, from when to delete them to how to choose non-conflicting names.
---
A fair fight is a sign of poor planning.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: CGI: Raw image data
by friedo (Prior) on Apr 28, 2005 at 23:21 UTC | |
by Errto (Vicar) on Apr 29, 2005 at 00:36 UTC | |
by Sprad (Hermit) on Apr 28, 2005 at 23:24 UTC | |
by merlyn (Sage) on Apr 29, 2005 at 01:01 UTC | |
by eric256 (Parson) on Apr 28, 2005 at 23:28 UTC | |
by devnul (Monk) on Apr 29, 2005 at 00:05 UTC | |
by jhourcle (Prior) on Apr 29, 2005 at 01:11 UTC | |
by dorward (Curate) on Apr 29, 2005 at 09:19 UTC |