WeiWeiXinNet/admin/Recorder/uploadx.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.IO;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplicationXX
{
public partial class uploadx : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// Request.SaveAs(Server.MapPath("/foo/" + "1" + ".wav"), false);
string audioData = HttpContext.Current.Request.Form["data"];
if (audioData == null)
return;
string fileName = HttpUtility.UrlDecode(HttpContext.Current.Request.Form["fname"]);
audioData = audioData.Substring(audioData.IndexOf(',') + 1);
string Manme =Server.MapPath("~/" + fileName) ;// \mp3TOAMR
System.IO.FileStream stream = new FileStream(Server.MapPath("~/" + fileName), FileMode.CreateNew);
System.IO.BinaryWriter writer = new BinaryWriter(stream);
writer.Write(Convert.FromBase64String(audioData), 0, Convert.FromBase64String(audioData).Length);
writer.Close();
/*
string AAAA = System.IO.Path.Combine(Server.MapPath("~/"), "mp3TOAMR/ffmpeg.exe");
string DIRX = System.IO.Path.Combine(Server.MapPath("~/"), "MP3");
if (System.IO.Directory.Exists(DIRX) == false)
{
System.IO.Directory.CreateDirectory(DIRX);
}
string NAME = DateTime.Now.Year.ToString("D4") + DateTime.Now.Month.ToString("D2") + DateTime.Now.Day.ToString("D2") + DateTime.Now.Hour.ToString("D2") + DateTime.Now.Minute.ToString("D2") + DateTime.Now.Second.ToString("D2") + DateTime.Now.Millisecond.ToString("D4");
string AmrName = System.IO.Path.Combine(DIRX,NAME+".amr");
string Mp3Name = System.IO.Path.Combine(DIRX,NAME +".mp3");
string SpxName = System.IO.Path.Combine(DIRX, NAME + ".spx");
string WavName = System.IO.Path.Combine(DIRX, NAME + ".wav");
string WavName2 = System.IO.Path.Combine(DIRX, NAME + "2.wav");
后面还有 38 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。