Thanks everyone, I was able to fix it by doing:

When uploading a picture:
WebApplication.get().getServletContext().getRealPath("") + "/" +
"profilePics" + "/";

When retrieving a picture:
WebApplication.get().getServletContext().getContextPath() + "/" +
"profilePics" + "/" + userId + "/";

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to