web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Storing documents in S...
Power Apps
Unanswered

Storing documents in SQL Server

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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 :

MeSan_0-1623415070160.png

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.

 

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard