谁能将下面的代码改写成js?
stringbase64data=this.picData.Value;stringext=this.picExt.Value;byte[]picBytes=Conver...
string base64data = this.picData.Value;
string ext = this.picExt.Value;
byte[] picBytes = Convert.FromBase64String(base64data);
string dt = DateTime.Now.ToString("yyMMddhhmmss");
System.IO.FileStream outputStream = new System.IO.FileStream(Server.MapPath("~/file/") + dt + ext, System.IO.FileMode.Create);
outputStream.Write(picBytes, 0, picBytes.Length);
outputStream.Close();
this.Imagephoto.ImageUrl = "~/file/" + dt + ext;
this.Imagephoto.Height = 100;
this.Imagephoto.Width = 100;
this.Video.Visible = false; 展开
string ext = this.picExt.Value;
byte[] picBytes = Convert.FromBase64String(base64data);
string dt = DateTime.Now.ToString("yyMMddhhmmss");
System.IO.FileStream outputStream = new System.IO.FileStream(Server.MapPath("~/file/") + dt + ext, System.IO.FileMode.Create);
outputStream.Write(picBytes, 0, picBytes.Length);
outputStream.Close();
this.Imagephoto.ImageUrl = "~/file/" + dt + ext;
this.Imagephoto.Height = 100;
this.Imagephoto.Width = 100;
this.Video.Visible = false; 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询