I need to display image that is in file system not in project directory in grails..
i used
< img src="${createLinkTo(dir: '/Users/ME/ddImages/reg/', file: '${userInstance.fileName}.jpg')}" alt="User Photo"/>
but that doesn’t seem to work
so any help?
BTW, the grails tag is depricated, use resource; and that tag will keep you within the application’s base path
http://www.grails.org/Tag+-+createLinkTo
Documentation on the img tag
http://www.w3schools.com/tags/att_img_src.asp,
Possible values for “src”