FSHS

RST

public int convert2Ofd(int imagefileid, String filename,String docdcsurl) { writeLog("ConvertToPdfForDcsE9--convertUot2Ofd-------------------start"); //String docdcsurl = Util.null2String(getPropValue("yzDcsUrl", "docdcsurl")); writeLog("ConvertToPdfForDcsE9--convertUot2Ofd-------------------imagefileid=" + imagefileid + ";filename=" + filename + ";docdcsurl=" + docdcsurl); int newimagefileid = -1; try { if (imagefileid > 0 && !"".equals(filename) && !"".equals(docdcsurl)) { String fileext = ""; if (filename.indexOf(".") != -1) { fileext = filename.substring(filename.lastIndexOf(".")); } writeLog("ConvertToPdfForDcsE9--convertUot2Ofd-------------------fileext=" + fileext); String sourcefilepath = getImageFile(imagefileid + ""); writeLog("ConvertToPdfForDcsE9--convertUot2Ofd-------------------sourcefilepath=" + sourcefilepath); if (!"".equals(sourcefilepath)) { String dcsurl = convert(docdcsurl, sourcefilepath, "29"); writeLog("ConvertToPdfForDcsE9--convertUot2Ofd-------------------dcsurl=" + dcsurl); if (!"".equals(dcsurl)) { InputStream input = getInputStreamFromDcs(dcsurl); writeLog("ConvertToPdfForDcsE9--convertUot2Ofd-------------------input=" + input); String newfilename = filename.substring(0, filename.lastIndexOf(".")) + ".ofd"; if (input != null) { newimagefileid = savePdfImageFile(input, newfilename); } if (new File(sourcefilepath).exists() && new File(sourcefilepath).isFile()) { new File(sourcefilepath).delete(); } } } } } catch (Exception e) { writeLog("ConvertToPdfForDcsE9--convertUot2Ofd-------------------Exception=" + e); } writeLog("ConvertToPdfForDcsE9--convertUot2Ofd-------------------newimagefileid=" + newimagefileid); writeLog("ConvertToPdfForDcsE9--convertUot2Ofd-------------------end"); return newimagefileid; } 这段代码里2023-06-07 10:00:41,501 INFO A2 - [null] pool-20-thread-1-827[weaver.odoc.ofd.util.ConvertToPdfForDcs:395] - ConvertToPdfForDcsE9--convertUot2Ofd-------------------Exception=java.net.MalformedURLException: no protocol: {"data":{"fileHash":"f68995999879716524d33048cf89713eb6909b540af36f0c1326666747933f7f1","code":0,"destFileName":"5cf6fc7a-b466-4d2f-bd8a-90021ece7f03.ofd","srcFileName":"5cf6fc7a-b466-4d2f-bd8a-90021ece7f03.docx","srcFileSize":"1470724","destFileSize":"272921","convertType":29,"srcStoragePath":"f68995999879716524d33048cf89713eb/5cf6fc7a-b466-4d2f-bd8a-90021ece7f03.docx","destStoragePath":"2023/06/07/d897526c6b1848d38158e2d397dc1564/5cf6fc7a-b466-4d2f-bd8a-90021ece7f03.ofd","convertTime":"4224","viewUrl":"http://10.2.120.2:19090/fcscloud/view/preview/__u_3ZnLmSOahAqKi6icTcKJrPrgXJLd2m6bLJJ9Vy1AE7bOu07HXJe5EdV3ICfU4--G5-1b-C_BMkuxJ6YiThUP9cZrRTnS8WH7LNaAySY1b4J6VNRm5bUix26SO24700BVblzn6_Sgh3k8GCEv2iW5ceUlHmsE-UIfGUPobbnm9fShs4Gg-L5wSnmdcobmWgVCHNZvPMzNAj5FNM1RAAY0iGeLBNp1ezhgLFc-LsEC5fArMOLpbVonVHX-liJuUKBubUznMLCwaouob5HRqFnSwB6l-qEWFMyKeKK7yOknI8K-59iCZpKpUAzxt4hPezq1Pgh1nR1tTtwEypycLkvEnWyugeKTxu9mwyN_fFfIUyv6oV7P79BMIZt2o-B6kDJgXVaMxne2wjydgWr2nir306Hg_R0R0zS-Z4yG74g=/"},"message":"操作成功","errorcode":0}这个异常应该怎么修改
06-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值