Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

Power automate Desktop

(1) ShareShare
ReportReport
Posted on by 15

hello!


1. I am downloading the image from the url as WebPageText. 
2. It then converts this photo to binary data. 
3. Then I want to load binary data to SharePoint.
However, it doesn't work.

 
In case
1. I download the photo from the url as DownloadFile. 
2. Saves the file to your local disk 
2. It then converts this photo to binary data. 
3. Then I want to load binary data to SharePoint.

It all works.
How to skip saving a file to disk?




Web.DownloadFromWeb.Download Url: $'''wwww.testtest_45k5bj.jpg''' ConnectionTimeout: 30 FollowRedirection: True ClearCookies: False UserAgent: $'''Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20100312 Firefox/3.6''' Encoding: Web.Encoding.AutoDetect AcceptUntrustedCertificates: False WebPageText=> WebPageText
File.ConvertToBinary File: WebPageText BinaryData=> BinaryData

 
  • Suggested answer
    Robu1 Profile Picture
    Robu1 848 on at
    Power automate Desktop
     
    Thank you for choosing Microsoft Community.
     
    To skip saving the file to disk and directly upload the binary data to SharePoint, you can follow these steps:
     
    Download the Image as WebPageText: Use the Web.DownloadFromWeb action to download the image from the URL as WebPageText.
     
    Convert to Binary Data: Use the File.ConvertToBinary action to convert the WebPageText to binary data.
     
    Upload to SharePoint: Use the SharePoint.UploadFile action to upload the binary data directly to SharePoint.
     
    This way, you can avoid saving the file to disk and directly upload the binary data to SharePoint. 
     
    Check this documentation out: 
     
     
    If this Post helped you, please click  "Does this answer your question" and like this post to help others in the community find the answer too!
     
    Happy to help
     
    Robu 1

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #9 Get Recognized…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,867

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,174

Leaderboard