if you see your first piece of code you will see that you are using Convert.FromBase64String in order to get the array of byte. you need to do the same on the second piece of code and write that array of byte to the memorystream
↧