0
我正嘗試使用以下代碼將映像上載到ADF移動應用程序中的SQLite數據庫。我試圖用import oracle.jbo.domain.BlobDomain;
導入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
或沒有人知道一個更好的方式來存儲圖像到SQLite數據庫在ADF應用合適的包?
來源: http://tompeez.wordpress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-2/
感謝您的快速回復。我如何導入Bc4jdomorcl.jar? – user2668021
將它從/bc4j/lib複製到應用程序服務器的/ lib目錄。 –
Ragavan