Is it possible to use raw image data in a CGI script?
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.