vendredi 17 mars 2017

How to solve system.unauthorizedaccessexception access to the path is denied

I am creating a file from base64 string and while creating file i am getting system.unauthorizedaccessexception if base64 string is image type and it was working fine in remaining file types

File.WriteAllBytes(imagepath, Convert.FromBase64String(yourBase64String));

can any one help me?

Thanks in advance




Aucun commentaire:

Enregistrer un commentaire