protected byte[] ftpGet(final String urlString){
  InputStream inputStream=null;
  try {
    final URL url=new URL(urlString);
    inputStream=url.openStream();
    return DSSUtils.toByteArray(inputStream);
  }
 catch (  Exception e) {
    LOG.warn(e.getMessage());
  }
 finally {
    IOUtils.closeQuietly(inputStream);
  }
  return null;
}

protected byte [ ] ftpGet ( final String urlString ) { InputStream inputStream = null ; try { final URL url = new URL ( urlString ) ; inputStream = url . openStream ( ) ; return DSSUtils . toByteArray ( inputStream ) ; } catch ( Exception e ) { LOG . warn ( e . getMessage ( ) ) ; } finally { IOUtils . closeQuietly ( inputStream ) ; } return null ; }
this method retrieves data using ftp protocol .
