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");
            }
        }
  • 相关阅读:
    ubuntu 12.04 安装 redis
    php 获取中文字符拼音首字母
    js 调整排序
    python 练习
    Configuring Locales
    missing locales
    clean code meaningful names
    ubuntu 12.04 支持中文----完胜版
    why add to http response.responseText
    不通过扩展名,去判断文件类型
  • 原文地址:https://www.cnblogs.com/perock/p/2619703.html
Copyright © 2011-2022 走看看