public interface StaticAssetStorageDao
Modifier and Type | Method and Description |
---|---|
StaticAssetStorage |
create() |
Blob |
createBlob(InputStream uploadedFileInputStream,
long fileSize)
Overloaded method for
createBlob(MultipartFile) just in case you do not have the Spring MultipartFile
and are dealing with an already-uploadd file |
Blob |
createBlob(org.springframework.web.multipart.MultipartFile uploadedFile) |
void |
delete(StaticAssetStorage assetStorage) |
StaticAssetStorage |
readStaticAssetStorageById(Long id) |
StaticAssetStorage |
readStaticAssetStorageByStaticAssetId(Long id) |
StaticAssetStorage |
save(StaticAssetStorage assetStorage) |
StaticAssetStorage create()
StaticAssetStorage readStaticAssetStorageById(Long id)
StaticAssetStorage readStaticAssetStorageByStaticAssetId(Long id)
StaticAssetStorage save(StaticAssetStorage assetStorage)
void delete(StaticAssetStorage assetStorage)
Blob createBlob(org.springframework.web.multipart.MultipartFile uploadedFile) throws IOException
IOException
Blob createBlob(InputStream uploadedFileInputStream, long fileSize) throws IOException
createBlob(MultipartFile)
just in case you do not have the Spring MultipartFile
and are dealing with an already-uploadd fileuploadedFileInputStream
- the input stream of the file the blob should be created fromfileSize
- the size of the file which is represented by uploadedFileInputStream, in bytesIOException
Copyright © 2022. All rights reserved.