我想使用 . 将多个文件上传到 SQL 数据库中AjaxFileUpload。我有一种上传单个文件的方法;在 aspx 页面中:
<asp:FileUpload ID="file_Image" runat="server"/>
在 aspx.cs 页面中:
protected void UploadFile(object sender, EventArgs e)
{
    FileUpload FileUpload1 = file_Image;
    // Read the file and convert it to Byte Array
    string filePath = file_Image.PostedFile.FileName;
    string filename = Path.GetFileName(filePath);
    if (FileUpload1.HasFile && FileUpload1.PostedFile != null)
    {
        Stream fs = file_Image.PostedFile.InputStream;
        BinaryReader br = new BinaryReader(fs);
        Byte[] bytes = br.ReadBytes((Int32)fs.Length);}}
但是,我如何使用类似的东西AjaxFileUpload,甚至可以从 Ajax 控件流式传输这样的图像数据?感谢一百万分享您的知识!