The URL must be encoded correctly. You need to know what encoding / encoding your server expects. You can try it first
String uri = "http://somesimpledomain.com/some/path/" + URLEncoder.encode(filename, "ISO-8859-1");
If this does not work, replace "ISO-8859-1" with "UTF-8" and try again.
If this does not work, the file does not exist :)
Zz coder
source share