Check if output image exists

Discussion created by speno on Jan 12, 2012
Latest reply on Jan 20, 2012 by rnarayanan-esristaff
I'm using a mapservice to run a javascript site. Using the exportMapImage from the ArcGISDynamicMapServiceLayer the url will sometimes return a url that appears to be a valid url and points to a png file in the output folder but the image does not exist.  Why or how does it return what appears to be a valid url for the image but the image was never created?  I either need find a way to either return an empty url or figure out why the image is not getting created.