Any way to convert byte array into .pcap file?

haseena

Member
Joined
Feb 3, 2016
Messages
9
Programming Experience
Beginner
I need to save a byte array into a .pcap file. Any way to do that?

I am using Visual Studio 2015 for coding
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
2,471
Location
Sydney, Australia
Programming Experience
10+
If that byte array actually represents a PCAP file then you simply call File.WriteAllBytes. If it doesn't represent a PCAP file then you will have to write code to convert it to the required format before writing it. We'd have to be psychic to know how to do that.
 
Top Bottom