Click here to Skip to main content
15,888,263 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to save bytearray data to disk...?

What I have tried:

nothing don't know or forgotten the matter as i have learned this long ago
Posted
Updated 27-Feb-21 8:50am
Comments
[no name] 27-Feb-21 8:45am    
Looks like you forgot also how to google?
c - Google Search[^]
[no name] 27-Feb-21 11:41am    
Iterate the byte array and use a BinaryWriter.

https://docs.microsoft.com/en-us/dotnet/api/system.io.binarywriter?view=net-5.0

1 solution

Try:
C#
File.WriteAllBytes(pathToFile,arrayOfBytes);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900