Page 1 of 1

Download Attachments

Posted: Mon May 01, 2023 3:10 pm
by stanleyglass
I am looking to download an attachment from Softpro to another system. I have code that would look for any attachments, but the Path in SoftPro order looks something like this "\\4391779\Attachments\myfile_123456.pdf". How do I get the actual path or get a stream of the document so that I can write it to another drive? This is a file that a user would upload into Softpro, but we have a business requirement to put it into another system.

Re: Download Attachments

Posted: Mon May 01, 2023 5:20 pm
by BobRichards
IAttachmentFile has a method to get the stream - IAttachmentFile.GetStream(). You must use this method to get the file contents.

Since the attachment is maintained in the Blob database, it does not make sense to provide a system file path to you.