Find Jobs
Hire Freelancers

I need a class that downloads an image this loads it into an image control fixed

$10-30 USD

Completed
Posted almost 10 years ago

$10-30 USD

Paid on delivery
Please see the attached project for the issue. try { using (WebClient Client = new WebClient()) { [login to view URL](imageName, [login to view URL](imageName)); } } catch (WebException ex) { if ([login to view URL] == "The remote server returned an error: (404) Not Found.") { // File was not found } } try { if ([login to view URL]([login to view URL](imageName))) { itemImage = [login to view URL]([login to view URL](imageName)); } } catch (Exception ex) { [login to view URL]([login to view URL]()); } The first block correctly downloads the file. The block is catching a [login to view URL] exception. I need this fixed so that it loads the image into the image control instead.
Project ID: 6292045

About the project

8 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Greetings, After running your current project, it appears that there is a problem with the URL that you are using to download the image file. While it sets the name of the image correctly, if you rename the file [login to view URL] to .txt you will see that it has actually downloaded a html file of the website's home page. You should be able to hit the url [login to view URL] in the browser and the image should load. Please let me know how I can be of assistance to you on this project. Thanks. Regards, Jinesh
$30 USD in 1 day
5.0 (21 reviews)
5.4
5.4
8 freelancers are bidding on average $26 USD for this job
User Avatar
A proposal has not yet been provided
$24 USD in 1 day
4.9 (44 reviews)
6.3
6.3
User Avatar
I have found your error, i can do that for you in 1-2h. This is a simple bug. Even though i can write a better function for you. Waiting for your response
$25 USD in 0 day
5.0 (10 reviews)
4.1
4.1
User Avatar
Good day i think i understand the problem. I tried to run the source code provided, but it doesnt work as some libraries are missing. However, i believe the problem is a different one. Could you please send me the file (the picture) that is causing the OutOfMemory exception? Looking forward hearing from you, Have a nice day
$25 USD in 1 day
5.0 (5 reviews)
3.3
3.3
User Avatar
Hello. I have a lot of experience with C#, along with big portion of it in the WebClient/GDI+ area. I'm ready to take on your project and complete it fast.
$15 USD in 1 day
4.9 (5 reviews)
3.2
3.2
User Avatar
I have worked in C++/C# and created a lot of projects and games so it`s familiar to me and i have joined before in a lot of programming and problem solving contests in my college and online
$30 USD in 1 day
5.0 (1 review)
1.4
1.4
User Avatar
A proposal has not yet been provided
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Toccoa, United States
5.0
418
Payment method verified
Member since Dec 14, 2004

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.