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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,117)