FileReader :: readAsArrayBuffer,如何获取长度?

时间:2019-08-03 17:32:10

标签: javascript filereader

我尝试将文件读入数组缓冲区。该文件似乎可以正确读取,但长度为'undefined'?

...
            // do insert
            String preparedSQL = "insert into abc (NUM, ID) VALUES (?,?)";

            PreparedStatement stmt = conn.prepareStatement(preparedSQL);

            for(int i = 0; i < r.length; i++)
            {

            // SQL parameters
            stmt.setString(i, Num);
            stmt.setString(i, r[i]);
            stmt.executeUpdate();


            }
            stmt.close();
...

0 个答案:

没有答案