I am trying to encrypt a image file which is of jpg format, i am successfull in encrypting the image & after decrypting if i try to open the image file it is giving
Error :Error interpreting JPEG image file (Not a JPEG file: starts with 0xef 0xbf)
any one please help me in solving the above issue my sample code is as shown below
File file;
file.Construct(filepath,"a+");
String strBuf;
file.Read(strBuf);
ByteBuffer *ebuf = dm.encrypt(strBuf,"e",iv);
ByteBuffer *dbuf = dm.decrypt(*ebuf,"e",iv);
File file1;//dest file after decryption
file1.Construct(Tizen::System::Environment::GetExternalStoragePath()+L"MyImage"+L"/"+L"h.jpg","a+");
file1.Write(*dbuf);