Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

Storing documents in SQL Server

Hello everyone,

I'm struggling to find a way of storing documents (.pdf, .docx or similar) in an SQL Server attribute Annual_report of type "varbinary(max)" in a table that exists in a database. 

Here is my problem in details :

I connected my SQL Server table with the App and added the attribute "Annual_report" to the form. I noticed that powerapps detects its type as Blob and not "varbinary(max)".. Then when added to the "Add new form" it doesn't give me the possibility to attach any file or add it ! quite weird.

So I have inserted this control inside the powerapps application to get its file/files and put them in the default value of the "Annual_report" field of the my form as u can see :


this control I named it "annual_report_attached" and I tried to get its files using annual_report_attached.Attachments and gave it as a default value to the Annual_report attribute of my form but it shows me a data type conflict and errors I can't understand.. Is there any way I can do this please ? I just wanna the attached files of this control to be inserted into my sql field..


I highly appreciate your help !

Thanks in advance.



Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

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