cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MartijnE
Level: Powered On

native camera & flow

I'm trying to use the Native Camera control announced in this blog post: https://powerapps.microsoft.com/en-us/blog/powerapps-v610/. It works very well.

 

However I would like to process the image captured with that control, using Microsoft flow. I see a lot of blogs explaining to get the data uri from the image and use that base64 encode string, but that only seems to apply to the built in camera control.

 

I've seen this thread (https://community.powerapps.com/t5/PowerApps-Forum/Retrieving-Data-URI-from-an-image-added-via-the-q...) that addresses a similair issue, however I'm not planning to built a custom WebApi. At most an azure funtion, but I'd rather use Microsoft Flow. Any ideas on how this might work? Or any ideas in general on how to use the image from the 'Add Image' control can be used for further processing?

 

Regards,

 

Martijn

1 ACCEPTED SOLUTION

Accepted Solutions
spg-john-liu
Level 8

Re: native camera & flow

Martin, 

 

Paul and I collaborated and build out a Flow-based webservice that can handle PowerApp's binary blob (from media control).

 

http://johnliu.net/blog/2017/7/building-non-json-webservices-with-flow

7 REPLIES 7
paulculmsee
Level 8

Re: native camera & flow

Hi Martijn

 

You and me are doing the exact same thing and I spent some time trying to come up with a way. Glad to see I am not alone!

 

I have added this to the suggestion box and perhaps vote for it?

 

https://powerusers.microsoft.com/t5/PowerApps-Ideas/Create-a-BlobToURI-function-to-improve-flow-inte...

 

Paul

MartijnE
Level: Powered On

Re: native camera & flow

Hi Paul,

 

I've voted for the suggestion. In the post you describe a function that does the job for you. Could I ask you to post that sample, or give some guidance. I'm not that familiair in working with binary data and Azure Functions.

 

Regards,

 

Martijn

paulculmsee
Level 8

Re: native camera & flow

Hi again

 

Actually you might want to follow these posts...

 

http://www.cleverworkarounds.com/2017/07/07/hows-the-weather-using-a-public-api-with-powerapps-part-...

 

regards

 

Paul

spg-john-liu
Level 8

Re: native camera & flow

Martin, 

 

Paul and I collaborated and build out a Flow-based webservice that can handle PowerApp's binary blob (from media control).

 

http://johnliu.net/blog/2017/7/building-non-json-webservices-with-flow

MartijnE
Level: Powered On

Re: native camera & flow

You just made my day. Thanks. This solution looks great.

Highlighted
Super User
Super User

Re: native camera & flow

Hi @spg-john-liu and @paulculmsee ,

Are these solutions still applicable? 

I get "Content-Length = 0" from Postman when performing a POST to the Flow Request URL using form-data , File, and selecting either a .png or .jpg file from my computer. 

Have tried deleting/recreating the Flows; selecting different images, etc. No go.

Any ideas on what to check? 
Thank you

Postman:

image.png
Flow:

image.png

spg-john-liu
Level 8

Re: native camera & flow

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 19 members 4,345 guests
Please welcome our newest community members: