我在Oracle中将文件另存为blob,我想将它们转换为文件。该怎么做?
//created a table on db3 (SharePoint_File)
//auto increment primary key
create table Sharepoint_File (
file_id number(10) NOT NULL,
file_type varchar2(255),
actual_file blob NOT NULL,
file_name varchar2(255) not null,
File_Mimetype VARCHAR2(255 BYTE),
File_Update_Dttm DATE,
File_Charset VARCHAR2(128 BYTE)
);
Alter table Sharepoint_File
Add(
Constraint file_pk PRIMARY KEY(file_id)
);
CREATE SEQUENCE Sharepoint_sequence;
CREATE or REPLACE TRIGGER sharepoint_files_on_insert
BEFORE INSERT ON Sharepoint_File
FOR EACH ROW
BEGIN
SELECT Sharepoint_sequence.nextval
INTO :new.file_id
FROM dual;
END;
然后,我使用Oracle Apex将文件保存在Oracle DB中。现在我要将这些Blob内容转换为文件吗?