현재 사진을 찍어 저장하는 방법이 있습니다 .. 저장 한 후이 방법을 호출하여 문자열 경로 에서 파일을 암호화하지만 방법은 확실하지 않습니다. 저장하고 싶다 ..하고 싶었다어떻게 특정 경로에 byteArray를 작성합니까?
string path = @"C:/somePath"
File.WriteAllBytes (경로);
하지만 그게 작동하지 않습니다. 그렇다면 나는 어떻게 bytearray를 제대로 구할 수 있습니까?
string key = GetUniqueKey(32);
byte[] encKey = Encoding.UTF8.GetBytes(key);
byte[] imgBytes = File.ReadAllBytes(path);
byte[] ebytes = encrypt.AESEncrypt(imgBytes, encKey);
File.WriteAllBytes();
는 경로에 슬래시? – stuartd