File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ Assert.Equal(data, readData);
350350<!-- snippet: TempFileCreateBinaryWithExtension -->
351351<a id =' snippet-TempFileCreateBinaryWithExtension ' ></a >
352352``` cs
353- using var temp = await TempFile .CreateBinary (imageBinaryData , " .png" );
353+ using var temp = await TempFile .CreateBinary (byteArray , " .png" );
354354
355355// Process the temporary image file
356356```
Original file line number Diff line number Diff line change @@ -724,11 +724,11 @@ public async Task CreateBinary()
724724 [ Fact ]
725725 public async Task CreateBinaryWithExtension ( )
726726 {
727- var imageBinaryData = await File . ReadAllBytesAsync ( "source.png" ) ;
727+ byte [ ] byteArray = [ ] ;
728728
729729 #region TempFileCreateBinaryWithExtension
730730
731- using var temp = await TempFile . CreateBinary ( imageBinaryData , ".png" ) ;
731+ using var temp = await TempFile . CreateBinary ( byteArray , ".png" ) ;
732732
733733 // Process the temporary image file
734734
You can’t perform that action at this time.
0 commit comments