File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -723,7 +723,7 @@ namespace Example
723723 var listName = " listName_example" ; // string | Name of an existing list to add these contacts to (optional)
724724 var encodingName = " encodingName_example" ; // string | In what encoding the file is uploaded (optional)
725725 var fileUrl = " fileUrl_example" ; // string | Optional url of csv to import (optional)
726- var file = new System .IO .MemoryStream ( System . IO . File . ReadAllBytes ( " /path/to/file.txt" ) ); // System.IO.Stream | (optional)
726+ var file = new System .IO .FileStream ( " /path/to/file.txt" , FileMode . Open , FileAccess . Read ); // System.IO.Stream | (optional)
727727
728728 try
729729 {
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 {
Original file line number Diff line number Diff line change @@ -709,7 +709,7 @@ namespace Example
709709 // config.AddApiKeyPrefix("X-ElasticEmail-ApiKey", "Bearer");
710710
711711 var apiInstance = new VerificationsApi (config );
712- var file = new System .IO .MemoryStream ( System . IO . File . ReadAllBytes ( " /path/to/file.txt" ) ); // System.IO.Stream | (optional)
712+ var file = new System .IO .FileStream ( " /path/to/file.txt" , FileMode . Open , FileAccess . Read ); // System.IO.Stream | (optional)
713713
714714 try
715715 {
You can’t perform that action at this time.
0 commit comments