Skip to content

Commit b6d5d70

Browse files
committed
fix(discovery-v2): change fileContent from ByteArrayContent to StreamContent
1 parent f82ef5a commit b6d5d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IBM.Watson.Discovery.v2/DiscoveryService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@ public DetailedResponse<AnalyzedDocument> AnalyzeDocument(string projectId, stri
16661666

16671667
if (file != null)
16681668
{
1669-
var fileContent = new ByteArrayContent(file.ToArray());
1669+
var fileContent = new StreamContent(file);
16701670
System.Net.Http.Headers.MediaTypeHeaderValue contentType;
16711671
System.Net.Http.Headers.MediaTypeHeaderValue.TryParse(fileContentType, out contentType);
16721672
fileContent.Headers.ContentType = contentType;

0 commit comments

Comments
 (0)