Using BFile in Developer6

Hi,
I have created a table in Oracle 8i, which has one BFILE field.
I have inserted 2-3 records in this table, where BFile field
contains word document.
Now I want to view this document using a Form in Developer6.
How do i do it?
I tried using by creating default block but query on records
failed, due to BFILE field.
Then I tried using OLE controls. But we couldn't link BFILE
field with OLE controls.
Please help me !
TIA,
Ashwani
null

I tried , but the process runs "before header", thus before the item is being assigned a value by the parent page, so I get an error that the process cannot find the filename (which it suppose to get from item :P2_FILENAME).
Edited by: Yoni Sade on Nov 9, 2009 5:53 PM

Similar Messages

  • How to use bfile in forms

    Hi,
    I'm using webutil for viewing files(doc,pdf,txt).These files are stored in FTP server.
    But my requirement is i have to link that files with BFILE. means those file paths store in bfile. how to use bfile in forms.

    1. \forms\server\formsweb.cfg
    archive_jini=frmall_jinit.jar,FormsProperties.jar
    2. regedit
    HKEY_LOCAL_MACHINE => FORMS_BUILDER_CLASSPATH
    C:\DevSuiteHome_1\forms\java\frmbld.jar;C:\DevSuiteHome_1\jlib\importer.jar;
    C:\DevSuiteHome_1\jlib\debugger.jar;C:\DevSuiteHome_1\jlib\utj.jar;
    C:\DevSuiteHome_1\jlib\dfc.jar;C:\DevSuiteHome_1\jlib\help4.jar;
    C:\DevSuiteHome_1\jlib\oracle_ice.jar;C:\DevSuiteHome_1\jlib\jewt4.jar;
    C:\DevSuiteHome_1\jlib\ewt3.jar;C:\DevSuiteHome_1\jlib\share.jar;
    C:\DevSuiteHome_1\forms\java\frmwebutil.jar;C:\DevSuiteHome_1\forms\java\frmall.jar;
    C:\DevSuiteHome_1\forms\java\FormsProperties.jar;
    3. Untuk Jdev.. include..Libraries [THE WAY I AM CREATING A BEAN..NO NEED TO READ THIS]
    ORacle Forms
    C:\DevSuiteHome_1\jdev\lib\ext\frmjdev_pjc.jar

  • Is it better to store the image in the database or to use BFile

    Hi all,
    I've a doubt regarding the handling of the image. For example i've the images of the persons amounting to 50,000(the number will be increased in future). So i just want to know which is the better menthod. is it better to store all the images in the database or to store in local OS and use Bfile concept. I'm using Forms 6i and Forms 10g(10.1.2.0.2). OS: Windows XP
    Regards,
    Alok Dubey
    Edited by: Alok Dubey on Nov 14, 2008 5:43 PM

    But the total number (i.e.., 50,000) is scaring me to use the BlobI don't think the database will cause problem just due to the amount of data stored in blobs. Of coure you would have to check which parameters to set for the blobs to make storage efficient. If
    You didn't mention your db-version, in 11G you could also think of using compression and deduplication to deal with the data amount.
    In general i agree with Francois, the best way depends, but in terms of data consistency and easy backup/restore there might be some advantages in using the blob-version.
    hope this helps.

  • How to convert file format using bfile datatype

    <pre>
    Hi all,
    Assume, i has a table BFILE_IMAGE and it table structure is similar like:
    SQL> desc bfile_image;
    Name Null? Type
    IMAGE_ID NUMBER
    FILE_NAME VARCHAR2(30)
    IMAGE BINARY FILE LOB
    SQL>
    Is that impossible if we can use process() function with bfile datatype? similar like:
    ordsys.ordimage.process(image,'fileFormat=JPEG contentFormat=24BITRGB');
    The line above is work with blob datatype but doesn't with bfile datatype. Can you please give me some idea how to deal with it.
    Thanks,
    Kevin

    a BFILE is content stored outside the Oracle database. It is a read-only object.
    process() is an in-place modification of the image. This is only possible with BLOB stored content.
    If you are using BFILE you could use the processCopy() method to create a new copy of the BFILE stored image that has been processed according to your command.

  • Using bfile

    hello
    please how can i get a full example show me how to insert picture through form in field data type is bfile
    where i need to save picture out database using bfile field
    i have not any idea about what should be do in form builder 6i/10g
    i create table have structure (id number,pic bfile)
    and i create directory
    and grant read,write on this directory to my_user
    but i did not now what should be do in form i need when insert id and press to button
    display the picture for the specific id
    thanks

    i asked ybout the blob because it would have been quite easy with that. With bfile it could work like the following (assuming Forms 10G and the use of WEBUTIL):
    make the directory where the images are located accessible to the OAS. Whenever the user wants to see a file, use WEBUTIL_FILETRANSFER.AS_TO_CLIENT to copy the file from the application-server to the client, then use CLIENT_HOST('cmd /c start "imagefilenamewithpath"');
    This will open the appropiate viewer for the file.
    If the user wants to store a file in the database, let him choose the local file using CLIENT_GET_FILENAME then use WEBUTIL_FILETRANSFER.CLIENT_TO_AS to transfer the file to the image-directory, then invoke some database-procedure which create the db-record with the bfile pointing to the imagefile.

  • Urgent !!!!!!!!!!!! regarding CREATE JAVA CLASS USING BFILE

    We have Oracle 8.1.7 spatial database. We got to load some java classes into the database. We would like to make it as the java programs to be loaded from a client system into the oracle server. I am using CREATE DIRECTORY command to create a directory object (say suppose \\prav\loadjavaclasses\. Then using the CREATE OR REPLACE JAVA CLASS USING BFILE (object_name, 'CLASSNAME.CLASS'). This .class file is in the network identified by prav which in turn has a shared directory (full privileges) loadjavaclasses folder. Can you please help in this regard.
    Please mail me to [email protected]
    thanks in advance
    SudhaSrikanthan
    null

    use loadjava

  • Store and retrieve a word document in database 10g using BFILE

    Hello guys
    I want to store a word document in oracle 10g using BFILE and forms 10g. Can anyone send me a sample code?
    Thanks

    Look at
    Re: How to store a "word document" on Data Base?
    hope helps

  • Using BFile in a region query

    Hi,
    I want to allow users to download files through a column BFile used in a region query.
    What should I put in the SELECT clause and what should I put in the column attribute?
    Edited by: Yoni Sade on Nov 8, 2009 9:40 PM

    I tried , but the process runs "before header", thus before the item is being assigned a value by the parent page, so I get an error that the process cannot find the filename (which it suppose to get from item :P2_FILENAME).
    Edited by: Yoni Sade on Nov 9, 2009 5:53 PM

  • How to use BFILE/BLOB

    Hi,
    I'm using forms6i.
    I want to save a file(may be of any format, eg .doc,.html,.xls,...) in the database.
    And when we query that field, say if we saved a .doc file,when we query , the file should open as a word document.
    How can this be done?
    Thanks

    ORA-22285: non-existent directoryYou have to create a database directory first:
    create directory ....
    and copy the local file to that directory on the db server. I am assuming Forms 6i client/server here, so can do this with a HOST command.
    Then you can use dbms_lob with a simple procedure like this:
    create or replace procedure blob_from_file
    (i_directory in varchar2
    ,i_filename in varchar2
    ,io_blob in out nocopy blob
    is
       l_file       bfile;
    begin
       l_file := bfilename(i_directory, i_filename);
       dbms_lob.fileopen(l_file, dbms_lob.file_readonly);
       dbms_lob.createtemporary (io_blob, false);
       dbms_lob.loadfromfile(io_blob, l_file, dbms_lob.lobmaxsize,1 ,1 );
       dbms_lob.fileclose(l_file);
    end;i_directory is not the machine directory (c:\...) but the Oracle database directory.

  • Using BFILE pointer to point to xml data on ifs

    hai all,
    i need to create a table in which one of the columns is a BFILE pointer which points to XML/HTML/IMAGE content which is stored on iFS(internet file system).how do i go about it?
    is there any limit on the number of BFILE pointers columns that a table can have in oracle 8i.do englighten me on this.other wise tell me a resource where i can get answer for tha above problem.
    thanks

    Please see the reply at http://technet.oracle.com:89/ubb/Forum36/HTML/000778.html

  • Using BFILEs with IFS (backup of large IFS DB)

    Greetings:
    I am investigating IFS for a customer. The customer is concerned about backing up what could become a very large Oracle database if versioned documents are stored in the DB.
    Is it possible to have IFS store it's documents in BFILEs (OS data files)? My customer thinks this would be easier to backup. My initial run through the documentation leads me think it is not possible, at least, with an out of the box implementation.
    I see a glimmer of hope by extending the document classes and specifying BFILEs somehow. Has anyone done this?
    TIA
    ...jlg (jim)

    Please ignore this thread - I was too fast in posting.
    The answer to this query can be found by searching this forum for "BFILE".
    Please excuse the unncessarry traffic.
    ...jlg

  • BFILE use in Oracle Forms

    Can anyone tell me how to get BFILE Datatypes to work in Oracle Forms 6i? I am able to create and build my table with BFILE datatypes and create and build my directories. However, when I build my form in runtime, I execute my query and it bring up an error message "Can not execute query".
    Could someone please tell me how to build forms in Oracle Forms 6i so that it can use BFILE Datayes?
    Thanks!

    JavaBean does d othe job for you but it requires signing process; I used it when I was working on forms6i for our project.
    I could use another approach that is the file type command executable which it stays in client's PC to do it and it does not requires signing at all since I am now working on the Java EE project for downloading and launching the third party tool in client's PC.
    I plan to write a article for forms use, which could do all the heavy WebUtil can do, but not need to go thru the signing process.

  • Want to store and retrived  images  in the BFILE format using inter media

    I want to store and retrived images in the BFILE format using inter media.I found a article in the oracle site that Oracle interMedia image supports BFILEs.But this article is not demonstrating the use of BFILEs.Please help me to findout the solution.
    Thanks in advance.
    null

    The advantage to using BFILE storage for your is that it's an easy way for Oracle
    Multimedia to access your images without importing them into the database.
    The disadvantages are that the images are read-only. If you want to scale an image or
    convert to a different format, you will need to create a destination image to hold the result. This
    will necessarily be a BLOB based image.
    Adding images is difficult to do from within an application program. Generally you would add new images to a file system that is accessible to the Oracle Database, then insert new rows in your table with appropriate BFILE pointers to the new images.
    BFILE images require separate backup from the database. Also there is not way to transactionally coordinate your BFILE data with your relational data.
    If you are using Oracle 11g, you can use the SecureFile option for BLOB storage. This is much faster then the previous BLOB storage (now called BasicFile) and much faster then BFILE also.
    That said, below is a code snippet that shows how to insert a BFILE based image, set it's properties, show it's properties and select the BFILE locator to access the content. You would need to use the DBMS_LOB package (in PL/SQL) to read the content. From other APIs, (e.g., Java) you would need to use the proper interfaces to access the BFILE.
    Note that you need change the USER, PASSWORD fields in the code. Also you should change the directory location and image name for your use.
    -- create a directory object indicating where the images are stored;
    create or replace directory imgdir as '/tmp';
    -- and grant permission to read to a user;
    grant read on directory imgdir to <USER>;
    conn <USER>/<PASSWORD>;
    -- create the images table
    create table images(id integer primary key, image ordsys.ordimage);
    set serveroutput on
    declare
    obj ordsys.ordimage;
    begin
    -- use the init('FILE', <SRC_LOCATION>, <SRC_FILE>) function
    -- to create an ORDIMAGE object with a BFILE source
    insert into images(id, image)
    values(1, ordimage.init('FILE', 'IMGDIR', 'wizard.jpg'))
    returning image into obj;
    -- lets see if the image source is local or not
    if(obj.isLocal()) then
    dbms_output.put_line('image source is local');
    else
    dbms_output.put_line('image source is NOT local');
    end if;
    -- set the properties of the image object
    obj.setProperties();
    -- and update the row
    update images set image=obj where id=1;
    commit;
    end;
    column height format 99999
    column width format 99999
    column mimetype format a30
    column length format 999999
    -- let's see what we have
    select t.image.getHeight() as "height"
    , t.image.getWidth() as "width"
    , t.image.getMimetype() as "mimetype"
    , t.image.getContentLength() as "length"
    from images t
    -- fetch a BFILE handle to the content
    declare
    bf BFILE;
    length number;
    begin
    select t.image.getBfile() into bf
    from images t
    where t.id=1;
    -- use the DBMS_LOB interface to find out size of image
    length := dbms_lob.getLength(bf);
    dbms_output.put_line('length of BFILE is ' || length);
    end;
    ---What we get when we run the code
    Connected.
    Directory created.
    Connected.
    Table created.
    image source is NOT local
    PL/SQL procedure successfully completed.
    height     width mimetype               length
    399     485 image/jpeg          92552
    length of BFILE is 92552
    PL/SQL procedure successfully completed.
    SQL>

  • Using BLOB,BFILE

    hello Gurus,
    I want to know these two things
    ٭ How to use BLOB data type?
    ٭ How to use BFILE data type?
    Regards
    Santosh Kumar

    Apart from what Raford mentioned, you should also keep in mind about the security aspect of it.
    Documents stored in db are more secured or can be made more secured.
    When you use bfiles, they are stored in OS and thus can be deleted intentionally or by mistake.
    Performance wise, they donot make much difference even though bfile have an overhead of going to file system to fetch the fiiles/information.

  • How to use a Java Resource in my java source

    Hello,
    I need to know how to use my external JAR I loaded in the database using this line below:
    CREATE OR REPLACE JAVA RESOURCE NAMED "MyJar" USING BFILE (BFILE_DIR,'MyExternal.jar');
    In fact, I have a Java file using this JAR, but I do not know how to tell to the java source that it have to use this JAR.
    ==========Java Source importing the Jar===================
    package com.gemalto.ws.snmp;
    import java.io.IOException;
    import java.util.Vector;
    import org.snmp4j.Snmp;
    import org.snmp4j.smi.*;
    import org.snmp4j.TransportMapping;
    import org.snmp4j.transport.DefaultUdpTransportMapping;
    import org.snmp4j.CommunityTarget;
    import org.snmp4j.mp.SnmpConstants;
    import org.snmp4j.PDU;
    import org.snmp4j.event.ResponseEvent;
    public class SNMPAgent
    ==========================
    Could you give the SQL request or loadjava command line permitting to do use my java resource file?
    Thks

    The JAR is already load by using CREATE JAVA RESOURCE ... or "loadjava -resolve –force -user p/p@SID –genmissing -jarasresource MyJar.jar"
    If we can create a resource by SQL or loadjava, how can I use it in my java code?
    Edited by: 847873 on 28 mars 2011 06:05
    Edited by: 847873 on 28 mars 2011 06:07

Maybe you are looking for

  • Ipod touch doesnt get recognized by windows or itunes?

    okay so just recently i would plug in my ipod touch and the little noise windows makes to say that something has been plugged in rings except itunes wont recognize it or windows will make it seem like its not even there like its plugged in but a ghos

  • Data loading in implementation

    Hi gurus, In implementation-(kindly read the whole thing to understand my doubt) 1.Is client 300 is the only client in BW Development server r else do we have 200,220 as we have in R/3 Developmentserver along with 300. 2. Do we activate all the Infop

  • Your server IP address is in local blacklist

    Recently it has happened to me more and more often that my emails are sent back to me as undelivered email, with the remark "Your server IP address is in local blacklist". This happens even with my contacts that are in my Address Book and I was sendi

  • Overriding paintComponent ?

    Hello, I'm working with some JScrollBars, but I want to give them a more unique look, because it's for use in a game. But I'm not sure how to repaint them. should I override the paintComponent method, and how will I know all the dimensions of al the

  • Unwanted software with new Flash 11 install - Underhanded

    I am sorry of the tone of this discussion. I installed Flash Player 11 last night. The screen pops up and some strange software description shows up with either a dismiss or next button at the bottom. I look at the main window and for sure it says Ad