I am working on a Jersey API which has to take in the input of multiple files along with some details about them.
For eg. For every image there will be the name of the person who clicked it, the category to which it belongs,the location where the picture was taken, etc. This has to be done on a single request Object.
There is no definite number of files so I can not create different variables like (file1, photographer1, category1, location1), (file2, photographer2, category2, location2)...., etc.
I shall be accepting the files in a list through multipart.
Is there an efficient way to fetch the image's meta data such that we can determine to which file/image in the list does the meta-data correspond to?