CLR SQL Assembly: Get the Bytestream?

It's just a hex representation of the dll. This bit should do the trick.

It's just a hex representation of the dll. This bit should do the trick: static string GetHexString(string assemblyPath) { if (!Path. IsPathRooted(assemblyPath)) assemblyPath = Path.

Combine(Environment. CurrentDirectory, assemblyPath); StringBuilder builder = new StringBuilder(); builder. Append("0x"); using (FileStream stream = new FileStream(assemblyPath, FileMode.

Open, FileAccess. Read, FileShare. Read)) { int currentByte = stream.ReadByte(); while (currentByte > -1) { builder.

Append(currentByte. ToString("X2", CultureInfo. InvariantCulture)); currentByte = stream.ReadByte(); } } return builder.ToString(); } You should use the resulting string like so: string hexString = GetHexString(assemblyPath); string sql = "CREATE ASSEMBLY " + assemblyName + " FROM " + hexString + " WITH PERMISSION_SET = " + somePermissionSet.

Thanks - the hex info led me to this code: blog.waldenl. Com/2009/12/… – OMG Ponies May 22 '10 at 22:16 that's basically the same loop yes :) – Sander Rijken May 29 '10 at 21:21.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions