hcl-bot
1
Hi ,
I am uploading a file using FileUpload in the web and the same is getting saved as $File in a doc in the database.
Now i want to copy the $File contents from this database to another doc in a different database.
Please let me know how to proceed…
Thanks in advance,
Bargavi.
hcl-bot
2
Subject: Attaching an image file to a document
please check this option :
I hope, you are going to copy attachment using some backend agent.
targetDoc : create a document where u want to store attachments on other server
search for all Items in current document. and check for $File item. and copy it to targetDoc.
check following code :
Forall item In currentDoc.Items
If Not (Ucase(item.Name) = “$FILE”) Then
currentDoc.CopyItem(targetDoc,“newField”)
End If
End Forall
targetDoc.save(true,false)
let me know if u have any problem in this…