Using Camera Control In PowerApps - taking pictures, review upload to Azure SQL DB table

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025

Комментарии • 37

  • @rolando2742
    @rolando2742 5 лет назад +2

    This video is great. Thank you. I consider me a beginner in PowerApps and I'm planning to view all of your videos. I hope that you continue sharing your knowledge with all of us. Thank you again.

  • @matthieubossi9302
    @matthieubossi9302 7 лет назад +1

    Thanks a lot Paul !
    I've never made the effort on commenting on a video but the jewel you just offered to everyone learning how to grasp PowerApps is priceless.

  • @Amr-Ibrahim-AI
    @Amr-Ibrahim-AI 5 лет назад

    Thanks Paul for the great video! I am a beginner PowerApps developer and I was struggling with the Camera control. Your video has it all! Much appreciated.

  • @roya75
    @roya75 6 лет назад +1

    Awsome! thank you for saving me hours of work. Wish I could pay you. Just want to note in case others have the issue I encountered. When I created my sql table to store images I didnt create a primary key which prevented me from writing to the table. Also this prevented the table from being correctly recognized in the collect function. I was receiving and error regarding the first argument not being a collection. After I created a primary key identity column things started working for me. Once again thank you for taking the time to make this video and share your learnings.

    • @rg12141982
      @rg12141982 6 лет назад

      Roy - do you have the syntax for creating the primary key? I'm trying to create an autogenerating ID in Azure and I'm having issues with the code below. I'm following the instructions in this video ruclips.net/video/193b7T_p35M/видео.htmlm56s CREATE TABLE [dbo].[Stopwords](
      [Id] [int] IDENTITY(1,1) NOT NULL,
      [Stopword] [nvarchar](150) NULL,
      [Timestamp] [nvarchar](17) NULL,
      [Created by] [nvarchar](150) NULL,
      CONSTRAINT [PK_StopwordsId] PRIMARY KEY CLUSTERED
      (
      [Id] ASC
      )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
      ) ON [PRIMARY]
      GO

    • @roya75
      @roya75 6 лет назад

      that looks correct however I use sql server onprem. not sure if there are any additional issues with azure

  • @ianmarks4281
    @ianmarks4281 7 лет назад

    Great video Paul, really well explained simple and elegant solution.

    • @pauloflaherty6757
      @pauloflaherty6757  7 лет назад

      Thanks Ian - will try to find the time to add some more PowerApps videos soon. Thinking of covering Gallaries with sub-Galleries (by using GroupBy) and Drop Downs. These were also things it took a while for me to figure out.

    • @ianmarks4281
      @ianmarks4281 7 лет назад

      Great, I look forward to watching those and anymore you do.

  • @gerhardeckert4539
    @gerhardeckert4539 4 года назад

    Hello Paul, I appreciate your video and got the Camera control and the gallery with the MyImage collection working.
    But oposite to you I want to store the Images in an Excel-file stored on MS Onedrive The columns are: (MeldungBildNr, MeldungBild, MeldungNr
    ).
    Neither the collect function (Collect ('[T_MeldungBilder]; [MeldungNr]'; MyImages);;Back(ScreenTransition.Fade)) to store all captured images from "Myimages" to my Excel table "T_Meldung_Bilder"
    nor a similar paste funktion to store single images ( Patch(T_MeldungBilder; Defaults(T_MeldungBilder); {MeldungNr: DataCardValue18*1; MeldungBild:MyCamera_1.Photo}) )
    won't work.
    Please help.

  • @sandeepjami9119
    @sandeepjami9119 4 года назад

    Very useful mate. Thank you.

  • @jamesclegg314
    @jamesclegg314 7 лет назад

    Thanks so much for this video! I had been trying for awhile to find info on adding a camera to my app and, as you said, there was not much out there on the topic. I was able to take your video and successfully make it work with a SharePoint list as a data source. Now to do some testing in the field to see if my people can break it. :-) I'm a little concerned with using a SharePoint list versus another external database source, but we'll see. Thanks again for your valued assistance!

    • @jamesclegg314
      @jamesclegg314 7 лет назад

      Well, I guess I spoke to soon. It is functioning and saving a picture, but not associating it with a particular record. I have a working camera that will take and save photos. However, when I go to look at the photos with a view gallery it displays the same photos in every gallery for every record. I know I am probably just messed up on one step, but it will take a little more work. Still a big thanks!

    • @carlw
      @carlw 7 лет назад

      How did you get the app to submit to Share:Point? Nothing is happening on my end. I click the check and it just sits there.

  • @ravikadri
    @ravikadri 7 лет назад

    Can you please provide high level steps on how you linked the PowerApps submit button to SQL Azure DB table?

  • @malcolmgash2545
    @malcolmgash2545 5 лет назад

    Hi, This option doesnt work for flipping between front and rear cameras on Samsung S10+. Anyone mastered this? Thank you.

  • @zackarynagle6781
    @zackarynagle6781 7 лет назад

    Video is good, but I need to know to upload the video to SharePoint, because I don't know what the MessagerValueID is or how to make it. Second, when accepting the photo to be upload is there a why to input a datasheet to add info, like address or something like that?

    • @pauloflaherty6757
      @pauloflaherty6757  7 лет назад

      Sorry Zackary, I haven't worked with images in SharePoint. Suggest you check out the PowerApp forum:
      powerusers.microsoft.com/t5/forums/filteredbylabelpage/board-id/PowerAppsForum1/label-name/creating%20apps
      The people there are very helpful and I generally get answers quickly if I word my question clearly,

    • @pmd7530
      @pmd7530 7 лет назад

      I'd also like to know this, but at the moment (Nov 2017) i believe that PowerApps doesn't have the capabilities to send photos back to SP.

    • @pauloflaherty6757
      @pauloflaherty6757  7 лет назад

      Hi PMD
      My understanding is that, because there is no concept of an image data type in SharePoint you need to use a workaround which involves saving the image and then using Flow to append it to the SharePoint list. I will try to find the link and post it here.

    • @pmd7530
      @pmd7530 7 лет назад

      Thanks Paul.
      Having done a little bit of research into that idea too, i found that flow does not have the capabilities (yet) i.e. "muscle" to handle such files, or files of that size.
      I did find a workaround to that, but it required another workaround, resulting in a workaround to workaround to a workaround!.... I think that's right. :-/
      My objective here is to create an Expense Claim App.
      > User takes photo on device
      > Fills in related details on a form
      > clicks Submit button
      > data inc photo get sent to a SP list (where other calculations occur , such as taxable item = Y/N .
      > If Y = display tax amount @20%)
      Problems so far:
      PowerApps can't handle calculated columns.
      PowerApps can't send photos
      Flow can't handle file sizes of photo.
      Feels like these products are quite fully mature yet.
      This is too complicated for me.
      My brain hurts!
      Any help or paracetamol would be gratefully received.

    • @pauloflaherty6757
      @pauloflaherty6757  7 лет назад

      When I hit issues using SharePoint for the backend in my first app, I opted to use SQL Azure DB instead. I don't know if this is an option for you. It doesn't eliminate all the headaches but a lot of them do go away (for example, I am using the camera and calculated fields). The cheapest subscription is about $5 a month which will be more than sufficient for an app that would otherwise run fine on SharePoint.
      The following link is one I have seen recommended for trying to get images from a mobile camera into SharePoint - have you tried this one?
      powerusers.microsoft.com/t5/PowerApps-Forum/Truly-No-Code-Solution-for-Saving-Photos-from-PowerApps-using/td-p/63933
      Be sure to check it on an actual mobile device rather than in the studio in Windows as I believe the camera behaves a bit differently in the Windows studio.

  • @carlw
    @carlw 7 лет назад

    I'm assuming this doesn't work for SharePoint Online. I tried all this and no processing status buttons appear when clicking the check mark and no images show up in my O365 Photos library.
    Another Microsoft rabbit hole.

    • @pauloflaherty6757
      @pauloflaherty6757  7 лет назад

      Hi Carl. I've just completed a small project which takes a photo in PowerApps and saves to a SharePoint Document or Photo Library along with some metadata entered by the user. I'll be making/uploading a video in the next day or two, but the 'secret' for SharePoint is to use Flow to convert the format of the image (DataUrlToBinary) and then load that format into the Document or Picture library. There are a couple of 'gotchas' which stumped me for a while so I'll cover all that in the video.

    • @carlw
      @carlw 7 лет назад

      Oh man thanks Paul! I am so frustrated with all the Microsoft gotchas. I tried going the flow method too but had multiple errors and gotchas even after following things to a 'T'. :(=====

    • @TheEtsgp1
      @TheEtsgp1 7 лет назад

      Yeah I can't get it to load to SharePoint either?

    • @pauloflaherty6757
      @pauloflaherty6757  7 лет назад

      Hi Shaun - for SharePoint, are you trying the method above, or the method in my SharePoint specific video here: ruclips.net/video/P6xMLprDTjU/видео.html

  • @David-np7so
    @David-np7so 7 лет назад

    Thanks for that fantastic video Paul - A question: are you having performance issues with viewing images on the SQL server through galleries and image boxes? I am finding the load times extremely slow and sometimes a few pictures load but not others. Sometimes refreshing a few times fixes it but sometimes it doesn't.

    • @pauloflaherty6757
      @pauloflaherty6757  7 лет назад

      Yes, loading images back into a gallery is definitely 'flakey'.
      Having figured out how to capture images this way and added the functionality to my app... my users don't actually use the feature so I haven't looked at it again recently - but I just tested with two images displayed in a gallery. When I hit refresh I get about 5 seconds of the 'crawling ants' refresh animation after which the images... disappear, only to reappear after about another 5 seconds.
      If you need to both upload images *and* view those same images *from* the App later you may want to consider using a SharePoint library to store the images. If the rest of your data is in SQL you could use Flow to both save the image to the SharePoint library and add a reference to the image in your SQL DB (see my video on saving images to SharePoint). I say *from* because you can't display a file held in a SharePoint library directly within a PowerApp, but you can include a link that when tapped will open the image in a browser.

    • @David-np7so
      @David-np7so 7 лет назад

      Thanks Paul. I ended up using an Azure blob storage which works very well. I found the SQL and sharepoint options too unstable.

    • @pauloflaherty6757
      @pauloflaherty6757  6 лет назад

      Hi David. I was just experiment with using a varchar(max) field to store photos instead of an image field. On first tests the performance improvements are HUGE. Just uploaded a comparison here: ruclips.net/video/QnDD7jleHME/видео.html.
      Maybe you can let us know how varchar(max) compares with your Azure Blob storage approach?

    • @David-np7so
      @David-np7so 6 лет назад

      Thanks for that Paul. Definitely looks better. However my solution required Power BI to use the image and unfortunately SQL images are not supported at all with power BI.

  • @DataSpinners
    @DataSpinners 7 лет назад

    Hi Paul, have you done any work where you use photos that you've already taken. I've used it and they seem to appear as some kind of local blob storage, which is very strange :)

    • @pauloflaherty6757
      @pauloflaherty6757  7 лет назад

      Hi.
      Yes, the data from the Camera control and from the AddPicture control are in different formats.
      There is a thread on it here at the PowerApps Community forum - powerusers.microsoft.com/t5/General-Discussion/Retrieving-Data-URI-from-an-image-added-via-the-quot-Add-picture/td-p/38210
      Hope it points you in the right direction!