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

Hello, 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

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.


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. Regards, Bobby