8000 Can't download from FTP server · Issue #110 · SDWebImage/SDWebImage · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Can't download from FTP server #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Hackmodford opened this issue Apr 29, 2012 · 6 comments
Closed

Can't download from FTP server #110

Hackmodford opened this issue Apr 29, 2012 · 6 comments

Comments

@Hackmodford
Copy link

I've just updated my code to the latest version.
However when I try loading an image this is what I get

-[NSURLResponse statusCode]: unrecognized selector sent to instance 0xead06d0
2012-04-29 11:00:35.765 MA Mobile[40457:15b03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSURLResponse statusCode]: unrecognized selector sent to instance 0xead06d0'
*** First throw call stack:

This is what I'm using to set the image in a custom cell

[self.customImageView setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"ftp://%@:%@@%@/%@.jpg", [[NSUserDefaults standardUserDefaults] stringForKey:@"ftpusername"],[[NSUserDefaults standardUserDefaults] stringForKey:@"ftppassword"],[[NSUserDefaults standardUserDefaults] stringForKey:@"imagePath"],autoID]] placeholderImage:nil];

@Hackmodford
Copy link
Author

I tried to simplify the code even further. I was able to load an image if I gave it a URL to a picture on amazon. However my code is trying to load an image from an ftp server

[self.customImageView setImageWithURL:[NSURL URLWithString:@"ftp://www.posmanage.com/mapicture/14756.jpg"] placeholderImage:nil];

So it seems to be related to an ftp issue.

@Hackmodford
Copy link
Author

I added a symbolic breakpoint "objc_exception_throw"
When I do this the breakpoint goes to line 118 of SDWebImageDownloader.m
This issue only arises when I use ftp:// instead of http://

@Hackmodford
Copy link
Author

The version I have that currently works doesn't have lines 116-136 in the sdwebimagedownloader.m

@rs rs closed this as completed in 6aee641 May 4, 2012
@Hackmodford
Copy link
Author

That fixed the issue thankyou ;)

marcusramberg pushed a commit to marcusramberg/SDWebImage that referenced this issue Jun 27, 2012
@danipralea
Copy link

can you please let us know how did you actually managed to display an image from ftp ?
Thanks

@mythodeia
Copy link
Contributor

@danipralea unless the image url is a direct url you can access without logging in then as far as i know you cannot connect to an FTP server with this library, yet!

ygweric pushed a commit to ygweric/SDWebImage that referenced this issue Mar 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
0