how to convert string to multipart file in java