Answer the question
In order to leave comments, you need to log in
How do I upload an image to my project folder to get the absolute path for a direct link?
Hello. In general, I upload images to a folder in a simple folder on disk space
:
//media//user//images//1.jpg
there is no absolute path, but where should I download it so that I can view it directly? I tried uploading to src/webapp/img for example but it didn't work
Answer the question
In order to leave comments, you need to log in
There are a lot of options..
1. Get the absolute path to the directory from the System.getProperty("") environment variable, attach the relative path to the directory with images to
it
.
further .. Google and the dock are our everything.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question