and remember to set the header according to the type
So pass the type too
...asp?type={type}&src={source}
dim type..
type=request.form("type") ' or something like that, I am not asp programmer
if type="gif"' then response.ContentType = "image/gif"
elseif type="png"' then response.ContentType = "image/png"
response.write Base64Decode(sourceNode.text);