directly download file from DB

Hi All,
I need to download from DB a PDF tha is stores as Base64 format
I would like to do that directly in SAIL to allow to our users to dwnload directly from the interface this document
How can I do that , is there a method ?
Thanks
Elia

  Discussion posts and replies are publicly visible

Parents
  • If the SAIL screen is a UI of User Input Task, and the user will most likely need to download the document, then using the Smart Service suggested by make the most sense. You can use the Smart Service to retrieve the document from DB into Appian document, then provide the link in SAIL UI. You should perform clean up work of deleting the Appian document, after the task or when the process is about to complete.

    If your use case is different, another approach is to create a link using another web application or custom Appian Servlet plug-in. Create the web application or Servlet in such a way that you can construct URL link from your SAIL UI to point to a specific document in the database. The document do not get retrieved or accessed in anyway until the end user actually click on the link to download. When the link is clicked, the web app or Servlet, retrieve the document for the user to download. There shouldn't be performance concerns in this approach, as the documents are not retrieved from DB until the user actually click on the link to download.
Reply
  • If the SAIL screen is a UI of User Input Task, and the user will most likely need to download the document, then using the Smart Service suggested by make the most sense. You can use the Smart Service to retrieve the document from DB into Appian document, then provide the link in SAIL UI. You should perform clean up work of deleting the Appian document, after the task or when the process is about to complete.

    If your use case is different, another approach is to create a link using another web application or custom Appian Servlet plug-in. Create the web application or Servlet in such a way that you can construct URL link from your SAIL UI to point to a specific document in the database. The document do not get retrieved or accessed in anyway until the end user actually click on the link to download. When the link is clicked, the web app or Servlet, retrieve the document for the user to download. There shouldn't be performance concerns in this approach, as the documents are not retrieved from DB until the user actually click on the link to download.
Children
No Data