cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SvenV
Level 8

Save image from Camera, AddImage or PenControl to SQL Azure DB

Hi all,

 

I'm creating an app in PowerApps and in one use case I need to save images to the Azure SQL DB (which I'm using as storage). I read on the forums that this is not possible out of the box.

 

This is what I get when I try to save the image using Patch (column type in SQL Azure DB is "Image") - Tested from AddImage component and PenInput.

PnjXsUe

What does this actually mean and what are the alternatives?

3 REPLIES 3
Community Support Team
Community Support Team

Re: Save image from Camera, AddImage or PenControl to SQL Azure DB

Hi @SvenV,

 

Yes, currently this is not available.

See this thread:

Saving pen images to Azure SQL DB

Response from Staff archanan:

"

Support for uploading images to SQL is not currently supported. However, it's on our roadmap and we are working on adding this functionality.

"

Besides, please consider switch to varbinary(max) instead of the Image column type, as " ntext, text, and image data types will be removed in a future version of SQL Server." reference.

 

 

The error message means the data type don't match. Actually the AddMediaButton.Media property would only offer the local Blob information (URL) for the image uploaded, and showing it in URL format with the image path, which then is a string format.

There is no alternatives that I can offer at the moment.

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
SvenV
Level 8

Re: Save image from Camera, AddImage or PenControl to SQL Azure DB

Hi

 

Thanks for your reply, going to ask the same question? Where are we on this? Any progress?

What is the best datasource today to persist images?

 

Kr

Sven

JRaasumaa
Level 10

Re: Save image from Camera, AddImage or PenControl to SQL Azure DB

Would also like an update on this, even if it just allows us to save images as base64 it at least gets the data out of the local machines collections and into storage.

 

 

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (5,367)