Uploading Camera (Data URI) to SharePoint (Binary)

%3CLINGO-SUB%20id%3D%22lingo-sub-67923%22%20slang%3D%22en-US%22%3EUploading%20Camera%20(Data%20URI)%20to%20SharePoint%20(Binary)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-67923%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20I%20wanted%20to%20share%20two%20blog%20posts%26nbsp%3Bwhere%20I%20got%20PowerApps'%20Camera%20to%20upload%20pictures%20to%20SharePoint%20correctly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20first%20is%20with%20Azure%20Functions%20where%20I%20wrote%20a%20helper.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fjohnliu.net%2Fblog%2F2017%2F5%2Ftaking-a-picture-with-powerapps-and-sending-to-sharepoint-with-help-of-azure-functions%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fjohnliu.net%2Fblog%2F2017%2F5%2Ftaking-a-picture-with-powerapps-and-sending-to-sharepoint-with-help-of-azure-functions%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20second%20is%20a%20day%20later%2C%20when%20I%20discovered%20WDL%20has%20dataUriToBinary()%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fjohnliu.net%2Fblog%2F2017%2F5%2Ftaking-a-picture-with-powerapps-and-sending-to-sharepoint-with-just-flow%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fjohnliu.net%2Fblog%2F2017%2F5%2Ftaking-a-picture-with-powerapps-and-sending-to-sharepoint-with-just-flow%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20both%20articles%20will%20still%20be%20helpful.%20%26nbsp%3BBut%20the%20second%20one%20would%20be%20better%20for%20non-developers.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20want%20the%20solution%20here%2C%20and%20not%20read%20my%20blog%20post%20-%20the%20solution%20is%20adding%20this%20into%20a%20Compose%20action%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%22%40dataUriToBinary(triggerBody()%5B'Createfile_FileContent'%5D)%22%3C%2FPRE%3E%3CP%3EHave%20fun!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-67923%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
MVP

 

Hi, I wanted to share two blog posts where I got PowerApps' Camera to upload pictures to SharePoint correctly.

 

The first is with Azure Functions where I wrote a helper.

 

http://johnliu.net/blog/2017/5/taking-a-picture-with-powerapps-and-sending-to-sharepoint-with-help-o...

 

The second is a day later, when I discovered WDL has dataUriToBinary() 

 

http://johnliu.net/blog/2017/5/taking-a-picture-with-powerapps-and-sending-to-sharepoint-with-just-f...

 

I think both articles will still be helpful.  But the second one would be better for non-developers.

 

If you want the solution here, and not read my blog post - the solution is adding this into a Compose action:

 

"@dataUriToBinary(triggerBody()['Createfile_FileContent'])"

Have fun!

0 Replies