❔ Streams BinaryData Base64 differences
May I ask the difference between BinaryData, Base64, Stream?
Stream is an abstraction for stream like FileStream and MemoryStream but BinaryData is apparently an abstraction for strings, streams, json, and bytes... then whats the difference? I included Base64 cause it can be used to store files as well.
2 Replies
Oh okay i found out the reason after going into github and stuff. Apparently users had a bit of trouble with using all the spans, binary data, base64, and streams. As a result, they created the class named "BinaryData" in order to have a way to have a better time handling data. This has the ability to convert into the data types desired. So the most modern way is to use BinaryData as a class.
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.