doutu7123 2014-02-18 10:22
浏览 64

上传文件而不使用Web控件

I am writing a fingerprint web application. I will read the fingerprint from user using ActiveX controls.

After that, I will get the image in the webpage. I found that the examples I found in the web requires users to click an upload image button and choose image from it.
Like the example below:

<form action="upload_file.php" method="post" enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file"><br>
<input type="submit" name="submit" value="Submit">
</form>

Some tells me that I need to use ftp to upload the file.
Can I have another choice? The best method is that I can use Http to upload.

  • 写回答

1条回答 默认 最新

  • dtu72460 2014-02-18 10:24
    关注

    You could send a data URI to the server using AJAX

    Convert Data URI to File then append to FormData

    However if you are using ActiveX, why not have the ActiveX send the data to the server from within the ActiveX?

    评论

报告相同问题?

悬赏问题

  • ¥35 平滑拟合曲线该如何生成
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站