The file:/// protocol is for file system access, not FTP access. I think there's a way to download a file through FTP using an ftp:// URL, but in general I'd advise to use an FTP client library like Apache Commons Net for that.
Once upon a time there were three bears. And they were visted by a golden haired tiny ad:
a bit of art, as a gift, that will fit in a stocking