I need to extract Attachments from a document to file system (/tmp/) of Domino Server. Domino Server is on Aix 1.6. Method I use :
Set ritem = ParmDoc.GetFirstItem("AttachedFiles")
If ( ritem.Type = RICHTEXT ) Then
ForAll o In ritem.EmbeddedObjects
Call o.ExtractFile ( "/tmp/" )
Print "2222
End ForAll
End if
Thrown error :
Agent message: Lotus Notes Error Text= Notes error: Cannot write to a directory. (/tmp/) Lotus Notes Error Code= 4005
This happens even though Lotus Domino user has full permission on that folder.
Note : I can create file in the same directory using
strFname = pstrFullPath + "STAFILENAME"
expfileNum = FreeFile()
Open strFname For Output As expFileNum
Print #expFileNum , strn
Close expFileNum
Thank you.