Hi
When dynamically writing an image to the browser using
imgOutput.save(response.outputstream, imageformat), I'm also saving a copy
of the image to the application cache using cache.insert("img", imgOutput).
When I try and output the content of the cache back to the browser (i.e.
using the cached version rather than regenerating the image, I always get an
Invalid parameter error.
Code as below:
imgOutput = CType(cache("img"), Bitmap)
imgOutput.save(response.outputstream, ImageFormat.Jpeg) ' output to the user
I've checked the content of the cache, which confirms that the "img" item is
saved to the cache as data type System.Drawing.Bitmap.
Any ideas what I'm doing wrong?
Many thanks
Paul
DotNetJunkies User - 18 Oct 2004 04:32 GMT
Wondering if u found a solution for this? Im trying to do the same w/System.Drawing.Image .. specifically to cache thumbnails (and hopefully get a performance benefit)
Let me know if u did ;p
Jason
---