_____________________________
class DocController{
static externalPath='/usr/share/ myproject/docs/'
def img{
def f=new File(externalPath+params?.id+' .png')
response.contentType ='image/png'
response.outputStream << f?.bytes
response.outputStream.flush()
}
}
____________________________________
if you have : /usr/share/ myproject/docs/344.png ,
it will be accessed from
Nice post
ReplyDeleteblockchain training in Marathahalli