cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dfarrar
Frequent Visitor

Downloading PDFs from SQL Server

I have PDF files stored in my SQL Server database and can display them in my app using the PDF Viewer. Is there a way I can download them from the app?

1 ACCEPTED SOLUTION

Accepted Solutions

I may be surprised but I just don't think it is possible.  SQL Server stores pdf in a blob which is binary storage.  The rendering of the url expects a mime type (.pdf).  I just don't how this can be done.  You probably need to create a web service that can take a url, figure out which pdf in SQL Server, extract pdf and place in file on webserver and trigger the appropriate response to PowerApps.

View solution in original post

4 REPLIES 4
v-yuxima-msft
Community Support
Community Support

Hi @dfarrar ,

 

Do you want download PDF from the PowerApps?

Add one button, and Button1.OnSelect:Download(Gallery2.Selected.'Link to item')

20190314downloadtoPC2.PNG

 

Hope this could be helpful.

 

Best Regards.

Yumia

@v-yuxima-msft 

Problem is that the files are on a SQL server, so no url.

I may be surprised but I just don't think it is possible.  SQL Server stores pdf in a blob which is binary storage.  The rendering of the url expects a mime type (.pdf).  I just don't how this can be done.  You probably need to create a web service that can take a url, figure out which pdf in SQL Server, extract pdf and place in file on webserver and trigger the appropriate response to PowerApps.

View solution in original post

Hi @dfarrar @mogulman ,

 

Thanks for your post and solution.

 

Best Regards.

Yumia

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,343)