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");
            }
        }
  • 相关阅读:
    排序
    wine-qq 安装
    逆元模板
    最长上升子序列
    SGU[115] Calendar
    SGU[123] The sum
    SGU[105] Div 3
    SGU[102] Coprimes
    SGU[100] A+B
    poj-1325-Machine Schedule
  • 原文地址:https://www.cnblogs.com/perock/p/2619703.html
Copyright © 2011-2022 走看看