Get the binary stream of a file

Options
Kevin_102667
Kevin_102667 Posts: 56 admin

How can I convert files from file fields to a binary stream and upload the contents via REST calls like this:
https://docs.microsoft.com/en-us/graph/api/driveitem-put-content?view=graph-rest-1.0&tabs=http

PUT /me/drive/root:/FolderA/FileB.txt:/content
Content-Type: text/plain

The contents of the file goes here.

Answers

  • Grant_213559
    Grant_213559 Posts: 11 admin
    edited January 2020
    Options

    Your overall implementation will vary but the following attachment contains a rough example of taking an image and obtaining the respective binary stream.

    I'd imagine you could use a decent chunk of the JS code in a "Field: Field Formulas" action