I am working on a Spring-MVC application in which for the user, we are saving the thumbnail on the filesystem itself. Now for chat, I want to create a URL for the thumbnail saved on the filesystem and pass it on in the frontend.
For example : Image is saved at
/home/username/datadir/personid.png
I would like to give the url something like :
domainname.com/personid.png
Please note PersonId is unique, so I can use that constraint. The part to save the image is complete, I just don't know how to create an image URL out of the file saved on File-System.
Any help would be nice. Thanks a lot.. :-)