The question is answered, right answer was accepted
How to get byte array from custom object without saving to file
I would like to store data from custom class arrays to webserver. I was hoping to do this using binary. I've been able to send bytes to my webserver fine. The issue is how to I serialize and deserialize to a byte array directly. The only thing I can find on this topic is people storing files on the users computer using the standard binaryformatter and FileStream with no intention to send to a webserver.
Answer by highpockets · Aug 26, 2020 at 11:36 PM
Use the memory stream rather than the file stream. Take a look at this:
https://stackoverflow.com/questions/1446547/how-to-convert-an-object-to-a-byte-array-in-c-sharp
Follow this Question
Related Questions
Please explain me Saving / Loading data logic (Serialization) 1 Answer
How to Serialize or Save a List of GameObjects 1 Answer
How the heck do I save this info for my characters? [Serialization Usage Question] 1 Answer
[Solved] Custom editor resets after Play? 3 Answers
Unity3D ScriptableObject with UnityEvent not saving event parameter 0 Answers