How to push image file to spaces and access it display through URL?

Posted June 27, 2021 353 views
JavaDatabasesDigitalOcean SpacesDigitalOcean Managed MySQL Database

We are trying to upload image files through an application via our Desktop Application then read it on the Browser from the front end.
We want to save the image from our application to the DigitalOcean ‘Spaces’ only and the rest of the user details can be saved inside the Database itself.

We are looking forward to a solution for this so that we can separate the images and static files into the spaces and the rest of them can be handled in the Database.

Technologies used: Java

Thank you

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


For Java you could use this AWS SDK.

You can find an example and a discussion on how to use that here:

Hope that this helps.