View Single Post
  #6 (permalink)  
Old May 30th, 2009
GregorK GregorK is offline
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

You should do downloads using SHA1. Using of the file index is kind of deprecated and might stop working sooner or later.

To do downloads by SHA1 use:
Code:
URI uri = new URI( "http://<ip>:<port>/uri-res/N2R?urn:sha1:<SHA1>", true );
Servent.getInstance().getDownloadService().addFileToDownload( uri, true );
__________________
Reply With Quote