|
发表于 2015-9-1 17:53:02
|
显示全部楼层
blobImage存到数据库中的是二进制,不是url,可以参考
- Table t = KSQL.select("select AP_BLOBTP.* from AP_BLOBTP AP_BLOBTP where AP_BLOBTP.fName <> 'ddd'", null, "/appdemo/test/data", null);
- Iterator<Row> it = t.iterator();
- while (it.hasNext()) {
- Row r = it.next();
- try {
- String url = "/UI2/system/service/common/bizAction.j?" + "blobDataModel=/appdemo/test/data" // 数据模块目录
- + "&blobConcept=AP_BLOBTP" // 概念名
- + "&blobRelation=fBLOBTP" // 关系名
- + "&blobConceptValue=" + r.getValue("AP_BLOBTP") // 行ID
- + "&process=/appdemo/test/process/reportBlobIMage/reportBlobIMageProcess" // 流程名称
- + "&activity=mainActivity" // 环节名称
- + "&action=blobDownloadAction" // 调用的Action
- + "&$query-version=" + com.justep.system.util.CommonUtils.createGUID();
- r.setString("fCode", addBsessionid(url)); // 将url存入table对象
- } catch (Exception e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
复制代码 |
|