Oracle Multimedia 導(dǎo)出圖像時(shí)所需執(zhí)行的步驟
Oracle Multimedia 導(dǎo)出圖像的實(shí)際操作步驟是如何進(jìn)行?在實(shí)際的操作過程中都需要哪些相關(guān)代碼?如果你對(duì)這些相關(guān)的問題有想了解的話,你就可以瀏覽以下的文章,希望你會(huì)從中有所收獲。
使用 Oracle Multimedia 的導(dǎo)出方法導(dǎo)出數(shù)據(jù)庫(kù)中的 DICOM 數(shù)據(jù)要求數(shù)據(jù)庫(kù)向數(shù)據(jù)庫(kù)服務(wù)器的文件系統(tǒng)進(jìn)行寫入操作。向文件系統(tǒng)寫入要求對(duì)您希望在其中寫入輸出 DICOM 文件的目錄對(duì)象上的用戶(PM 用戶)授予寫入權(quán)限。
執(zhí)行以下步驟:
1.創(chuàng)建一個(gè)將 DICOM 數(shù)據(jù)導(dǎo)出到IMAGEDIR目錄中的文件的過程。從 SQL*Plus 會(huì)話中,執(zhí)行以下腳本:
- @create_export_proc
create_export_proc.sql代碼如下:
Java代碼
- create or replace procedure dicom_export (source_id number, filename varchar2) as
- dcmSrc ordsys.orddicom;
- begin
- select dicom into dcmSrc from medical_image_table where id = source_id;
- dcmSrc.export('FILE', 'IMAGEDIR', filename);
- end;
- /
- show errors;
- create or replace procedure dicom_export (source_id number, filename varchar2) as
- dcmSrc ordsys.orddicom;
- begin
- select dicom into dcmSrc from medical_image_table where id = source_id;
- dcmSrc.export('FILE', 'IMAGEDIR', filename);
- end;
- /
- show errors;
2.現(xiàn)在可以執(zhí)行過程了。從 SQL*Plus 會(huì)話中,執(zhí)行以下命令:
Java代碼
- execute dicom_export(1, 'dicom_orig.dcm');
- execute dicom_export(1, 'dicom_orig.dcm');
3.要查創(chuàng)建的文件,打開另一個(gè)終端窗口,并在IMAGEDIR目錄下執(zhí)行以下命令。
Java代碼
- ls -al dicom_orig.dcm
以上就是對(duì)Oracle Multimedia 導(dǎo)出圖像實(shí)際操作步驟相關(guān)的內(nèi)容的介紹,望你會(huì)有所收獲。
【編輯推薦】