Export image from query

Discussion created by speno on Oct 25, 2011
Latest reply on Oct 26, 2011 by speno
Using rest api I need the bbox values from a query in order to export an image.  What is the easiest way from rest to query a field from a MapService and return the extent to then export that image?