|
发表于 2023-3-14 15:18:10
|
显示全部楼层
本帖最后由 zheng 于 2023-3-15 09:35 编辑
我需要从其它的系统来访问oa中的文件,前提我已经拿到oa中的token了,所以就得用ajax发送请求访问文件,然后我从外部系统预览这个文件,发现这个resultJson中的responseText是一个blob类型的对象,我解析这个blob成pdf却是空白的。请问如何解决
$.ajax({ type : 'GET', dataType : 'json', url : 'http://:20020/x_processplatform_assemble_surface/jaxrs/attachment/download/替换参数0/stream?fileName=替换参数0', headers : {'x-debugger' : true}, contentType : 'application/json', xhrFields : {'withCredentials' : true}, crossDomain : true}).always(function(resultJson) { alert(JSON.stringify(resultJson, null, 4))});
|
|