zoukankan      html  css  js  c++  java
  • 手动上传文件到数据表

        FilenameFilter filter = ['Image Files', '*.bmp;*.jpg;*.gif;*.jpeg'];
        BinData binData = new BinData();
        str extest, filepath, nameofFile;
        ;
        super();
        imageFilePathName = WinAPI::getOpenFileName(element.hWnd(),filter,'',"abc");
        if(imageFilePathName && WinAPI::fileExists(imageFilePathName))
        {
            [filepath, nameOfFile,extest] = fileNameSplit(imageFilePathName);
            if(extest== '.bmp' || extest== '.jpg' || extest== '.gif' || extest== '.jpeg')
            {
                bindata.loadFile(imageFilePathName);
                imageContainer = bindata.getData();
               TestTable.Image =imageContainer;
               TestTable.write();
            }
            else
            {
                throw error("Error in uploading");
            }
        }
  • 相关阅读:
    静态字体加密分析
    JS加密分析
    Golang的数组
    Django连接oracle数据库的那些问题
    Django的forms表单组件批量设置字段样式
    自动保存python一个项目的需求文件
    记录一下今天坑爹的错误
    在Scrapy中使用selenium
    Python Scrapy框架
    调用第三方打码平台破解图片验证码
  • 原文地址:https://www.cnblogs.com/perock/p/2619703.html
Copyright © 2011-2022 走看看