【问题标题】:Importing BlobDomain package not found未找到导入 BlobDomain 包
【发布时间】:2013-08-21 08:43:46
【问题描述】:

我正在尝试使用以下代码将图像上传到 ADF 移动应用程序中的 SQLite DB。我尝试用 import oracle.jbo.domain.BlobDomain; 导入BLOBDomain,找不到包。

private BlobDomain createBlobDomain(File file){  
        InputStream in = null;
        BlobDomain blobDomain = null;
        OutputStream out = null;
        try
        {
            in = file.getInputStream();   
            blobDomain = new BlobDomain();
            out = blobDomain.getBinaryOutputStream();
            IOUtils.copy(in, out);
        }
        catch (IOException e)
        {
            e.printStackTrace();
        }
        catch (SQLException e)
        {
            e.fillInStackTrace();
        }
        return blobDomain;
}

我应该使用什么正确的包来导入BlobDomain,或者有人知道在 ADF 应用程序中将图像存储到 SQLite 数据库的更好方法吗?

来源: http://tompeez.wordpress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-2/

【问题讨论】:

    标签: java image import package


    【解决方案1】:

    我认为您需要将 Bc4jdomorcl.jar 包含到库中。

    【讨论】:

    • 感谢您的快速回复。如何导入 Bc4jdomorcl.jar?
    • /bc4j/lib复制到应用服务器的/lib目录下。
    猜你喜欢
    • 1970-01-01
    • 2021-05-19
    • 2020-04-08
    • 2020-03-19
    • 2015-07-02
    • 2021-12-29
    • 2018-10-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多