Developer forum

Forum » Feature requests » Have GetImage.ashx to support images from Remote DAM system

Have GetImage.ashx to support images from Remote DAM system

Kevin Steffer
Reply

When we have to deal with solutions that need to load images from remote DAM systems, but we want the better performance with having images stored locally.

I think an option where it would be possible to allow GetImage.ashx to download a file from certain remote URLs for example:
In this case I need to allow www.soxfirst.com
http://demo.local/admin/public/getimage.ashx?image=http://www.soxfirst.com/wp-content/uploads/bond.jpg&crop=0&Format=png&Width=940

After that getimage.ashx will download that image, store a cached version in /Files/System/RemoteImagesCache (or something) and do the scaling and the Request Header optimization on the file from the image /Files/System/RemoteImagesCache/ folder before it's rendered to the client.

Let me hear some thoughts on this.


Replies

 
Martin Nielsen
Reply

+1

But how would you handle the image from http://www.soxfirst.com/ getting updated?
Wouldn't you always need to check the DAM before reading from cache?

 
Morten Bengtson
Reply

+1

Maybe it should have a setting in management center for cache duration. Then it would use the local file until the time expires and then it will request the remote image again, so that any updates are reflected on the site (although delayed).

Another way to solve this would be to make it possible to add configurable virtual folders in the file archive which can point to a remote address (URL, UNC, FTP). This would be useful in many other cases as well. However, it would require the use of a VirtualPathProvider or similar and it will require several changes in DW - because file handling seems to be scattered all over the place in DW ;-)