cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
samsam
Advocate II
Advocate II

How many ways to take photo with camera and save to SharePoint's list?

Hi, 

 

Currently, I have defined a column with "Multiple lines of text" type, that stores "data:image/png;base64", and use the Camera object and Image object to make a "take Photo" action

However, I found that if the record becomes more. It requires more time to load the table.

 

If create by using Microsoft's "start with data store"  (with MSSQL database and datatype is Image)
it generates an "Add picture" object in PowerApps
However, I have no idea how to use "Add Picture", if start the screen from blank


May I know is there any other ways to "take photo" and store in OneDrive or SharePoint?

Thanks in advance

Sam

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @samsam ,

Could you please share a bit more about your scenario?

Do you want to upload image data from your app to the "Multiple Line of Text" column in your SP list using "Add Picture" control?

 

Based on the needs that you mentioned, I think the JSON function could achieve your needs. You could use the JSON function to convert the captured image data from the "Add Picture" control into a Base64 data, then you could patch the converted Base64 data back to the "Multiple Line of Text" column in your SP list.

 

I have made a test on my side, please consider take a try with the following workaround:

2.JPG

Set the OnSelect property of the "Patch" button to following:

Patch(
      'YourSPList', 
       Defaults('YourSPList'), 
       {
         Title: "IMAGE PATCH", 
         MultipleLineColumn: Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData),"""","")
       }
)

 

Please check and see if the following thread or videos would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/save-uploaded-pics-to-sharepoint-fr...

 

https://www.youtube.com/watch?v=kQVYid1p_vA

 

More details about the Patch function in PowerApps, please check the following article:

Patch function

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
EricLott
Super User
Super User

The "Add Picture" control is located in the "Insert" ribbon Under "Media"

addImage.png

 

As for adding images to SharePoint or OneDrive, there are many examples out there. Here's one for OneDrive.

https://www.eliostruyf.com/uploading-images-to-your-onedrive-with-powerapps/

v-xida-msft
Community Support
Community Support

Hi @samsam ,

Could you please share a bit more about your scenario?

Do you want to upload image data from your app to the "Multiple Line of Text" column in your SP list using "Add Picture" control?

 

Based on the needs that you mentioned, I think the JSON function could achieve your needs. You could use the JSON function to convert the captured image data from the "Add Picture" control into a Base64 data, then you could patch the converted Base64 data back to the "Multiple Line of Text" column in your SP list.

 

I have made a test on my side, please consider take a try with the following workaround:

2.JPG

Set the OnSelect property of the "Patch" button to following:

Patch(
      'YourSPList', 
       Defaults('YourSPList'), 
       {
         Title: "IMAGE PATCH", 
         MultipleLineColumn: Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData),"""","")
       }
)

 

Please check and see if the following thread or videos would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/save-uploaded-pics-to-sharepoint-fr...

 

https://www.youtube.com/watch?v=kQVYid1p_vA

 

More details about the Patch function in PowerApps, please check the following article:

Patch function

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (37,346)