错误分析---使用百度智能云中的度慧文档转PDF

我的报错如下:

我的代码:

我的这个错误是因为代码里面的String path = “/v1/convert” 的路径不对 应该写完整

注:参数中url需要处理一下

    String str="自己的需要转成pdf 的 路径";
    String encode = URLEncoder.encode(str, "UTF-8");

使用文档链接:

https://apis.baidu.com/store/detail/26ccebe8-1964-4cba-bd46-42a7d8ee53fc

猜你喜欢

转载自blog.csdn.net/ImisLi/article/details/129386163
今日推荐