我如何阅读Grails中的响应内容(它是二进制数据)?任何示例代码都是 赞赏。
答案 0 :(得分:0)
DataController类:
class DataController {
static allowedMethods = [save: "POST", update: "POST", delete: "POST"]
def doSomeThing() {
def myData = dataService.dataMethod(params)
render(view: "show", model:[myData:myData])
}
............
}
show.gsp:
...........
<!-- show response data -->
${myData}
<!-- thats it -->