Notifications
Announcements
Hi everyone,
How can we submit the form having image column from power apps to MS-SQL?
Hi
After saving your form, you will have to patch it using this method.
Picture is a field type "image"
Picture_varchar is a varchar
Patch( '[dbo].[pictures]'; { picture: UploadedImage.Image; picture_varchar: JSON( UploadedImage.Image; JSONFormat.IncludeBinaryData ) } )
Hi @Julien59,
Thanks for the sol, but whenever I tried to use this sol, the patch function show me the error of server response failed. Can you please tell me how can I solve this?
Do you have a primary key on your table ?
Yes, ID is the primary key for the table.
Can you share the table schema and also the patch function ?
SubmitForm('frm_edit info_1');Patch(User_data_1, Defaults(User_data_1), {Id:DataCardValue12_1,Picture_var:UploadedImage3_1.Image,Picture_var: JSON( UploadedImage.Image, JSONFormat.IncludeBinaryData ) } )
Your Picture column should be Image type and not varbinary(max) type
For ex :
I wonder if varchar(max) is the right field type for images. It has been told to use varchar(max) from some users, but why is the image type so much easier to use on the PowerPlattform?
You probably want to watch this. It explains what is going on between PowerApps and SQL. PowerApps: Save images from Camera, Pen and Add Picture control to SQL and display in a Gallery - YouTube
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268