L
L
Loligan2016-05-09 19:07:32
Java
Loligan, 2016-05-09 19:07:32

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

1 answer(s)
V
Viktor Maksimov, 2016-05-10
@ValorVl

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 question

Ask a Question

731 491 924 answers to any question