Skip to main content
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:36 AM UTC

Uniface 9: xmlStream to blob

xmlStream to blob

Author: yves.de.montmollin@aonhewitt.com (yves2m)

Hello, In a programm, I've generated a xmlStream. And I want to store it in a Oracle table (with length and other infos). So it can be used by an other application (non uniface, not necessarily in the same DB, proprietary of the table, with blob field in the middle of the other fields). What is the easiest way to store it ? Is it to create the structure of the table in a Uniface model (but Uniface usually puts the blob/clob/long fields at the end of the structure and uses overflow tables which don't exist in the other application) ? Do you know if there is a way to force Uniface not to use overflow data tables ? Or is it easier to create an Oracle Stored Proc to which I give all the fields and which will do the store ? I'm not very confident with Stored Proc, and I don't know if the length of the xmlStream could be a problem (data overflow ?)   When someone have some experience and good advice, it would be great to share.   Thanks   Yves

11 replies

Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:36 AM UTC

xmlStream to blob

Author: yves.de.montmollin@aonhewitt.com (yves2m)

Hello, In a programm, I've generated a xmlStream. And I want to store it in a Oracle table (with length and other infos). So it can be used by an other application (non uniface, not necessarily in the same DB, proprietary of the table, with blob field in the middle of the other fields). What is the easiest way to store it ? Is it to create the structure of the table in a Uniface model (but Uniface usually puts the blob/clob/long fields at the end of the structure and uses overflow tables which don't exist in the other application) ? Do you know if there is a way to force Uniface not to use overflow data tables ? Or is it easier to create an Oracle Stored Proc to which I give all the fields and which will do the store ? I'm not very confident with Stored Proc, and I don't know if the length of the xmlStream could be a problem (data overflow ?)   When someone have some experience and good advice, it would be great to share.   Thanks   Yves

Hi Uli This is the table definition CREATE TABLE erp_transfer     (z_fileid                 VARCHAR2(128 BYTE) NOT NULL,   -- Name || timestamp      z_filetyp               VARCHAR2(10 BYTE) NOT NULL,     -- Cst      z_filecontent         BLOB NOT NULL,                          -- Xml or File      z_filesize              VARCHAR2(20 BYTE) NOT NULL,     -- Blob size      z_erptimestamp     VARCHAR2(20 BYTE),                    -- file create file or timestamp      z_erpuser             VARCHAR2(30 BYTE),                    -- user id      z_filearchiv           VARCHAR2(36 BYTE) NOT NULL,      -- status flag      z_msc_timestamp  VARCHAR2(20 BYTE),                    -- timestamp      z_insertuser          VARCHAR2(30 BYTE),                     --  sql user      id                       NUMBER(*,0),                               --  increment      z_envir                VARCHAR2(50 BYTE),                     -- source      z_file_typ             VARCHAR2(10 BYTE),                     -- internal use      z_filecoding          VARCHAR2(50 BYTE),                     -- internal use      z_filecontentbin     VARCHAR2(255 BYTE))                   -- internal use /   Hope this will help you understand my problem   Thanks and regards   Yves


Author: yves2m (yves.de.montmollin@aonhewitt.com)