Skip to content

Commit db3654f

Browse files
authored
Update video-indexer-use-apis.md
1 parent 70791f0 commit db3654f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/media-services/video-indexer/video-indexer-use-apis.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: femila
99
ms.service: media-services
1010
ms.subservice: video-indexer
1111
ms.topic: article
12-
ms.date: 02/03/2020
12+
ms.date: 04/13/2020
1313
ms.author: juliako
1414
---
1515

@@ -138,9 +138,9 @@ var videoUrl = "VIDEO_URL"; // replace with the video URL
138138
// as an alternative to specifying video URL, you can upload a file.
139139
// remove the videoUrl parameter from the query string below and add the following lines:
140140
//FileStream video =File.OpenRead(Globals.VIDEOFILE_PATH);
141-
//byte[] buffer =newbyte[video.Length];
141+
//byte[] buffer = new byte[video.Length];
142142
//video.Read(buffer, 0, buffer.Length);
143-
//content.Add(newByteArrayContent(buffer));
143+
//content.Add(new ByteArrayContent(buffer));
144144
145145
var uploadRequestResult = client.PostAsync($"{apiUrl}/{location}/Accounts/{accountId}/Videos?accessToken={accountAccessToken}&name=some_name&description=some_description&privacy=private&partition=some_partition&videoUrl={videoUrl}", content).Result;
146146
var uploadResult = uploadRequestResult.Content.ReadAsStringAsync().Result;

0 commit comments

Comments
 (0)