title: How to download image using rest template?
body: <p>I have the following code:</p>
  
  <pre><code>restTemplate.getForObject("http://img.championat.com/news/big/l/c/ujejn-runi_1439911080563855663.jpg", File.class);
  </code></pre>
  
  <p>I especially took image which doesn't require authorization and available absolutely for all.</p>
  
  <p>when following code executes I see the following stacktrace:</p>
  
  <pre><code>org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class java.io.File] and content type [image/jpeg]
      at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:108)
      at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:559)
      at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:512)
      at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:243)
      at com.terminal.controller.CreateCompanyController.handleFileUpload(CreateCompanyController.java:615)
  </code></pre>
  
  <p>what do I wrong?</p>