// check watermark from file
        public static string checkWatermark(HttpPostedFileBase file)
        {
            if (file != null && file.ContentLength > 0)
            {
                string path = Path.Combine(HttpContext.Current.Server.MapPath("~"),
                                           Path.GetFileName(file.FileName));
                file.SaveAs(path);

                String        signature = "";
                AudioFunction files     = new AudioFunction(new FileStream(path, FileMode.Open, FileAccess.Read));
                audoSteg      sh        = new audoSteg(files);
                signature = sh.extractMess();

                return(signature);
            }
            return("");
        }
Beispiel #2
0
 public audoSteg(AudioFunction file)
 {
     this.file = file;
 }