FileName := 'C:\SomeFile.txt'; ok := UPLOADINTOSTREAM('','<TEMP>','Text Files (*.txt)|*.txt',FileName,NVInStream); IF ok THEN BEGIN BLOBRef.Blob.CREATEOUTSTREAM(NVOutStream); COPYSTREAM(NVOutStream,NVInStream); EXIT(FileName); END; ErrorMessage := GETLASTERRORTEXT; IF ErrorMessage <> '' THEN ERROR(ErrorMessage); EXIT('');
Could not find a part of the path 'C:\Users\xxx\AppData\Local\Temp\Microsoft Dynamics NAV\8636\SomeFile.txt'.
Comments
I think it's because the servicetier is executig the code and that local c:\ path isn't found on the server.
Johannes Sebastian
MB7-840,MB7-841