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

Download image from url and save to sharepoint as image

Hi

I'm having issues getting an image from a URL (received in an email body as hyperlink) and saving the image to sharepoint.

The flow successfully parses the email, extracts the URL, saves it as a working hyperlink in excel online file.

I can have the URL inserted into another Send Email V2 as hyperlink. 

The When a new email arrives (v3) is set to "include attachments - yes"

 

I can get the file to create in Sharepoint with HTTP Body as content, the file can be opened using browser, but it's not an image.

 

I've tried the implementing flows as suggested in https://powerusers.microsoft.com/t5/Building-Flows/Image-attachments-not-displaying-when-uploaded-to...

and

https://powerusers.microsoft.com/t5/General-Power-Automate/HTTP-get-download-file/td-p/49568

and I tried the suggestion to use base64tobinary(body('HTTP')?['$Content']) as suggested in other posts.

I've tried to use a parse json, but I can't figure out the schema to make it work.

 

Screenshot 2020-10-22 192546.jpg

2 REPLIES 2
v-bacao-msft
Community Support
Community Support

 

Hi @persona ,

 

You seem to need to configure the body of the HTTP action directly in the File content field.

 

Best Regards,

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

Thanks @v-bacao-msft 

When the Body is input as file content I get a file saved which can’t be opened as an image.

if I save without file extension then I can open in a browser without issue. But I need the image file either as .png or .jpg

 

I get the same result with both OneDrive and SP. 

 

I’ve also tried the new (preview) convert file function but it doesn’t recognise the file which is saved to OneDrive. 

any other suggestions?

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (75,794)