我的 springboot 应用程序在 openshift 上创建了一个 pdf 文件,我如何获得该文件的 url
My springboot application creates a pdf file on openshift how do I get url for that file
我的springboot应用在openshift上生成了一个pdf文件。如何获得该文件的正确 URL?
我使用以下代码创建 pdf 文件:
Blob blob = document.getScanned();
fileName = document.getFileName() ;
InputStream in = blob.getBinaryStream();
int fileLength = in.available();
OutputStream out = new FileOutputStream(fileName);
byte[] buff = blob.getBytes(1,fileLength);
out.write(buff);
out.close()
我可以访问本地 tomcat 服务器上的 pdf 文件 http://localhost:8080/filename, but for openshift server when try to access the file with http://DonmainName/filename 我没有获取 pdf 文件。
请指教。谢谢
Openshift 不支持 url 公开使用在应用程序中创建的文件。
我正在使用 amazon s3 来处理文档。
我的springboot应用在openshift上生成了一个pdf文件。如何获得该文件的正确 URL?
我使用以下代码创建 pdf 文件:
Blob blob = document.getScanned();
fileName = document.getFileName() ;
InputStream in = blob.getBinaryStream();
int fileLength = in.available();
OutputStream out = new FileOutputStream(fileName);
byte[] buff = blob.getBytes(1,fileLength);
out.write(buff);
out.close()
我可以访问本地 tomcat 服务器上的 pdf 文件 http://localhost:8080/filename, but for openshift server when try to access the file with http://DonmainName/filename 我没有获取 pdf 文件。
请指教。谢谢
Openshift 不支持 url 公开使用在应用程序中创建的文件。
我正在使用 amazon s3 来处理文档。