How to send multipart file using Spring RestTemplate

This is an example for sending multipart file using Spring RestTemplate: