It is highly recommend to move away from the binary formatter for security reasons (enough security risk, that it is no longer in the runtime). If you can not switch the server to a secure technology, then use the nuget package.
Please suggest me Alternatives for BinaryFormatter in .net 8 since it is obsolete in it.
Aman Agrahari
20
Reputation points
I am migrating the .net 4.7.2 application to .net 8.
Earlier we used BinaryFormatter for serialization and Deserialization but it is not available in .net 8.
So I want any alternative to BinaryFormatter which I can implement in my .net 8 application.
Note after serialization in byte array form, we send it to server via tcp socket connection.
I can't make any changes in server part.
So I want an alternative solution for this which can serialize to byte array and then deserialize byte array to original data.
Kindly suggest me any solution.
.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
28 questions