Download Attachments

Discussions related to custom development with Select.
Post Reply
stanleyglass
Posts: 8
Joined: Thu Feb 02, 2023 10:43 am

Download Attachments

Post 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.
BobRichards
Posts: 1377
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Download Attachments

Post 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.
Bob Richards, Senior Software Developer, SoftPro
Post Reply