File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ namespace Example
147147 // config.AddApiKeyPrefix("X-ElasticEmail-ApiKey", "Bearer");
148148
149149 var apiInstance = new SuppressionsApi (config );
150- var file = new System .IO .MemoryStream ( System . IO . File . ReadAllBytes ( " /path/to/file.txt" ) ); // System.IO.Stream | (optional)
150+ var file = new System .IO .FileStream ( " /path/to/file.txt" , FileMode . Open , FileAccess . Read ); // System.IO.Stream | (optional)
151151
152152 try
153153 {
@@ -623,7 +623,7 @@ namespace Example
623623 // config.AddApiKeyPrefix("X-ElasticEmail-ApiKey", "Bearer");
624624
625625 var apiInstance = new SuppressionsApi (config );
626- var file = new System .IO .MemoryStream ( System . IO . File . ReadAllBytes ( " /path/to/file.txt" ) ); // System.IO.Stream | (optional)
626+ var file = new System .IO .FileStream ( " /path/to/file.txt" , FileMode . Open , FileAccess . Read ); // System.IO.Stream | (optional)
627627
628628 try
629629 {
@@ -1009,7 +1009,7 @@ namespace Example
10091009 // config.AddApiKeyPrefix("X-ElasticEmail-ApiKey", "Bearer");
10101010
10111011 var apiInstance = new SuppressionsApi (config );
1012- var file = new System .IO .MemoryStream ( System . IO . File . ReadAllBytes ( " /path/to/file.txt" ) ); // System.IO.Stream | (optional)
1012+ var file = new System .IO .FileStream ( " /path/to/file.txt" , FileMode . Open , FileAccess . Read ); // System.IO.Stream | (optional)
10131013
10141014 try
10151015 {
You can’t perform that action at this time.
0 commit comments