In your 1st dll: store the second dll to it as a byte array like so: Byte[] rawDll = {0x5c, 0x4d,....}; then use: File.WriteAllBytes(path, rawDll); After that you could load it to memory.