Are attachments handled
summne01 opened this issue · comments
I'm going to try this when my IT dept have renewed my Domino certificate. Quick question... One of our Lotus Notes R5 databases I want to migrate has PDF attachments with each record. Does your tool handle the attachments and dump them to a folder which can be references by the outputted tables? Cheers.
This does not do anything with the attachments. Our databases didn't have any attachments, but I don't think it should be hard to add.
I would also appreciate this feature! fantastic project @UziTech, do you think this will be implement?
If someone wants to create a PR for this feature I would be willing to merge it but I don't have a domino server to test this on any more.
@UziTech @summne01 this is the code that i've just tested and
works well for me
object[] items = (object[])doc.Items;
foreach (NotesItem nItem in items)
{
if (nItem.Name == "$FILE")
{
NotesItem file = doc.GetFirstItem("$File");
string fileName = ((object[])nItem.Values)[0].ToString();
NotesEmbeddedObject attachfile = (NotesEmbeddedObject)doc.GetAttachment(fileName);
if (attachfile != null)
{
attachfile.ExtractFile("C:\\test\\" + fileName);
}
}
}
Write this during documents cicle and is done
...But all the credits goes to @UziTech for this fantastic "little" and useful software! ty very much!
Awesome! 💯. Could you create a PR with that change?
Is @andreamorello93 code implement to newest version? If not could someone help me out how to add that by myself?
The code is not implemented.
@andreamorello93 can you please create that PR? thank you so much!
Of course I'll do that @UziTech @namle-dev
Thanks bro!
LMK