Reading ESRI shapefiles from the InputStream in Java
问题 I have a web application that is supposed to read a shapefile from a user's disk. I use a MultipartFile class (https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/multipart/MultipartFile.html) to upload it. As far as I understand, it is not possible to recover a file path from the MultipartFile . It causes a problem for me because I use the following code to interpret the shapefile content (I attach the constructor which is crucial): private ShapeFile(final File