Hello, I am trying to convert an assembly compiled using ICodeCompiler into byte[]. How can I do that? Also what is safest way to transfer this assembly to some remote location (client)? Note that Symmetric Key encyrption is not a possiblity.
Update: What about this?
BinaryFormatter formatter = new BinaryFormatter();
MemoryStream assemblyStream = new MemoryStream();
formatter.Serialize(assemblyStream, loAssembly);
How do I transfer the byte[] ?