use vfs inputstream
@@ -22,6 +22,7 @@ import org.apache.hop.core.logging.HopLogStore;
import org.apache.hop.core.logging.ILogChannel;
import org.apache.hop.core.spreadsheet.IKSheet;
import org.apache.hop.core.spreadsheet.IKWorkbook;
+import org.apache.hop.core.vfs.HopVfs;
import org.apache.poi.openxml4j.opc.OPCPackage;
import org.apache.poi.xssf.eventusermodel.XSSFReader;
@@ -66,7 +67,7 @@ public class StaxPoiWorkbook implements IKWorkbook {
public StaxPoiWorkbook(String filename, String encoding) throws HopException {
this();
try {
- opcpkg = OPCPackage.open(filename);
+ opcpkg = OPCPackage.open(HopVfs.getInputStream(filename));
openFile(opcpkg, encoding);
} catch (Exception e) {
throw new HopException(e);
