Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Store Camera or Pen Images for Later Retrieval?

(0) ShareShare
ReportReport
Posted on by 2,129

Content migrated from TechNet.  Post attribution to: ExCessna

 

Can a PowerApp store images from the camera or pen in an Excel file on OneDrive, a SharePoint list or some other data container for later retrieval? So far, I've been able to store pen and camera files as blob files and, of course, in a temporary collection that can be displayed in a gallery. I don't understand how to use blob files and more permanent storage is the goal. Is there another way to do this or is there an easy way to read back the blob files and convert them to images again?

Categories:
  • Community Power Platform Member Profile Picture
    on at
    Re: Store Camera or Pen Images for Later Retrieval?

    Hi,

    I am working on expense form. So I must use "add picture control" for take receipt photo. ( Not with camera) 

    I am able to save to sharepoint list. type of Sharepoint list column is "Multiple lines of text".

    Code: patch(nameofsharepointlist, {image:Addmediabutton1.media})

    this code save it that is: blob:B3BAEDDA-411A-4A10-8320-2F540DA98C15 and then it didn't seem in my powerapps in image gallery.

     

    if I save it into collections, and then if ı do same things, it work. But ı have to save mt sharepointlist.

    if ı save to sharepoint and then if I get it sharepoint, it don't work.

     

    how can I do it? 

    Thank you 

  • markkoning Profile Picture
    2 on at
    Re: Store Camera or Pen Images for Later Retrieval?

    Downloads are not working anymore. Are they still avalible somewhere?

  • Jingjing Profile Picture
    58 on at
    Re: Store Camera or Pen Images for Later Retrieval?

    Hi, how to submit image into a SharePoint list? The list only allows a url link format, not picture.

  • Jingjing Profile Picture
    58 on at
    Re: Store Camera or Pen Images for Later Retrieval?

    How to submit image into a SharePoint list? The list only allows a url link format, not picture.

  • Migrated_User Profile Picture
    2,129 on at
    Re: Store Camera or Pen Images for Later Retrieval?

    Hi

    I try to share the Apps and Excel file and images here for download.

    Images:

    https://www.dropbox.com/sh/8fis5izc80nrahm/AAA3B8293RZOS3b1N2qZaOjAa?dl=0

    Excel File:

    https://www.dropbox.com/s/5lsnjjducp2ie0u/hobby.xlsx?dl=0

    Apps:

    https://www.dropbox.com/s/xnna9kxzhik4764/Hobby.msapp?dl=0

    TQ


    PK Hong

  • Migrated_User Profile Picture
    2,129 on at
    Re: Store Camera or Pen Images for Later Retrieval?

    Hi Brian, ExCessna:

    I manage to Patch both Camera and AddPicture.

    (a) When using Camera and AddPicture, I failed. When I used Camera Only, it works. Remember: Once you have Camera and Addpicture in ONE SINGLE apps and fail, attempt to remove Addpicture will still be FAIL. START from a Brand New Apps, purely with Camera only. I had tried more than 4 apps. (Pain but gain!)

    (b) Use Add Picture:

    Please see the attached illustration.

    Wish this really helps and maybe you will get a better idea and a shortcut.

    PG..hopefully you had a better solution than this LONG LONG WAY.

    (NB: You may make the Add picture smaller, the Gallery invisible, leave only IMAGE)

     


    PK Hong

  • Migrated_User Profile Picture
    2,129 on at
    Re: Store Camera or Pen Images for Later Retrieval?

    Brian,

    I finally got the images saved in DropBox...problem was I had too many failed attempts at this objective and the connection I was using didn't connect to the correct spreadsheet, so the paths to the images were incorrect!

    But now the problem remains, how to get the images saved in a SharePoint list. It still seems that the images must be saved in the cloud (OneDrive or Google Drive) or on a website first to avoid having to "upload" them to SharePoint (also in the cloud). SharePoint doesn't allow the fields to be named with a "[image]" suffix...the brackets are not allowed. (I'm getting the idea this suffix is a special construct in PowerApps, correct?)

    To save in SharePoint, each image must have an "http://" address, as I understand it. But to save them in the cloud or on a website first essentially separates the images and the text from each other until they get into SharePoint, which doesn't seem like a real good solution. Nevertheless, I'm going to give it a try.

    I like your idea of using the mediabutton. If you make it work, please post your method.

    Thanks. Hope we can make this work somehow.

  • Migrated_User Profile Picture
    2,129 on at
    Re: Store Camera or Pen Images for Later Retrieval?

    Confirmed. I am able to save images from the camera and pen into Dropbox using:

    Patch(source,Defaults(source),{image: Camera1.Photo}) and a table that includes a column named image[image]

     

    Pen drawings can be saved too:

    Patch(source,Defaults(source),{image: PenInput1.Image}) into the same table noted above.

    One caveat is that the saved drawing does not have a .png extension for viewing outside PowerApps. You will need to rename it on your own. I forwarded this feedback to PG.

     

    I don't think you could merge the two images into one jpg. However, if you keep transparency in the ink drawing, you could use this solution. Create two image boxes. Recall the original photo in one image, and recall the drawing with transparency on top.

     

    Next I am trying to save an image using the "AddMediaButton." So far I'm not able to Patch. AddMediaButton1.Media shows up in an image box, but is not considered an "image" in Patch.

    Patch(source,Defaults(source),{image: AddMediaButton1.Media}) does not work for me. Any luck on your end?

  • Verified answer
    Migrated_User Profile Picture
    2,129 on at
    Re: Store Camera or Pen Images for Later Retrieval?

    Hi

    It definitely works. I had tried before and tried again just now.

    The excel file:

    ./data_images/WIN12_Claudia_03.png
    ./data_images/WIN12_Asami_01.png
    ./data_images/WIN12_Justin_01.png
    ./data_images/WIN12_NuriaV_02.png

    Make sure you create a folder in the dropbox, with folder name: data_images (in this case) and the title of the table header for image is: image[image] (In fact, I asked PG before any guidelines as of Project Siena, Harold, how to Store Image, Video and Audio, but until NOW, no reply and I also requested to update into PowerApps Help File}.

     


    PK Hong

    I just found that a recent update in https://powerapps.microsoft.com/en-us/tutorials/control-add-picture/.

    Excellent update from PG.  I am sure this is the ANSWER to your and MY questions, too.

    Bravo!

     


    PK Hong

  • Migrated_User Profile Picture
    2,129 on at
    Re: Store Camera or Pen Images for Later Retrieval?

    PK,

    Thank you. I will give it a try. Maybe the answer lies in the template.

    Appreciate your help,

    ExCessna

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard