I have a handler (c#/asp.net) that pulls images from a database.
The current format looks like foo.com/_image.ashx?querystring1&querystring2
The querystring keys are things like id, width, zoom level etc.
I can either munge this up into a filename (i.e. foo.com/id__999_w__128__h__200.jpg), or a whole url structure (i.e. foo.com/id/999/w/128/h/200/image.jpg).
Im interested to see what other people would do given this situation, as there dont seem to be any articles or discussions of this practice on the net.
The easiest solution would be to base64 the filename, then you can pretty much guarantee the filename will be correct each time, and not tampered with or broken.