[英]Oracle procedure to check if file exists on a web server
I have a site that I call an oracle procedure and within it I create html code to put in my dynamic process in "C#". 我有一个站点,我称它为oracle过程,并在其中创建html代码以将动态过程放入“ C#”中。 The html code creates a link to a pdf file. html代码创建到pdf文件的链接。
Everything is working great until I was asked to put a check that the files exist on the web server and if not do not show the link. 一切都很好,直到要求我检查Web服务器上是否存在文件,如果不检查则不显示链接。 Is this possible to do in oracle? 在oracle中可以这样做吗? If not would I have to change my entire approach now? 如果不是,我现在必须改变整个方法吗?
Use UTL_FILE.FGETATTR()
on the server side. 在服务器端使用UTL_FILE.FGETATTR()
。
https://docs.oracle.com/cd/B19306_01/appdev.102/b14258/u_file.htm#i1003493 https://docs.oracle.com/cd/B19306_01/appdev.102/b14258/u_file.htm#i1003493
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.