@Service public class FileStoreUtils extends Object
| Constructor and Description |
|---|
FileStoreUtils() |
| Modifier and Type | Method and Description |
|---|---|
Set<FileStoreMapper> |
addToFileStore(org.springframework.web.multipart.MultipartFile[] files,
String moduleName) |
Set<FileStoreMapper> |
addToFileStore(org.springframework.web.multipart.MultipartFile[] files,
String moduleName,
boolean compressImage) |
void |
copyFileToPath(Path newFilePath,
String fileStoreId,
String moduleName) |
void |
fetchFileAndWriteToStream(String fileStoreId,
String moduleName,
boolean toSave,
javax.servlet.http.HttpServletResponse response) |
public void fetchFileAndWriteToStream(String fileStoreId, String moduleName, boolean toSave, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionpublic Set<FileStoreMapper> addToFileStore(org.springframework.web.multipart.MultipartFile[] files, String moduleName)
public Set<FileStoreMapper> addToFileStore(org.springframework.web.multipart.MultipartFile[] files, String moduleName, boolean compressImage)
public void copyFileToPath(Path newFilePath, String fileStoreId, String moduleName) throws IOException
IOExceptionCopyright © 2015–2016 eGovernments Foundation. All rights reserved.