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
Solved! Go to Solution.
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:
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://www.youtube.com/watch?v=kQVYid1p_vA
More details about the Patch function in PowerApps, please check the following article:
Best regards,
The "Add Picture" control is located in the "Insert" ribbon Under "Media"
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/
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:
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://www.youtube.com/watch?v=kQVYid1p_vA
More details about the Patch function in PowerApps, please check the following article:
Best regards,
User | Count |
---|---|
254 | |
101 | |
94 | |
47 | |
37 |