Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「オブジェクトデータ」を受け入れるLoadFromStreamメソッドを持つcomオブジェクトにフィードする必要のある文字列があります。これはbyte[]だと思います。
むしろ基本的な質問:MemoryStreamがすべていっぱいになり、準備が整いました。それをbinary[]に変換する最良の方法は何ですか?手動で1つずつアレイに読み込む必要がありますか、それとも簡単な組み込みの方法がありますか?
MemoryStreamには、byte []を返すToArray()メソッドがあります。