title: download a file to particular location in client system
body: <p>Below is the code i've written i've to download a file, 
  Now I need to download the file to particular location in client system.I'll get the path through input from the  user. 
  I know it's not good to mess client system but I had to do that </p>
  
  <pre><code>        //setting the content type of response
          response.setContentType("application/"+strFileType);
  
          response.setHeader("content-disposition","attachment; filename="+strFileName+"."+strFileType);
  
          //creating a file input stream object
           InputStream input = blob.getBinaryStream();
  
           //declaring a variable
           int i;
           while((i=input.read())!=-1)
           {
               //writing output
               printWriter.write(i);
           }
  
           //closing the streams
           input.close();
           printWriter.close();
  </code></pre>