This ticket is so smilar to this ticket . However , we want to know where to put this tag if we have a grails project structure:
<Context docBase="/path/to/images" path="/images" />
Otherwise , if we want to take advantages of grails features , is it enough to program action like that
def ResourceConroller{
static dir='/usr/share/lib/'
def getImg(){
def name=params?.name
render(contentType:"image/png"){
//What we should write here : might us convert image to bytes !? .. NO IDEA
}
}
}