Creates a temporary image file from a download from a URL
If you don't pass a file a temporary file is created in Temp Files folder. You're responsible for cleaning up the file after you are done with it.
You should check the filename that is returned regardless of whether you passed in a filename - if the file is of a different image type the extension may be changed.
public static Task<String> DownloadImageToFileAsync(string imageUrl, string filename, HttpRequestSettings settings)
Parameters
imageUrl
Optional output image file. Filename may change extension if the image format doesn't match the filename.
If not passed a temporary files file is created. Caller is responsible for cleaning up this file.
filename
Url of image to download
settings
Optional Http Settings for the request
See also:
Class HttpUtils© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic