My requirement is something like this. I have a DTO class as below
public class Employee{
private Long id;
private String name;
private String designation;
private byte[] employeeImage;
}
My API is below,
@PostMapping(value="/createEmployees")
public ResponseEntity<List<EmployeeDTO>> createEmployees(@RequestParam("id") Long id,
@RequestBody List<EmployeeDTO> employeeList){
}
I am trying to send a request using postman, but the image isn't getting saved. Below is my postman request.
Everything is fine, but image isn't getting saved.
Anyhelp is greatly appreciated.
Thanks in advance!
