cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Responsive Resident
Responsive Resident

Uploading photo using Create Blob Action stores ID of photo, not the photo, itself

I am experimenting with using the Create Blob Action as an alternatives to my WebApi that successfully uploads photos to our Azure Blog storage.

 

Here's the swagger node that defines the photo parameter in my WebApi:

"parameters": [
  {
    "name": "file",
    "in": "formData",
    "required": true,
    "x-ms-media-kind": "image",
    "type": "file"
  },

I added an icon to the Photo Gallery in my PowerApp and attached the flow using Create Blob. I passed ThisItem.Name and ThisItem.Photo as the two args to the Flow. ThisItem.Photo is also the value passed to my working WebApi.

 

But when i check blob storage, i have a text value (basically a blob ID like this: blob:16D12A9E-080F-48A7-A9D7-F169BFD41051) instead of an image.

 

Can we use the Create Blob action for storing photos? Or is there another Action that does what i need?

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Uploading photo using Create Blob Action stores ID of photo, not the photo, itself

Hi @mcorning,

 

Would you please take a check about the running details of your Flow?

Generally Microsoft Flow (The Create Blob Action) would just store the data which is inputted, we could see the Blob content under the running details.

I use the Thisitem.image as the second parameter.

72.PNG

 

 

The downloaded file from my side when opening with notepad shows the following:

ms-appdata:///lxxxxxxxrces/AXXXXXages/untitled.png

 

I suspect the parameter specified here didn't pass the image value through Microsoft Flow.

Regards

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Responsive Resident
Responsive Resident

Re: Uploading photo using Create Blob Action stores ID of photo, not the photo, itself

Agreed. ThisItem.Photo (the second arg) did not pass the image. This image doesn't match yours. Note the caption.

 

 

Isn't the media-type a photo?Isn't the media-type a photo?

 

i'm not sure what to try next. maybe i'll do a simpler experiment against the camera, itself (instead of using a Photo Collection).

 

 

 

 

Highlighted
Community Support
Community Support

Re: Uploading photo using Create Blob Action stores ID of photo, not the photo, itself

Hi @mcorning,

 

Just for the Azure Blob storage-Create Blob testing, I followed the the following Flow:

https://flow.microsoft.com/en-us/blog/handle-expense-reports/

By default Office Lens would just generate .jpg files and save it into OneDrive for Business Account, here I replaced the PowerApps trigger with OneDrive for Business->When a file is created, put the File Name into the Blob content, File Content into Blob Content:

73.PNG

The .jpg file is saved successfully as image/jpeg Media type under Azure Blob storage.

See the results:

74.PNG

 

 

Regards

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Users online (8,003)