Extract file

We have a web application where two “File Upload control” given in form so that user attach there document by using that .My task is that, I have to write a schedule program so that it extract all attachment and store in a folder , if any body do such type of job please help me…….

Thanks

Rupesh

Subject: Extract file

Hi Rupesh,

Find NotesEmbeddedObject.ExtractFile method in the designer help.

Joost

Subject: RE: Extract file

but i think it work only for "richtext field " but in my application no richtext field is there and document stroe in $file field and there is two $file field now how can it extract

Subject: RE: Extract file

I f you don’t have a RT field use something like this

Set the document

Check if the $file contains a File

If doc.HasEmbedded Then

fileName = doc.GetItemValue( "$File" )(0)		

Else

Exit Function

End If

Set the handle to the File

Set fileobject = doc.GetAttachment( fileName )

File = path & fileobject.Source

Extract the file

fileobject.ExtractFile(File)