all downloaded resources are returned as bytes.
images - with or without a name - are returned as a stream of bytes.
if you know the resource is an image, you capture it as a bitmap:
dim downloadedbitmap as bitmap = httpjob.getbitmap
once you have the bitmap, you are free to assign any name you want to it (even if it already has a name)
you can save it as a .jpg or .png:
Dim out As OutputStream
out = File.OpenOutput(location, fname, False)
downloadedbitmap.WriteToStream(out, quality, "JPEG")
out.Close
if users are able to select whatever resource they want to download, then you
may want to check if the url has a name or not. if there is no name, you simply
give the resource whatever name you want (preferably a unique name unless
you want to allow users to overwrite an image they might already have with that
name).