cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Display images in blob

Hi

 

I have a blob conteners with around 500 folders. There is picture in each folder.

I run an azure fonction which return 4 classes.

Now, i need to access to corresponding folder to display images insides.

Current workflow look horrible to me, I would like to know if there is easier way to do this

 

pseudo code:

 

Azure function return classes C1 C2 C3 C4

go inside conteners

open folders C1 C2 C3 C4 and display images on a gallery

 

 

Code for C1

 

 

Set(uploaded_img_path;"goodimages/");; path to conteners

Set(img1_path;StockageBlobAzure.GetFileMetadataByPath(Concatenate(uploaded_img_path;Text(id1))).Id);;  go inside C1 blob using Text(id) as reference for C1;

Set(img1_id;StockageBlobAzure.ListFolderV2(img1_path).value.Id);; Get ID of every picture inside C1 folder

Set(s;First(img1_id.Id).Id);;  Get ID for only first picture and save it as a string

Collect(stp;StockageBlobAzure.GetFileContent(s)) upload image on my app

 

 

i'll have to do this for the 4 variable which will make the code hard to maintain.

I'm also looking for a better way to do this because i'll have to display (later) all the content of the folder (i'll use ForAll but i'll still have to code it 4 time for the 4 variables..)

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Display images in blob

Hi @akhetos ,

Do you want to streamline your formulas since you need to act four times some action?

I'm afraid there's no better way now.

Currently, Azure Blob Storage connector only supports these actions:

21911.PNG

 

The only action for getting file content is StockageBlobAzure.GetFileContent function.

However, this action could only works based on one specific Blob path.

Using multiple variables or multiple Blob path in the functions will not work.

Maybe you could consider create a custom connector.

You could create an action that could get contents from multiple blob paths at one time.

Here's a doc about custom connector for your reference:

https://docs.microsoft.com/en-us/connectors/custom-connectors/define-blank

 

 

Best regards,

 

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

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Display images in blob

Hi @akhetos ,

Do you want to streamline your formulas since you need to act four times some action?

I'm afraid there's no better way now.

Currently, Azure Blob Storage connector only supports these actions:

21911.PNG

 

The only action for getting file content is StockageBlobAzure.GetFileContent function.

However, this action could only works based on one specific Blob path.

Using multiple variables or multiple Blob path in the functions will not work.

Maybe you could consider create a custom connector.

You could create an action that could get contents from multiple blob paths at one time.

Here's a doc about custom connector for your reference:

https://docs.microsoft.com/en-us/connectors/custom-connectors/define-blank

 

 

Best regards,

 

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

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,415)