Beispiel #1
0
        private Image getImagePreload(string url)
        {
            var newUrl = "https://coursehunters.net/" + url;

            try
            {
                byte[] data  = _fileManager.DownloadDataStream(newUrl);
                var    image = _fileManager.ByteArrayToImage(data);
                return(image);
            }
            catch (Exception exception)
            {
                _mainMessageService.ShowError(exception.Message);
                return(null);
            }
        }