Posted on 2010-10-20 12:44
zolly 閱讀(584)
評(píng)論(0) 編輯 收藏
從PRPC用Clipboard得到的Static Content文件的路徑類似于這種形式:
file://web:/StaticContent/global/ServiceExport/文件.xls
有時(shí)候需要取得這個(gè)文件在服務(wù)器上的絕對(duì)路徑,方法如下:
String strFileName = "file://web:/StaticContent/global/ServiceExport/文件.xls";
String myFileRealPath = com.pega.pegarules.storage.FileStorageManager.getRealPathForFile(strFileName);