Forms9i and BLOB

Hi,
In Forms 6i, we had a form with OLE Container on it. We had a scenario where we allowed the user to attach a file that they had on hard disk to a record and save the record. We saved the information as a BLOB. The next time around, when they queried the record, we allowed them to double-click the OLE container to view the document that they saved. So, it did not matter if they did not have the document on the hard disk still.
Now, that OLE container is gone, how do I go about and achieve this. What do I use to allow them to save the documents and view them again?
ANY HELP WOULD BE HIGHLY APPRECIATED!!!
Thanks
Hema.

You can go direct, the WebUtil code initialises the Blob if it needs to to save you the trouble.

Similar Messages

  • Out of Order Primary Keys and Blob fields

    Hi,
    I am using Oracle Migration Workbench to transfer the data from SQLServer 2000 to ORacle 9i. I am running into the following issues and was wondering if you had any ideas what may be going on:
    1.) Primary keys are out of order
    2.) Blob fields are inserted into the incorrect row
    Ex. BLOB field stating 'Application active' should be associated with Act_key (primary key) = 5 and it ends up transfering over with act_key 28.
    Thank you for any information you may have on this.
    AK

    I am very interested in this thread because I have encountered a similar problem with BLOB columns, except that I am also seeing this with CLOB's.
    Essentially the all the data gets 'migrated', but the CLOB and BLOB columns are all mixed up!
    Any solutions?

  • How we handle CLOB and BLOB Datatypes in HANA DB

    Dear HANA Gurus,
    We have would like to build EDW using HANA base on our source system Oracle and it's supports CLOB and BLOB datatypes
    Would you please suggest how do we handle in HANA DB.
    Let not say it's oracle specific.
    Regards,
    Manoj

    Hello,
    check SAP HANA SQL Reference Guide for list of data types:
    (page 14 - Classification of Data Types)
    https://service.sap.com/~sapidb/011000358700000604922011
    For this purpose might be useful following data types:
    Large Object (LOB) Types
    LOB (large objects) data types, CLOB, NCLOB and BLOB, are used to store a large amount of data such as text documents and images. The maximum size of an LOB is 2 GB.
    BLOB
    The BLOB data type is used to store large binary data.
    CLOB
    The CLOB data type is used to store large ASCII character data.
    NCLOB
    The NCLOB data type is used to store a large Unicode character object.
    Tomas

  • Dbms_crypto and blob datatypes

    Hi everyone
    I've been trying to learn how to encrypt data (a file uploaded) using blob datatype. This is me first attempt at encrypting and have been doing some research on this. I need to use the BLOB as I am encrypting a file that is uploaded to the system. Does anyone have experience in this or know of a good example that I can take a look at?
    Ray

    Hello,
    check SAP HANA SQL Reference Guide for list of data types:
    (page 14 - Classification of Data Types)
    https://service.sap.com/~sapidb/011000358700000604922011
    For this purpose might be useful following data types:
    Large Object (LOB) Types
    LOB (large objects) data types, CLOB, NCLOB and BLOB, are used to store a large amount of data such as text documents and images. The maximum size of an LOB is 2 GB.
    BLOB
    The BLOB data type is used to store large binary data.
    CLOB
    The CLOB data type is used to store large ASCII character data.
    NCLOB
    The NCLOB data type is used to store a large Unicode character object.
    Tomas

  • Java and BLOB

    Help...
    I need samples for storing files into BLOB by using Java code.
    Anyone knows?

    Here is my full code:
    /* This program is for testing Java and BLOB function */
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.sql.*;
    public class BlobApplication {
    static Connection con=null;
    // static Statement stmt,stmt1,stmt2,stmt3=null;
    // static ResultSet rs,rs1,rs2,rs3=null;
    // static OracleConnection con=null;
    static OracleStatement stmt,stmt1,stmt2,stmt3=null;
    static OracleResultSet rs,rs1,rs2,rs3=null;
    static String sqlStr,sqlStr1,sqlStr2,sqlStr3="";
    static long blobLength;
         public static void main(String args[]) {
              try{     
                   Class.forName
    ("oracle.jdbc.driver.OracleDriver");
                   //con=(OracleConnection)
    DriverManager.getConnection
    ("jdbc:oracle:thin:@172.18.41.8:1521","EDB","edb");      
                   con=(OracleConnection)
    DriverManager.getConnection
    ("jdbc:oracle:oci8:@t18new","EDB","edb");      
                   //con=DriverManager.getConnection
    ("jdbc:oracle:oci8:@t18new","EDB","edb");      
                   BlobApplication lobApp=new
    BlobApplication();
                   lobApp.insertIntoLobTable("bfile1.dat");
                   //lobApp.insertIntoLobTable
    ("bfile2.dat");
                   //lobApp.insertIntoLobTable
    ("bfile3.dat");
                   lobApp.saveBlobTableToDisk();
                   con.close();     
              } catch (Exception e) {
                   e.printStackTrace();
         void insertIntoLobTable(String blobFilename){
              try {
         stmt=(OracleStatement)con.createStatement
         //stmt=con.createStatement();     
              stmt.execute("insert into lobtable
    (blobfilename,blobdata) values ('"+blobFilename+"', EMPTY_BLOB
              insertBLOB(blobFilename);
    stmt.close();
              catch (SQLException ex) {
                   System.err.println("Could not insert
    into the table lobtable \n"+ex);
                   System.exit(1);
         void insertBLOB(String filename) throws SQLException {
              try {
                   BLOB aBLOB=null;     
                   System.out.println(filename);     
                   File aFile=new File(filename);
                   FileInputStream aFileInputStream=new
    FileInputStream(aFile);               
         stmt1=(OracleStatement)con.createStatement();
         //stmt1=con.createStatement();     
              //sqlStr1="select * from lobtable where
    blobfilename='"+ filename +"' for update";
                   System.out.println("before query");
              rs1=(OracleResultSet)stmt1.executeQuery
    ("select * from lobtable where blobfilename='"+ filename +"' for
    update");               
              //rs1=stmt1.executeQuery(sqlStr1);          
              //stmt1.executeQuery(sqlStr1);
                   System.out.println("after query");
                   while (rs1.next()) {
                   System.out.println("in the loop");
              aBLOB=rs1.getBLOB(2);               
                             //int
    chunkSize=rs1.getBLOB("blobdata").getChunkSize();
                             int
    chunkSize=aBLOB.getChunkSize();
                             byte[] buffer=new byte
    [chunkSize];
                             int lenRead;
                             long offset=1;
                             while
    ((lenRead=aFileInputStream.read(buffer)) != -1) {
                                  if (blobLength<
    offset) buffer=new byte[lenRead];
                                  //rs1.getBLOB
    ("blobdata").putBytes(offset,buffer);
                                  aBLOB.putBytes
    (offset,buffer);
                                  offset+=lenRead;
              rs1.close();
    stmt1.close();                    
                        aFileInputStream.close();
              catch(IOException e) {
                   System.err.println("Error in
    reading "+filename+"\n"+e);
                   System.exit(1);
         void saveBlobTableToDisk() {
              try {
         stmt2=(OracleStatement)
    con.createStatement();     
         //stmt2=con.createStatement();     
              sqlStr2="SELECT blobfilename,blobdata
    FROM LOBTABLE";
              rs2=(OracleResultSet)stmt2.executeQuery
    (sqlStr2);
              //rs2=stmt2.executeQuery(sqlStr2);
                   while (rs2.next()) {     
                        writeBlobToDisk(rs2.getString
    ("blobfilename"), rs2.getBLOB("blobdata"));
              rs2.close();
    stmt2.close();                    
              catch (SQLException ex) {
                   System.err.println("Could not save to
    disk \n"+ex);
                   System.exit(1);
         void writeBlobToDisk(String filename,BLOB readBlob)
    throws SQLException {
              try {
                   File aFile=new File("blob_"+filename);
                   FileOutputStream aFileOutputStream=new
    FileOutputStream(aFile);
                   int chunkSize=readBlob.getChunkSize();
                   byte[] buffer=new byte[chunkSize];
                   blobLength=readBlob.length();
                   for (long pos=1; pos<blobLength;
    pos+=chunkSize) {
                        chunkSize=readBlob.getBytes
    (pos,chunkSize,buffer);
                        aFileOutputStream.write
    (buffer,0,chunkSize);
                   aFileOutputStream.close();
              catch (IOException e) {
                   System.err.println("Error in
    writing "+filename+"\n"+e);
                   System.exit(1);
    } // End of BLobApplication
    -----------------------------------------------------------------

  • Downloading oracle forms9i and report9i devloper

    Hi all,
    1) Can any one send the download link for oracle forms9i and reports9i developer?
    2)I am using Oracle 9i database. Is oracle forms10g support for Oracle 9i database.
    Thanks and regards
    Michael

    If it's available, it'll be on either http://download.oracle.com or http://edelivery.oracle.com

  • Forms9i and Java-Library

    We worked with forms6i and it seemed that forms6i works with almost every Java-Library. Now we changed to Forms9i and we only can work with Java 1.4.2_05.
    Our customer are pretty unhappy with that. Is there any possibility to get rid of this limitation?
    Thanks
    Adrian

    Hi,
    doesn't sound right. Unless you are using JavaPlugin 1.4 that uses Java 1.4 you should be able to use Java 1.3. JInitiator is based on JSK 1.3 still. All client side code executes in teh VM of the JavaPlugin or Jinitiator.
    Frank

  • Forms9 and different PlugIns

    Recently we migrated to Forms9 and now we can only work with a fix plugin, wich makes our
    customer really unhappy.
    I think this is defined in the file formsweb.cfg:
    [jpi14205]
    baseHTMLJInitiator=basejpi.htm
    baseHTMLie=basejpi.htm
    jpi_classid=clsid:CAFEEFAC-0014-0002-0005-ABCDEFFEDCBA
    jpi_download_page=http://java.sun.com/j2se/1.4.2/download.html
    jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-142-windows-i586.cab#Version=1,4,2,05
    jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_05
    # legacy_lifecycle=true
    Probably we can define several jpi, but that can't be the solution. We ar looking for a config, which
    allows us to use every plugin beyond a certain release.
    We already opened a TAR, but they couldn't help us.
    So my questions is:
    How is handling other people this issue?
    Is there a solution around? And what we have to configure? Or is there a paper around, which
    describes it?
    Help would be really appreciated.
    Adrian

    Check out the Client wrapper utility:
    http://www.oracle.com/technology/software/products/forms/files/clientwrapperdesc.html
    Gerald

  • Diff between forms9i and forms10g?

    Hi
    What are the difference between forms6i, forms9i and forms10g? Could anybody give urls or white papers links ?
    Regards

    See your other posting
    otn.oracle.com/products/forms has new feature papers.
    Grant

  • Replicating clobs and blobs in a remote database across dblink

    9iR2
    When creating a materialized view in a warehouse pointing to a remote table in an OLTP environment, I got this error when trying to replicate a table with 3 clobs.
    ORA-22992: cannot use LOB locators selected from remote tables
    So, how does Oracle recommend replicating Blobs and Clobs in a remote database/warehouse? Evidently using materialized views doesnt work.

    MV replication is obsolete.
    Move to 10gR2 and use Streams.

  • Associative Array and Blob

    I’m currently working on a system that allows the users to upload an Excel spreadsheet (.xls) in the system. The upload page is a PL/SQL cartridge. Then I’ve written a Java servlet (using Oracle Clean Content) to convert the XLS into a CSV and store it back in the database. (it is stored in the “uploaded_files” table as a blob). I’m trying to create another procedure to read the contents of the blob and display a preview of the data on the screen (using an html table (will be done using cartridge)). After the preview, the user can choose to submit the data into the database into the “detail_records” table or simply discard everything.
    I've been trying to use an associative array to grab all the data from the blob but I’m getting confused about how to implement it in my situation.
    Can someone provide any examples of this nature?
    Any help is greatly appreciated.

    I decided to create a "record" type with all the columns from my excel spreadsheet. Then I will create a table type of records
    I am doing something like this:
    declare
    type s_record is record
                            (l_name varchar2(100),
                             f_code varchar2(4) ,
                             l_code varchar2(6),
                             d_date varchar2(5),
                             d_type varchar2(5),
                             price number,
                             volume number,
                             tax number,
                             amount_paid number
    type s_data_tab is table of s_record index by binary_integer;
    v_s_data s_data_tab;
    v_indx binary_integer :=0;
    begin
    end; I am getting confused about parsing an entire row of values separated by commas into a row in the temporary table created above.
    I know I need a loop, but from what I understand, the way to populate data needs to be something like this, for example:
    for v_indx in 0..data_size loop
       v_s_data(v_indx).l_name:= 'Company A';
       v_s_data(v_indx).f_code := '2700';
    end loop; But I'm not sure how this approach should be used to parse an entire row at once.
    Any help appreciated.

  • Report 6i and Blob

    Currently, I have a word document (BLOB) stored in a table.
    The goal is to fetch the BLOB and display the content of the word doc in the report.
    I've tried to add a report field which maps to the db column as Binary LOB with File Format property = 'text'. (I've also tried File Format property = OLE and few others. none of them works)
    All I am getting is bunch of scrambled character.
    What am I missing here?
    Thanks!

    I looked around Metalink and found...
    Unable to Display Complete MS-Word Document from Oracle Reports [ID 233445.1].
    It mentioned one work around is to transform the ms-doc to a text file.
    However, I am more interesting in what you mentioned earlier... "Split the original in several one page doc."
    Is there a programming way to achieve the goal for splitting the original doc in several pages while save into DB via Oracle Form? or do we just have to split the doc manually?
    Thanks.

  • Sql*loader and blob

    Hi,
    I want to load hex strings with sql loader into a blob/raw fields.
    The problem is that sql functions (e.g. HextoRaw) are not allowed with lob columns, and for the RAW one i get:
    "illegal use of TERMINATED BY for RAW"
    What should i do?

    If each blob is in a separate file, then you should be able to use LOBFILES to load them. Each row in the data file would need to have the name of the file containing the blob for that row. File ulcase9.ctl in the demo directory shows an example of using LOBFILES to load a lob column.
    If you want the blob in the data file, then the data file needs to use types that have include length information in then, such as VARRAW, LONG VARRAW or VARRAWC. Also, the records for the data files cannot be terminated by a character string or newline. That's because the blob data might contain the character string or newline in the middle of its data. Instead, you would need to use the VAR record type.

  • Report 6i and BLOB type of field

    Hi,
    I have a table name logo, fields are:-
    LOGO_NAME varchar2(100)
    LOGO BLOB
    If I used form to load picture and saved into this field, how can i extract the data into report?

    Sorry that I must add also that I am using report 6i

  • PDF Book Binder Processor and blob protocol

    Hello,
    I've 3 questions concerning PDF Book Binder Processor
    1. in the documentation: "Oracle® XML Publisher User’s Guide Release 11i Part No. B13817-06"
    I see a statement:
    "For detailed information, please see OracleMetaLink note 358886.1, "Oracle
    XML Publisher PDF Binding Examples.""
    Unfortunatly I can't find this document on the My Oracle Support.
    Is this document exists ?
    Was anybody was able to find it ?
    2. in the: "Oracle BI Publisher Java API Reference Release 10.1.3.4"
    I see a statement:
    "The format for the "blob://" protocol is:
    blob://[table_name].[blob_column_name]/[pk_datatype]:[pk_name]=[pk_value]/../../..
    Please see "toc-volumes-blob.xml" for an example of how to use this protocol."
    Unfortunatly I can't find this example.
    Does anybody knows where this sample can be found ?
    3. Does anybody use the "blob://" protocol and can share a experiences ?
    I would like to know the way how can I use this blob protocol in the XML control file, where can I declare a connection to the database ?
    Thank you in advance for help.
    Andrzej Raczkowski

    Check out
    http://blogs.oracle.com/xmlpublisher/2008/04/bookbindin_1.html and
    http://blogs.oracle.com/xmlpublisher/2008/04/bookbindin_2.html
    Regards
    Tim

Maybe you are looking for

  • Lync keeps prompting for username and password.

    Hi All, Lync 2013 prompt for username and password.  The request for username and password happens intermittently. Appreciate any help. Thanks denciod

  • HT4528 Why does my phone say invalid SIM?

    My phone says invaild SIM. I cannot text, call, or connect to the internet!!! What is the problem??

  • Error while posting from runtime workbench

    Hi all, My scenario is idoc-idoc(One SAP system is sending data to another SAP system through XI as an idoc). I am trying to test the scenario by posting the idoc data in RWB -> Integration Engine but its showing me an error:500 Error during Sender A

  • Blackberry App World Broken

    Deja Vu (had a similar issue last time I posted here) Ok so have a new Blackberry Q10 One day it shows updates are available OTA so I clicked update all Device rebooted & ever since then Blackberry App World no longer works (if you try to load, it go

  • Transaction timeout during debugging

    Does anyone know how one might go about remotely debugging WL7.0 without being pressured by transaction timeouts? It's rather annoying to be carefully debugging a session bean only to have the current transaction timeout. Any suggestions?