title: Java web service to transfer file to Local system
body: <p>I want to create a web service in java with two methods </p>
  
  <p>1) to transfer a file from the internet to a local file server by returning local URL</p>
  
  <p>2) to retrieve the file from the same server by taking the url </p>
  
  <p>Note: It should work with all the formats </p>
  
  <p>Its mandatory to use Java Web service..</p>
  
  <p>any Type : Byte Array , Hexadecimal or MIME Type Transfer is OK </p>
  
  <p>The size of the attachment is 4mb..</p>
  
  <p>I can not connect to database directly because the application is deployed on DMZ and the only way I can connect to the file server in Intranet is by using Webservices.</p>
  
  <p>Connection to the fileserver is already done.. </p>