Hey Lynn,
Not sure if this is what you ask for - I am passing query values as parameters in the view here
#Sample Function in controller
def showmyimage():
# Some db query you want to see data for
displayimage = db.tableName(request.args(0,cast=int)) or redirect(URL('index'))
return dict (dispimage=dispimage)
In view - showmyimage.html
<!-- you can utilize it in this way - For example it is an image that you want to serve on the page. somephoto is the field name where image is uploaded or something -->
<img src="{{=URL('download', args=displayimage.somephoto)}}" />
Rahul