Returning a BLOB via BPM.

I have a situation where using an attachment will not work - because of the sensitivity of the item being stored. It has to be made available to a subset of participants within the process instance.
I can use ScreenFlow mapped to a JSP to upload the file and store the content in a BLOB column where I can control who sees and who doesn't.
What I'm struggling with is finding a method where the user can download the file that was stored in the BLOB through BPM. I really don't want (and probably can't) setup a server to access the database directly in order to download documents.
Does anybody have any suggestions on how to map a screenflow that will return the document and force the browser to pop the save as/open dialog? And how to map the data into that screenflow?

Arian,
You should replace JSP Interactive activity in your screenflow with another Interactive activity with following configuration:
Implementation Type: Component
Use Instance Variable: Checked (Declare a ClientFile object and use it as instance variable, say clientFileVar)
Component Method: uploadTo (in fromBinary : Binary, in message : String) : String
Argument Mapping
Input Arguments
fromBinary : Map your binary
fullName : downloadLocationPath
interactive : true
message : Any message you want to display
Output Arguments
downloadedFileName : return
"downloadedFileName" is a String type variable.

Similar Messages

  • Creating return to vendor via shipping

    Hi,
    Can any body tell me the Config & Process of return to vendor via shipping.
    After good received from Vendor (Inbound Delivery), I want to return some goods to vendor via delivery.
    Kindly Tell Me the Process & Config parts.
    Thanks & Regds....
    Rashmi

    Hi ,
    Please go through the link below hope this help.
    http://help.sap.com/bp_blv1500/BL_US/HTML/Scenarios/V3I_Scen_EN_US.htm   (business process procedure)

  • Datas return from Blob data type in Sqlite

    i am using sqlitejdbc-v053.jar through get SQLITE BLOB data type data. But i cannot data return from Blob type.
    Error will be display from :
    not implemented by SQLite JDBC driver
    and point out error line
    blob = rs.getBlob("NGP_REPDATA");
    {try {
                   Class.forName("org.sqlite.JDBC");
                    conn = DriverManager.getConnection("jdbc:sqlite:test.DB");
                    stmt = conn.createStatement();
                    rs = stmt.executeQuery("SELECT * FROM sometable");
                    System.out.println("==============");
                    while(rs.next()) {
                         blob = rs.getBlob("blobDATA");//
                         is = blob.getBinaryStream();
              catch(SQLException e) {
                   e.printStackTrace();
              }}any sample or solution pls give
    sqlite with BLOB sample there pls give link                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    There explicitly tells you that the JDBC driver that you are using will not do the method that you are calling.
    Thus you cannot use that method.
    There is another way to extract blobs which involves using a stream. You can search for that.
    If your blobs are actually short and only have character data then you might be able to use getString() as well.

  • How to return new blob object?

    Hi,
    I am trying to find documentation on how to return a custom abstract data type (ADT) using the CREATE TYPE... and BLOB interface.
    How can I return a new object type defined inside a blob. Can I return a blob (without initializing the lob locator first)?
    Please advise.

    Hi,
    Please check the below link.
    http://docs.oracle.com/cd/E24693_01/appdev.11203/e17126/create_type.htm
    Regards,
    Sailaja

  • Long story but my iphone 4g has been returned to me via e bay with an apparent unrestore fault of 1015. I think it has been jailbroken etc.,Any suggestions, PLEASE. Maggie

    Hello
    Long story BUT had my iphone 4g returned to me via Ebay with an apparently unrestoreable error 1015.  I think it has been jailbroken etc., hence it's return. I tried to tell ebay and paypal about this but they were not interested. I rather think they will have to face this problem again and again as it becomes more frequent from bad buyers.
    Anyway, is there anything out there yet which will restore it's hardware?
    Many thanks
    Maggie

    I understand your frustration, but disagree. It's really not Apple's problem. If you buy a car and install a turbocharger on it that causes damage to the engine, the manufacturer won't honor any warranty or help you with your problems. A mechanic will be more than happy to take your money to try and fix it, but it's not the manufacturer's problem. The manufacturer will be happy to sell you another car.
    If you attempt to jailbreak or hack the phone yourself, you have no one but yourself to blame. If you hand your phone over to an untrusted party and they do something to it, again, the problem is yours, not Apple's.
    I assume the "resale value" you quoted is a subsidized price from BT. It does NOT reflect the cost of the phone.
    In the U.S. a subsidized iPhone through AT&T or Verizon is $199 (16GB) or $299 (32GB). An out of warranty replacement is $199 regardless of capacity. Full retail (unsubsidized) price is $649 (16GB) or $749 (32GB).  I'd say the price you were quoted to replace your phone was quite reasonable.

  • APEX_UTIL.GET_PRINT_DOCUMENT always returning empty BLOB

    Dear community,
    I have a huge problem when using the function APEX_UTIL.GET_PRINT_DOCUMENT in a job or database procedure.
    The following code runs perfectly when I integrate it in the APEX application directly e.g. using a button to execute it (of course I use an anonymous PL/SQL block in APEX itself). But when I run the same code as a procedure or job in the APEX database itself I always receive a mail with an empty PDF:
    CREATE OR REPLACE PROCEDURE APEX_DRUG_SAFETY.CALL_MAIL
    is
    l_id number;
    l_document BLOB;
    BEGIN
    wwv_flow_api.set_security_group_id;
    l_document := APEX_UTIL.GET_PRINT_DOCUMENT
    +(+
    p_application_id=>'105',
    p_report_query_name=>'TestReport',
    p_report_layout_type=>'pdf',
    p_document_format=>'pdf'
    +);+
    l_id := APEX_MAIL.SEND
    +(+
    p_to        => '[email protected]',
    p_from      => '[email protected]',
    p_subj      => 'sending PDF via print API',
    p_body      => 'Please review the attachment.',
    p_body_html => 'Please review the attachment.'
    +);+
    APEX_MAIL.ADD_ATTACHMENT
    +(+
    p_mail_id    => l_id,
    p_attachment => l_document,
    p_filename   => 'mydocument.pdf',
    p_mime_type  => 'application/pdf'
    +);+
    wwv_flow_mail.push_queue(
    P_SMTP_HOSTNAME => 'DESMTP.TEST.COM',
    P_SMTP_PORTNO => '25');
    end;
    The problem is that the function APEX_UTIL.GET_PRINT_DOCUMENT always returns an empty BLOB when executed outside of the APEX application. I found this issue in several other posts in this forum but I did not find a solution.
    The mail transmission itself works perfectly. Also with an attachment if e.g. I use another BLOB already stored in the database for testing purposes. So it is not the mail transmission that causes the problem but the empty variable l_document that is still empty.
    Thanks in advance for the help.

    user9007075 wrote:
    Dear community,
    wwv_flow_api.set_security_group_id;
    you should be using this
        l_workspace_id := apex_util.find_security_group_id (p_workspace => 'YOUR_WORKSPACE_NAME');
        apex_util.set_security_group_id (p_security_group_id => l_workspace_id);
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#AEAPI512

  • No data return from BI7 via MDX drvier in Crystal report

    I have:
    Windows 2000 SP4
    SAP BI7 patch level 16
    SAP GUI 710 patch level 7 (BW3.5 addon patch 3, BI 710 patch 5)
    Crystal report XI R2 SP4
    SAP_Integration_Kit_XI R2-SP4
    and the BW tranports already imported in BI7.
    I can create a report over a Bex query in Crystal report using BW Query driver and retirved datafrom BI7
    Then I tried to create a report over the same Bex query in Crystal report using MDX driver, I got no data return from BI7.
    So I used the RSRTRACE transaction to trace the log when refreshing data in Crystal report, and then go to debug the call 10- GET_CELL_DATA and I have data from the MDX excution in BI7.
    So I think Crystal report can pass the MDX query to BI7 and BI7 can excute it without any problem, the issue is no data return to Crystal report.
    Could anyone help please?
    Thanks.

    [HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\SAP]
    "TraceDir"="C :\\Crystal Report\\"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\SAP\BW MDX Query Driver]
    "Trace"="Yes"
    "ExcludeSummaries"="Yes"
    Above are the right code in Reg and I have tried "C:\" as well, but still no trace file created.
    I was create the CR MDX report via SAP tool bar (and I create 2 reports base on the same Bex query with MDX and BW query just to compare, that one via BW query return data from BW)
    Thanks a lot.
    Allen
    Edited by: Wen Allen on Aug 25, 2008 5:32 PM

  • User getting locked while sending message sync via BPM. Please help

    Hi Experts,
       I have a sync - sync scenario where I am sending data synchronously from webservice to a sync RFC FM. I am using BPM and in BPM I have three steps
    1. Receive step - Opens Sync-Async Bridge
    2. Sync Send step
    3. Send step - Closes SYnc-Async bridge.
    This BPM solution is same as that give in the blog https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken]
    When I test this scenario I am getting
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
    <SAP:Category>XIServer</SAP:Category>
    <SAP:Code area="INTERNAL">PL_TIMEOUT</SAP:Code>
    <SAP:P1 />
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>Timeout condition of pipeline reached</SAP:Stack>
    <SAP:Retry>N</SAP:Retry>
    </SAP:Error>
    When I check the "Status monitor for Sync/Async communication" via SXMB_MONI, I found that my message is listed there with BPE status = "Wait".
    On double clicking my message I found that there is an error " User is locked. Please notify the person responsible".
    Why is my BPE struck in "Wait" stage and user is locked?
    What am I doing wrong? Am I missing any settings in SOAP sender communication channel?
    Please help me in resolving this problem.
    Regards
    Gopal

    Hi,
    Few months ago we had also problems with "locked user" in XI, in our case XIAPPLUSER was sometimes (b)locked.
    Perhaps note:
    721548 Changing the passwords of the XI 3.0 service users
    will help you.
    We removed and entered the service users again, with the password in CAPITALS and language blank.
    After that our problem was solved, I hope yours too.
    Regards
    Jack

  • Return to vendor via delivery customer master

    Hi Gurus,
    I am doing the return delivery to vendor(122) via delivery.
    Now when I am creating the vendor and selceting Returns vendor and shipping
    condition sytem (and account group for customer) is creating a customer master in
    the background.
    Now when I am seeing the customer master XD03 it is created with general data and
    Sales Org data.no comapany code data is created.
    And I can find that this customer is created for
    Sales Org 1000
    Dist. Chn  10/12/00
    Now my question is why only this 3 combination is created and how it is determined
    or where we maintain this in customization.
    Thanking you

    Hi,
    Thanks for your valuable input.
    But I find that My POrg 1000 is assigned to  10 plants ( other than my plant 1000)) in T024w
    and at the customizing -> Assignment Sales Organization/Distribution Channel - Plant (table TVKWZ)
    and My plant 1000 is assigned to at least 50 combination of S.org and D.ch (TVKWZ)
    Just curious why out of so many combination system is creating only 3
    Thanks in advance

  • Return to vendor via delivery, customer number for each vendor?

    Hi
    We wish to use return materials to Vendor via delivery process
    addition to required configuration, we need to maintain Customer number in Vendor master
    In out plant we have more than 500 Vendor masters, do we need to create customer number for each vendor? or can we create a generic customer ????
    Business has a concern on creating customer for each vendor since number is huge, Sales guys may get confused with these numbers
    Please suggest a way out
    Thanks

    Thanks Jurgen for the reply
    We have Vendor Work flow setup in the system. Which means when ever vendor master is changed [Return indicator ticked] workflow kicks off which means it goes for approvals. This is why we dont want to go for tick as and when needed. When ever there is a return, return to vendor must be ticked, it will go for approval etc so it slows the process
    we are thinking if we can achieve through data load before SAP GO-Live so that users able to return without any delay
    NOTE 447070 says 'the automatic creation of the required customer data is not supported in the data transfer'
    this is related to automatic customer create isnt it
    i was thinking as below
    --> Create Ship-to's for all vendors
    --> Load vendors via LSMW [along with return to vendor ticked and customer number(created above)]
    Tested in SAP
    created ship-to
    Created vendor with above customer number
    Do you see any issue?
    Thanks

  • Apex_util.get_print_document returns empty blob

    Hi,
    I'm trying to convert a xsl-fo template into PDF. I have the following code:
    begin
    declare
    v_retval blob;
    v_data blob;
    v_xls clob;
    v_xml_dat clob;
    begin
    select page_template
    into v_xls
    from flows_030100.wwv_flow_report_layouts
    where flow_id =101
    and report_layout_name = 'vv';
    v_xml_dat := to_clob('<data><row><dat1>fff</dat1></row></data>');
    v_data := wwv_flow_utilities.clob_to_blob(v_xml_dat);
    v_retval := apex_util.get_print_document (v_data,v_xls,'xsl-fo','pdf')
    htp.p(dbms_lob.getlength(v_retval));
    end;
    end;
    This returns 0 instead of some PDF document. I guess there is something wrong with my input, probably the XML data. Any thoughts?

    Anyone?

  • Refcursor returning image (BLOB type) from database

    Hi,
    Process : Invoke activity takes ID as input parameter and passes it to partner link (db adapter) which executes stored proc returning a ref cursor. SQL statement in stored proc - ref cursor has a column with BLOB type.
    Problem : Unable to return an image (defiined as BLOB type in database) through refcursor in BPEL.
    Error : Unable to convert XSD element Column whose JDBC type is BLOB to a corresponding XML document element.
    ORABPEL-11087
    XSD :
    <complexType name="RowSet">
    <sequence>
    <element name="Row" minOccurs="0" maxOccurs="unbounded" nillable="true">
    <complexType>
    <sequence>
    <element name="Column" maxOccurs="unbounded" nillable="true">
    <complexType>
    <simpleContent>
    <extension base="string">
    <attribute name="name" type="string" use="required"/>
    <attribute name="sqltype" type="string" use="required"/>
    </extension>
    </simpleContent>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    Need Solution : To get an image (of BLOB type) into BPEL using ref cursor.
    Please let me know if you need any more information to get it working.
    Thanks and Regards,
    Rakesh

    Hi Rakesh,
    There are some notes you might want to refer :
    Note.423909.1      'java.lang.NumberFormatException' Signaled When Using Oracle LOB Family Column Types In ODI Datastores And Integration Interfaces:
         Note.423982.1      An "ORA-17410 No More Data to Read From Socket" Error Has Been Signaled From An ODI (Sunopsis) Integration Interface:
         Note.423768.1      Using Oracle Large Object (LOB) Datatype Columns In ODI Integration Interfaces:
         Note.744101.1      ORA-22835 Message Signaled When Using The OdiSqlUnload Tool In ODI:
         Note.424658.1      "ORA-00942" Message With Oracle Large Object (LOB) Datatype Fields In ODI Integration Interfaces:
         Note.423992.1      Using Oracle LONG Datatype Columns In ODI(Sunopsis):
         Note.424107.1      ODI Integration Interfaces And The Use Of Oracle Spatial Datatypes In Source And Target Datastores:
    Hope this helps!
    Cheers
    Anirudh Pucha

  • Retrieving BLOBs via stored procedure

    Hi all,
    I'm trying to retrieve bigger blobs (>1 MB) from a database using a stored procedure, but it didn't work. I can't figure out were the problem is.
    My stored prcedure looks like:
    CREATE OR REPLACE PROCEDURE get_blobs (blob_id IN NUMBER, v_enterid out NUMBER, v_enterdate_s out VARCHAR2, v_name out VARCHAR2, BUFFER_CHARS out LONG, v_blob_size out NUMBER) IS
    v_enterdate DATE;
    v_content BLOB;
    BUFFER LONG RAW;
    AMOUNT BINARY_INTEGER := 100;
    POS INTEGER := 1;
    COUNTER INTEGER :=0;
    BEGIN
    SELECT EntryID,EnterDate,Name,Content
    INTO v_enterid,v_enterdate,v_name,v_content
    FROM test_blob WHERE EntryID=blob_id;
    v_enterdate_s := to_char(v_enterdate,'dd.mm.yyyy');
    v_blob_size := DBMS_LOB.GETLENGTH(v_content);
    AMOUNT := cast(v_blob_size as BINARY_INTEGER);
    DBMS_LOB.READ (v_content, AMOUNT, POS, BUFFER);
    BUFFER_CHARS := 'aaaaa';
    CAST_TO_VARCHAR2(BUFFER);
    BUFFER2 := BUFFER2 || BUFFER_CHARS;
    RETURN;
    END;
    I think there are several mistakes in this code, as I tried and tried many days.
    When I execute the code using a sql script, it works (the output is just removed for testing), but if I try it with an PHP script I get the following error:
    Warning: Ora_Exec failed (ORA-21560: argument 2 is null, invalid, or out of range ORA-06512: at "SYS.DBMS_LOB", line 640 ORA-06512: at "JAN.GET_BLOBS", line 21 ORA-06512: at line 1 -- while processing OCI function OEXEC/OEXN) in d:\eclipse\crf tracker\modules\manage\new.inc.php on line 60
    The PHP routine looks like:
    $v_index_in = 1;
    $cursor = ora_open($conn);
    $query = "BEGIN GET_BLOBS(:v_index_in,:v_index,:v_enterdate,:v_name,:v_content,:v_size); END;";
    $stmt = ora_parse($cursor,$query);
    ora_bind ($cursor, "v_index_in", ":v_index_in", 10,1);
    ora_bind ($cursor, "v_index", ":v_index", 10,2);
    ora_bind ($cursor, "v_enterdate", ":v_enterdate", 20,2);
    ora_bind ($cursor, "v_name", ":v_name", 100,2);
    ora_bind ($cursor, "v_size", ":v_size", 10000, 2);
    ora_bind ($cursor, "v_content", ":v_content",$v_size,2);
    $v_index = '';
    $v_enterdate = '';
    $v_name = '';
    $v_content = '';
    $v_size = '';
    ora_exec($cursor,$stmt);
    Could please anybody helps me with that problem. I really see no chance to solve it on my own, because I'm just starting to work with Oracle, but I have to finish this in two weeks.
    It doesn't matter, if the output of the content will be a blob or whatever else, because the processing in PHP will not be a big problem.
    Thanks a lot in advance,
    best regards,
    Jan.

    Hi
    You can use ref cursor to return the results from your stored procedure. Here is how you define .
    CREATE OR REPLACE PACKAGE trial AS
    TYPE m_refcur IS REF CURSOR;
    END trial;
    Create or replace procedure example ( var1 out trial.m_refCur, var2 out trial.m_refCur)
    as
    open var1 for select * from emp;
    open var2 for select * from dept;
    end;
    You can call this stored procedure in Java using Callable Statement. I you are using C++ or VB you can use OLEDB or
    ADO API's to call same stored procedure.
    Hope this helps
    Chandar

  • Return delivery with via delivery indicator

    I am trying to post return delivery through MIGO transaction, with selecting ' via delivery' indicator. I am getting an error - data for creating a delivery is incomplete (Customer).
    I am selecting this indicator first time so that I can get delivery number which I can print later.
    How can I resolve this error ?

    Before creating return delivery via MIGO..Please check the following master data..
    1) Check the material is having Sales view
    2) Check you linked vendor master to the customer...
    3) Also check whether you flagged Returns vendor in the purchasing view of the vendor master record..
    Please check these master data settings if any one of above things are missing system would not allow you to process the return delivery..
    I hope it will resolve your issues. If it helps award me the points..
    Cheers
    Umakanth

  • ORA-24810 on writing blob via Pro*C

    I'm using Oracle Pro*C with an Oracle 9.2 RDBMS.
    I am trying to store a blob from a file using Pro*C. If the file is small enough that I can read/write the entire file in a single operation, it blow write works okay. However, I would like to be able to handle a blob of any size, up to 4MB. Unless, I use a 4MB io buffer, this requires partial file read / blob writes. In the program before, the initial write (first) works, but subsequent writes (next) fail with the 24810 attempting to write more data than indicated error. I cannot find a worthwhile explanation for this error - what does it mean?
    Here is my sample program.
    #include <oci.h>
    #include <stdio.h>
    #define CMN_IO_BUFF_SIZE 4096
    EXEC SQL INCLUDE sqlca.h;
    EXEC SQL INCLUDE oraca.h;
    EXEC SQL BEGIN DECLARE SECTION;
    VARCHAR f_Conn[100];
    EXEC SQL END DECLARE SECTION;
    int main () {
    OCIBlobLocator *DbBlob;
    FILE          *Fp;
    int          FirstRead;
    unsigned int     BytesRead;
    unsigned int     Offset;
    unsigned char     IoBuff[CMN_IO_BUFF_SIZE];
    strcpy ( f_Conn.arr, "isis_app/isis_app@isisdev1" );
    f_Conn.len = strlen ( f_Conn.arr );
    EXEC SQL VAR IoBuff IS RAW ( CMN_IO_BUFF_SIZE );
    printf ( "VAR returned error %d\n", sqlca.sqlcode );
    printf ( " %s\n", sqlca.sqlerrm.sqlerrmc );
    EXEC SQL CONNECT :f_Conn;
    printf ( "CONNECT returned error %d\n", sqlca.sqlcode );
    printf ( " %s\n", sqlca.sqlerrm.sqlerrmc );
    EXEC SQL ALLOCATE :DbBlob;
    printf ( "ALLOC returned error %d\n", sqlca.sqlcode );
    printf ( " %s\n", sqlca.sqlerrm.sqlerrmc );
    EXEC SQL INSERT INTO lob_table (a_blob)
    VALUES (EMPTY_BLOB())
    RETURNING a_blob INTO :DbBlob;
    printf ( "INSERT returned error %d\n", sqlca.sqlcode );
    printf ( " %s\n", sqlca.sqlerrm.sqlerrmc );
    Fp = fopen ( "test.gif", "r" );
    if ( Fp != 0 ) {
    FirstRead = 1;
    Offset = 1;
    BytesRead = CMN_IO_BUFF_SIZE;
    while ( BytesRead > 0 ) {
    printf ( "Bytes requested %d\n", BytesRead );
    BytesRead = fread ( IoBuff, 1, BytesRead, Fp );
    printf ( "Bytes read %d\n", BytesRead );
    if ( ( FirstRead == 1 ) && ( BytesRead < CMN_IO_BUFF_SIZE ) ) {
    EXEC SQL LOB WRITE ONE :BytesRead
    FROM :IoBuff INTO :DbBlob AT :Offset;
    printf ( "WRITE ONE returned error %d\n", sqlca.sqlcode );
    printf ( " %s\n", sqlca.sqlerrm.sqlerrmc );
    printf ( "Bytes written %d at offset %d\n", BytesRead, Offset );
    } else if ( ( FirstRead == 1 ) && ( BytesRead == CMN_IO_BUFF_SIZE ) ) {
    EXEC SQL LOB WRITE FIRST :BytesRead
    FROM :IoBuff INTO :DbBlob AT :Offset;
    printf ( "WRITE FIRST returned error %d\n", sqlca.sqlcode );
    printf ( " %s\n", sqlca.sqlerrm.sqlerrmc );
    printf ( "Bytes written %d at offset %d\n", BytesRead, Offset );
    } else if ( ( FirstRead == 0 ) && ( BytesRead == CMN_IO_BUFF_SIZE ) ) {
    EXEC SQL LOB WRITE NEXT :BytesRead
    FROM :IoBuff INTO :DbBlob AT :Offset;
    printf ( "WRITE NEXT returned error %d\n", sqlca.sqlcode );
    printf ( " %s\n", sqlca.sqlerrm.sqlerrmc );
    printf ( "Bytes written %d at offset %d\n", BytesRead, Offset );
    } else if ( ( FirstRead == 0 ) && ( BytesRead < CMN_IO_BUFF_SIZE ) ) {
    EXEC SQL LOB WRITE LAST :BytesRead
    FROM :IoBuff INTO :DbBlob AT :Offset;
    printf ( "WRITE LAST returned error %d\n", sqlca.sqlcode );
    printf ( " %s\n", sqlca.sqlerrm.sqlerrmc );
    printf ( "Bytes written %d at offset %d\n", BytesRead, Offset );
    FirstRead = 0;
    Offset = Offset + BytesRead;
    if ( BytesRead < CMN_IO_BUFF_SIZE ) {
    BytesRead = 0;
    fclose ( Fp );
    } else {
    printf ( "Error opening input file\n" );
    EXEC SQL COMMIT WORK;
    printf ( "COMMIT returned error %d\n", sqlca.sqlcode );
    printf ( " %s\n", sqlca.sqlerrm.sqlerrmc );
    }

    Do not use buffered IO (FILE*) . Use direct Calls(Open/Write).
    Buffered IO has limiations

Maybe you are looking for

  • Why can't I move downloads to flash drive  without "don't have permission" message

    I continue to get this message when I go to the files I downloaded onto the computer and drag them to the flash drive, "The operation can't be completed because you don't have permission to access some of the items." I can move the files anywhere on

  • How to set value for trim and bleed using jsx script?

    I have tried using bleedoffsetRect but somehow it is not working. Can anybody please help me on how to set value for trim and bleed using jsx script? Any example will be highly appreciated. Following is the code I am trying with: var _saveName = new

  • Problem with Oracle XA Datasource

    Hi All, I have created a JDBC XA Resource pool for Oracle DB and when i try to run my application, i am getting the below exception. But the same appln runs in NON-XA Datasource. <jdbc-connection-pool connection-validation-method="auto-commit" dataso

  • How can I detect database role BEFORE mounting database?

    Once a database is mounted, it is possible to query the V$database view to check the database_role IE: Primary, Physical Standby or Logical Standby. When starting a Physical standby, the correct sequence is to: SQL> startup nomount SQL> alter databas

  • Urgent help needed(call_form in the web_form)

    Dear College, I have scussfully set up the form run in the web using Jinitiator. However, after I started a form in the client browser, I can not call another form using call_form. Can anyone advise me how to do it? Thanks in advance Ming Liu null