Method ExtractResourceSafe
ExtractResourceSafe(string, string)
Extracts a resource from the specified URL and saves it to the given destination path. Returns true if the operation succeeds, otherwise false.
public static bool ExtractResourceSafe(string url, string destPath)
Parameters
url
stringThe URL of the resource to extract.
destPath
stringThe destination file path where the resource will be saved.
Returns
- bool
True if the resource extraction and saving succeed, otherwise false.
Remarks
Uses StreamFromUrlOrDefault(string?, Func<Stream?>?) for the resource extraction.