Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.net.URISyntaxException: Illegal character in scheme at index 0 [duplicate]

Tags:

java

android

uri

I'am developping an android app that receive an image url from java server, load image and then display it

after receiving the server response I get this error

   java.net.URISyntaxException: Illegal character in scheme at index 0:  http://farm1.static.flickr.com/131/371306796_7e18d505fb_b.jpg

So how to fix this problem?

like image 901
nawara Avatar asked Jun 20 '13 22:06

nawara


1 Answers

As you can see there is a space in this url:

" http://farm1.static.flickr.com/131/371306796_7e18d505fb_b.jpg"

So how to fix this problem?

Probably removing the space will fix it.

like image 181
MaciejGórski Avatar answered Nov 15 '22 13:11

MaciejGórski