Skip to content

Upload, delete and download an image using Cloudinary repository. The client is a spring boot app using rest services

License

Notifications You must be signed in to change notification settings

efocampo/cloudinary-springboot-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloudinary-springboot-example

Upload, delete and download an image using Cloudinary repository. The client is a spring boot app using rest services

Classes

Direct interaction with cloudinary

  • ICloudinaryService
  • CloudinaryServiceImpl
    • public String upload(MultipartFile file)
    • public void delete(String publicId)
    • public ResponseEntity downloadImg(String publicId)

Client services. Controls exceptions produced in the Cloudinary Services and implements aditional programming logic, like setting a default imagen in case of error

  • IUploadFileService
  • UploadFileServiceImpl
    • public String upload(MultipartFile file) throws IOException
    • public void delete(String publicId)
    • public ResponseEntity download(String nameImage) throws MalformedURLException

Rest controller

  • FileRestController

Consume

  • For the example : "pets/hcyqmd9v1qfc5a63hq4l", pets is just a folder in the Cloudinary repository and hcyqmd9v1qfc5a63hq4l is the code assigned by cloudinary to the uploaded image.

Upload

Download

Image on Cloudinary

Delete

About

Upload, delete and download an image using Cloudinary repository. The client is a spring boot app using rest services

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages