public async Task <string> TestFile() { var base64File = new Base64File() { Id = "123", Type = "jpg", FileName = "test.jpg", Base64 = "/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wgARCADvAc4DASIAAhEBAxEB/8QAGgABAAMBAQEAAAAAAAAAAAAAAAEEBQMCBv/EABQBAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhADEAAAAfvwAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgd3iuW3jkWFfyWlKydHEdlbqdFeTurci859A5Vy6q8TQVhZVOh3V/Z1VPRZVvBccILDhVNFXsBzHREgAAAAAADI16hYy71QuY2vXOfr3YMy515lPjpVivc9ip6sSYVybpe6VbQydikcqG7SKveJKlzx7Kd7j6OfetbMytq+DlNjqUo7+Dvp0rpQeoL0xIAAAAAAAAAiYESCRAAAI9B5SJiYETJ5mR5mREgBCRCRCREh5mQAAAAAAAAq2sA3po3RW7ZZe9UfZZ9UoIvVeR07Ylo2fNLwaFf3VNKpzqm1U4czW6ZmmAAAAAAAAAAAAAAAAARx7wcPfQeKOiKE3hn9bYzfd+DL7XxS7dxy4XBw4X4KM3RQ0IkAAAAAAAAAAAAAAAAAGQa7n0InhmmxOdyNZmdy5GLbL80PRdZnUvRS5GkpeTQZ1Y2WP0NScXXPZVLM5/UtTj2y6zvJpTl0z6BX4l5XoGuoeTRZfcuTj6R2AAAAABHzv0dY52ok4Y+/wASj17einPf2ZNm56PPG1BnWnsrebg4V78FGl9D4MqNiChqV+x2pXK5m33QqTZ8Gd60PRQrank49bXIr19mqc+GrUKlzx1OPue51AAAAAAPJ6RIRB6ePRLyPTyPTzJKBLyPTxJ6RB6eB7eZJIJR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QikTwSnHdVcoPPcCm3cQXX5mykqoq8fmAltr4qYqqjeGVmykKLvOcsMW8xBEpRxExzrhgYRMvNQqoVfWf5miaP5lQFA6SWAIw3qciQcwKIDQOB7mTO/Ep6PmNiuHpimgX83EUKx8SqGyl4qN3r1UNsqeZTsUXxhlDcGmkyVLGVs4lcA81ApaP+5S4yCaqAbPXNRHgwRSuD1WGUaIdLmAjorVV9zEx/Tj7Px9/E+P68TH/17//Z" }; var url = await GetFromBase64File(base64File); return(url); }
public async Task <string> GetFromBase64File(Base64File base64File) { //适配前端和后端转64编码的不一致 var fileData = base64File.Base64; var match = Regex.Match(base64File.Base64, string.Format("data:image/{0};base64,([\\w\\W]*)$", base64File.Type)); if (match.Success) { fileData = match.Groups[1].Value; } var fileBytes = Convert.FromBase64String(fileData); var folderPath = "upload"; return(await SavePic(fileBytes, folderPath, base64File.FileName, null)); }
public async Task <MessageResult> UploadBase64(Base64File base64File) { var url = await GetFromBase64File(base64File); return(MessageResult.CreateSuccess("成功", url)); }