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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to