Inserting a bmp in Plus

Hi,
I have a workbook with a bmp file as a title. When I visualize this workbook with Desktop is correct. But when I visualize it in Plus I don't see the bmp inserted and in the browser I visualize a message that it is trying to open a image but it can't. I insert the file in the directory and I reload the same workbook but I can't see the bmp.
Why I can't visualize the workbook with the bmp file in Plus?
Thanks.

Hi
You cannot attach bitmaps to workbooks in Plus. The way it is done in Plus, and Viewer, is to edit configuration file for the whole environment. In versions prior to 10g Release 2 this was done manually. Thankfully in 10g Release 2 this is now done via a screen.
To do this in versions prior to 10g Release 2, follow this workflow:
1. Create a suitable GIF file containing your logo
2. Give the file a meaningful name E.g. OurCompanyLogo.gif
3. Save the file here:
     [Mid Tier Home]/j2ee/OC4J_BI_Forms/applications/discoverer/web/common/images
3. Locate the file called UI_CONFIG.XML which can be found here:
     [Mid Tier Home]/j2ee/OC4J_BI_Forms/applications/discoverer/web/common/xsl
4. Edit this file using Notepad or something similar
5. Locate the section called appearance
6. Find the line that contains the words logo src=""
7. Insert into the brackets a dynamic link to your image
     E.g. logo src ="common/images/OurCompanyLogo.gif"
Note: the name is case sensitive and must be entered using exactly the casing that you used when you created the file
8. Save UI_Config.XML
Note: there is no need to recompile anything because UI_CONFIG.XML is a dynamic file and is read every time Plus or Viewer is called. You should now see your corporate logo displayed. If you have entered everything correctly and Discoverer displays a small red X the format of the GIF file is wrong. Discoverer seems to be very picky when it comes to the format of GIF files and sometimes you may need to create the file again or even use a different file.
To do this in 10g Release 2, follow this workflow:
1. Launch Enterprise Manager - http://server:1810
2. Enter ias_admin as the user and then enter you admin password
2. Click Discoverer
3. Click Discoverer Plus
4. Click Logo
5. Enter the URL or File for the logo and click OK
6. Discoverer automatically sets the file
File used is [ORCLE_HOME]\discoverer\config\configuration.xml
Look for entry called: <transport name="jrmp"/><logo rendered="true" src="file" url="" file="Armstrong-Smith.gif"/>
Logo will be stored in two places:
1. [ORACLE_HOME]\sysman\webapps\emd\images
2. [ORACLE_HOME]\j2ee\OC4J_BI_Forms\applications\discoverer\discoverer\custom_logos
Best wishes
Michael

Similar Messages

  • How to insert huge XML in CLOB using insert command in sql*plus....

    How to upload huge XML into a CLOB column of a normal table using a script?
    A simple insert statement does not seem to work.
    Thanks & regards.

    In SQL *Plus i'm trying to insert directly into the table.
    My insert statement is like below :
    Insert into ui_templates
    (TEMPLATE_ID, TEMPLATE_NAME, CUSTOMER_ID, DESCRIPTION, XML_CONTENT)
    Values
    (1, 'Default', 1, 'Main Default Template', '<?xml version="1.0" encoding="utf-8"?><xoraLayout:Layout name="MyLayout" version="1.0" ................<3357> chars long');
    COMMIT;
    Message was edited by:
    DKar

  • Insert simple bmp image

    Hello,
    I'm trying to insert a simple bitmap image (150px * 30px) with all pixels red.
    To represent the image I use in the following objs:
    7 0 obj
    <<
    /Type /XObject
    /Subtype /Image
    /Name /Img1
    /Width 150
    /Height 30
    /BitsPerComponent 8
    /ColorSpace /DeviceRGB
    /Filter /ASCIIHexDecode
    /Length 13500
    >>
    stream
    FF0000....FF0000
    endstream
    endobj
    8 0 obj
    << /Length 31 >>
    stream
    q
    1 0 0 1 50 700 cm
    /Img1 Do
    Q
    endstream
    endobj
    ...where 'FF0000....FF0000' is the string FF0000 printed 4500 (150*30) time.
    I see in the pdf  a little red square.
    What's wrong?
    Thank you in advance.
    I attach the pdf file in question.
    Marra Domenico

    Your problem is that your content stream isn't correct  - specifically you arent' understanding how the CTM works with respect to images.  Common mistake.
    Unlike text & vector objects, where the a & d values of the matrix are scaling starting with a 1:1 ratio (eg 1.0 = 100%) - for image, it's in actual pixel values so that in this case means display the image a 1x1 pixel.  For your image, to display at 100%, you should be using 30 0 0 150.
    Also, don't use ASCIIHexEncode, it only serves to bloat your PDF size for no actual gain.

  • How can I insert jpg/bmp files when composing an e mail?

    I want to insert a jpg file into the mail while composing the e mail and avoid sending it as an attachment.
    I've tried copy-paste, but it doesn't work.
    I tried to drag from another window, that doesn't work either.
    I managed to drag a jpg file from another browser (not Firefox), it showed at my end but did not transmit).

    The question relates more to your email system than to Firefox.
    As general comments
    * files and images are likely to be sent as attachments
    * there may be options as to how they display, hotmail for instance is able to display attatched images in firefox as a slideshow within the email
    * sending links rather than attached files is an alternative if the .jpeg is on the web
    * Hotmail, also allows whole Office Files to be inserted. (That includes word processor documents containing images)
    If it is Hotmail and using windows XP you have tried
    * insert | Photos -> web images <br /> left clicking on a displayed image will insert it at the cursor position in the e-mail
    Note Hotmail has its own help information, and a help forum [http://windowslivehelp.com/product.aspx?productid=1 {clickable link)]

  • Plus sign or insert record button on toolbar

    Hi there,
    What trigger fires when insert record button or plus sign from toolbar is clicked?
    Thanks

    Thanks for answering my question.
    Now I created a KEY-CREREC trigger with code
    1. I have a procedure that enables some fields and go_item('block.item1')
    2. create_record;
    There are 2 undesirable things that are occuring
    1. user queries records, clicks on plus sign, the cursor does not go to the 1st field in the block even though i say go_item(block.item1)
    2. to exit without saving the record, i have to click on remove record and then exit. is there a way of exiting out of the form without clciking on remove record button
    Thanks a lot

  • Can select, but cannot insert into oracle tables using php.

    I am having trouble inserting data into a tables in oracle using PHP. I can insert into the tables using baninst1, but nothing else. I can't even insert using the tables' owner. Every time I try I get the ORA-00492 error of table or view does not exist. However, I can run a select statement just fine. So far, baninst1 is the only user that can actually do inserts. I've triple checked all the table grants and everything is fine. Also, I can copy/paste the exact insert statement into SQL*Plus and it works with the correct user. It doesn't have to be baninst1. I've tried everything I can think of. I've tried putting the table name in quotes, adding the schema name to the table, checking public synonyms, but everything appears to be ok. I would greatly appreciate any suggestions others may have.
    I'm using PHP 5.2.3 with an oracle 9i DB.

    Here is the code that doesn't work. It works only with baninst1, no other username will work and all I do is change the my_username/my_password to something different. This is one example function where I try to do an insert, but it doesn't work on any of the tables I try.
    Thanks for looking.
    class Oracle {
         private $oracleUser = "my_username";
         private $oraclePassword = "my_password";
         private $oracleDB = "MY_DB";
         private $c = null;
         function Connect() {
              if ( !($this->c = ocilogon( $this->oracleUser, $this->oraclePassword, $this->oracleDB ) ) )
                   return false;
              return true;
         function AddNewTest($testName, $course, $section, $term, $maxAttempts, $length, $startDate, $startTime, $endDate, $endTime)
              $result = "";
              if( $this->c == null )
                   $this->Connect();     
              $splitIndex = strpos($course, " ");
              $subjectCode = substr($course, 0, $splitIndex);
              $courseNumber = substr($course, $splitIndex + 1);
              $insertStatment = "insert into szbtestinfo(szbtestinfo_test_name,
                                                                szbtestinfo_course_numb,
                                                           szbtestinfo_section,
                                                                szbtestinfo_max_attempts,
                                                                szbtestinfo_length_minutes,
                                                                szbtestinfo_start,
                                                                szbtestinfo_end,
                                                                szbtestinfo_id,
                                                                szbtestinfo_subj_code,
                                                                szbtestinfo_eff_term)
                                                                values( '" . $testName .
                   "', '" . $courseNumber .
                   "', '" . $section .
                   "', " . $maxAttempts .
                   ", " . $length .
                   ", to_date('" . $startDate . " " . $startTime . "', 'MM/DD/YYYY HH24:MI')" .
                   ", to_date('" . $endDate . " " . $endTime . "', 'MM/DD/YYYY HH24:MI')" .
                   ", szsnexttest.nextval" .
                   ", '" . $subjectCode .
                   "', '" . $term . "')";
              //return $insertStatment;
              $s = OCIParse($this->c, $insertStatment);
              try
                   $result = OCIExecute($s);
              catch(exception $e)
              return $result;
         }

  • JDBC - how to handle insert that returns value (bind?)

    Hi,
    I'm trying to do an insert into a table in an Oracle database with an auto-incrementing primary key (using a trigger and sequence) and I need to retrieve the value after the insert. From SQL*Plus, I'd enter:
    var id number;
    INSERT INTO mytable (name) VALUES ('foo') RETURNING id into :id;
    whereupon if I do "print id", I get the value of the id field from the newly-inserted record.
    The big question is how to achieve the same thing using JDBC. I've been flailing around all morning trying to figure it out and suspect it has something to do with using a CallableStatement instead of a PreparedStatement, but all of the examples I've seen so far only deal with calling stored procedures instead of raw SQL, and they all omit the part where some variable is bound to the resultset.
    Assuming I want to have the Java variable (int? Integer()?) "newId" set to the value being returned by the SQL statement as "id" (or ":id"?), what do I need to do between getting the connection and looking at "newId" to see what the value returned by the statement is?
    ie,
    Connection conn = db.connect();
    int newId;
    // show me what I need to do here
    System.out.println("The id of the newly-inserted record is:");
    System.out.println(newId);Thanks!

    This is untested:
    use the executeUpdate() method from the Statement. The return value will be your result from the RETURNING id portion of your SQL statement, if not then you'll probably have to do a seperate select or/and explicit return to get the value back from SQL.

  • Restricting the user to operate DML's from SQL PLUS Environment

    how to Restrict the user to operate DML statements from SQL PLUS Environment.

    Once you restrict SCOTT user to not be able to do an INSERT command, the SQL*Plus returns an error for user SCOTT when he tries to execute an INSERT statement.
    Note however, that this is enforced by SQL*Plus, not the database!
    Look into the use of product_user_profile from Oracle documentation for more information.
    SQL> insert into product_user_profile values('SQL*Plus', 'SCOTT', 'INSERT', NULL, NULL, 'DISABLED', NULL, NULL) ;
    1 row created.
    SQL> commit ;
    Commit complete.
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.3.0 - Production
    SQL>
    SQL> connect scott
    Enter password:
    Connected.
    SQL>
    SQL> insert into emp select * from emp ;
    SP2-0544: invalid command: insert
    SQL>
    SQL>

  • XML Insertion - Windows To Linux

    I have a JScript executable that parses an input file containing data in PVL format and uses the DOM to create an XML record, which the script then writes to an output file. The script, input and output files all reside on a local Windows XP machine with Internet Explorer 6.0.
    I need the script to insert the output file into a table that is defined against an XML schema. However, the 10.2 database resides on a Linux x86 box (OS is Red Hat Enterprise Linux Advanced Server), not the Windows client.
    The script can successfully connect to the database (thanks to ODBC) and it is successfully inserting non-XML data into other tables. However, for the XML file, I'm trying to use the following insert statement (the db table's name is AIP_XMLTYPE and the XML output file is type1_aip.xml):
    INSERT INTO AIP_XMLTYPE VALUES (XMLTYPE
    (BFILENAME('LOCAL_XMLDIR','type1_aip.xml'),
    nls_charset_id('AL32UTFS')));
    LOCAL_XMLDIR is a directory defined in the database for the local C drive where the XML file resides. (I suspect this is the problem. Does a defined directory have to be on the database server?) The error the script returns is
    [Oracle][ODBC][Ora]ORA-22288: file or LOB operation FILEOPEN failed. No such file or directory.
    When I manually upload the XML file onto the Linux server and execute the insert statement in SQL*Plus (using a defined directory on the server, of course, instead of LOCAL_XMLDIR), it is successful, so I don't believe there is an issue with how the XML schema is defined nor with the format of what's in the XML file.
    Is there another way I could insert the XML record? Is there another way to get the database to recognize the local directory? Could I have the script upload the XML file to the db server and then do the insertion?
    Any suggestion is appreciated.

    Hi,
    You may can get some ideas from the case posted at http://www.oraclepoint.com/topic.php?filename=98&extra=page%3D1
    Please register and then log in to get the case doc because it's only available for members.
    By the way, I don't think the cross-platform issue will impact the implemtment of XML loading to database. I do hope the case study above helps.

  • How to insert a record in to oracle table from Java which has a oracle LONG Field?

    The problem is only 80 char's inserted in to the LONG FIELD which happend to me when i run the same insert statement from SQL plus.
    Here is the code....
    java.io.File inputFile = new java.io.File("input.txt");
    int inputFileLen = (int) inputFile.length();
    java.io.InputStream ipStream = new java.io.FileInputStream(inputFile);
    System.out.println(inputFileLen);
    PreparedStatement myStmt = conn.prepareStatement("insert into LONG_EXAMPLE (notes,name)values(?,?)");
    myStmt.setAsciiStream(1, ipStream, inputFileLen);
    myStmt.setString(2,"Steve");
    int res = myStmt.executeUpdate();
    myStmt.close();
    Note : Here the size of the input.txt 250 bytes , 1KB.
    Thanks in advance......:-)
    Cheers,
    Vetri !

    Hien
    I had a similar requirement to you and put the code on a push button. In my case the reports are being run interactively to the screen and then printed, and I have no way to know whether the report had actually been printed, so we rely on the user pressing the button. Of course there is a danger that the user forgets to press the button, but in our situation that would not be disasterous. Whatever method is used, I don't think there is any way to be sure that it has actually come out of the printer.

  • Inserting Japanese Characters

    I am running Oracle 9.2 on a WIN2k m/c.
    I need to insert JAPANESE KANJI characters into my tables.
    1) Would like to know what are the setting required for the same.
    I would be pulling the data from remote SQL SERVER using OWB.
    Createad a SQL Server Transparent Gategway(tg4msql) to connect to the remote SQL Server.
    Current NLS Setting
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY     AMERICA
    NLS_CURRENCY     $
    NLS_ISO_CURRENCY     AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CALENDAR     GREGORIAN
    NLS_DATE_FORMAT     DD-MON-RR
    NLS_DATE_LANGUAGE     AMERICAN
    NLS_CHARACTERSET     AL32UTF8
    NLS_SORT     BINARY
    NLS_TIME_FORMAT     HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY     $
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_COMP     BINARY
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CONV_EXCP     FALSE
    2) How can i see/verify the inserted data using SQL-PLUS.
    Need your help in solving the same.
    TIA
    shankar

    Well I would assume that the first thing that is required is to run the db in utf8, which you are doing.
    So storing should be no problem. To display in SQL Plus I would suspect you need to set your NLS language to something that would "read" the utf8 character sets.
    I have not looked it up but I'm sure the RDBMS documentation will cover most of these topics extensively. Did you take a look at that doc set?
    Jean-Pierre

  • Insert a PDF?

    Post Author: MaCook
    CA Forum: Crystal Reports
    I want to know if it is possible to insert a pdf document into CR XI. I see there are other ways to get the image into the report but they are not as legible as I would like them to be. Any thoughts or suggestions on this is greatly appreciated.

    Post Author: MaCook
    CA Forum: Crystal Reports
    Okay, I inserted a bmp. Show's up fine in the preview in Crystal. Went to CMC and hit preview-received following error"
    Error
    The database logon information for this report is either incomplete or incorrect.

  • Insert missing expression error

    I am trying to insert data into sql plus and I keep getting this error. I am new at this and have no idea what I am doing wrong. Could someone please help!
    here is the table I am inserting:
    Name Null? Type
    MANUFACTURER_ID NOT NULL NUMBER
    M_NAME VARCHAR2(30)
    STREET VARCHAR2(30)
    CITY VARCHAR2(30)
    STATE VARCHAR2(20)
    COUNTRY VARCHAR2(30)
    WEBSITE VARCHAR2(50)
    EMAIL VARCHAR2(50)
    FAX VARCHAR2(15)
    I am inserting these values:
    SQL> insert into manufacturer values(9185247,rollinsonlightsportaircraft,route2box186, bloomfield_in_47424, In, US, 'www.eurofox-use.com','[email protected]', 8123840518);
    insert into manufacturer values(9185247,rollinsonlightsportaircraft,route2box186, bloomfield_in_47424, In, US, 'www.eurofox-use.com','[email protected]', 8123840518)
    ERROR at line 1:
    ORA-00936: missing expression
    I have been working on this forever and I am just not getting it. Please help!

    Now I am working on a different table and I am getting the error on a number attribute. Any ideas: here is the info.
    Name Null? Type
    DESIGN_ID NOT NULL NUMBER
    MANUFACTURER_ID NUMBER
    ENGINE_ID NUMBER
    DESIGN_NAME VARCHAR2(20)
    MAX_SPEED NUMBER
    CRUISE_SPEED NUMBER
    LD VARCHAR2(10)
    MINSINK NUMBER
    ASPECT_RATIO VARCHAR2(10)
    RANGE NUMBER
    CLIMB_RATE NUMBER
    TAKEOFF_D NUMBER
    LANDING_D NUMBER
    SERVICE_CEIL NUMBER
    EMPTY_WEIGHT NUMBER
    GROSS_WEIGHT NUMBER
    USEFUL_WEIGHT NUMBER
    HEIGHT NUMBER
    LENGTH NUMBER
    WINGSPAN NUMBER
    WINGAREA NUMBER
    FUEL_CAPACITY NUMBER
    WINGFOLD NUMBER
    GEAR VARCHAR2(30)
    HOUR_BUILD NUMBER
    BUILT VARCHAR2(20)
    INFO_PACKET VARCHAR2(10)
    COST_OF_PLANS NUMBER
    KIT_COST NUMBER
    QB_COST NUMBER
    PLAN_COST NUMBER
    LDA VARCHAR2(20)
    P_CURRENT NUMBER
    CABIN_WIDTH NUMBER
    QB_BUILDTIME VARCHAR2(20)
    BUILD_COSTLOW NUMBER
    BUILD_COSTHIGH NUMBER
    SEATS VARCHAR2(20)
    SQL> insert into plane values(20260,90300,148,'BushCaddy L162 Max',140,125,'',,'',720,1300,380,500,14000,1250,2650,1400,8,238,36,189,60,,'tailwheel',1200,'12','25',0,354030,0,'',1,47,'300',60000,110000,'2+2');
    insert into plane values(20260,90300,148,'BushCaddy L162 Max',140,125,'',,'',720,1300,380,500,14000,1250,2650,1400,8,238,36,189,60,,'tailwheel',1200,'12','25',0,354030,0,'',1,47,'300',60000,110000,'2+2')
    ERROR at line 1:
    ORA-00936: missing expression
    The * is falling under the cruise speed variable or minisink. but they are both number.

  • Usage Tracking - Cant perform insert operation inside a READ ONLY trans

    Hello,
    I have been experiencing the following error message when trying to install a row in our s_nq_acct table for USAGE TRACKING:
    [nQSError: 16001] ODBC error state: S1000 code: 1456 message: [Oracle][ODBC][Ora]ORA-01456: may not perform insert/delete/update operation inside a READ ONLY transaction.
    - I am able to manually insert rows via SQL*Plus whilst logged on as the same user as the Connection Pool
    - The Read Only option is not ticked for the ODBC
    Can anyone please help me with this?
    Thanks,
    Rhys

    Hi rnm1978,
    You were right!
    I was being a bit retarded and had to simply switch the call interface on the connection pool to use the OCI and ensure the dta source name was that of the TNS names entry and not the system DSN.

  • How to insert CLOB value through a procedure

    Hi,
    There is one clob field in a table. I have created the
    following procedure to insert values into the table.
    create or replace procedure temp_proc (col1 in number,
                   col2 in varchar2,
                        col3 in clob) is
    sql_stmt varchar2(500);
    begin
    sql_stmt := 'insert into temp_table values
    (:col1, :col2, :col3)';
    execute immediate sql_stmt using col1, col2, col3;
    end temp_proc;
    I could able to insert values into the table through INSERT
    statement from sql*plus. When I am executing the above procedure
    from sql*plus, getting the follwing error.
    BEGIN temp_proc(1,'fdsfds','hghgh'); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call
    to 'TEMP_PROC'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    If I change the datatype of third parameter in the above
    procedure to varchar2, it's working fine. But it should be a
    clob field because getting huge data from other application.
    Please let me know how to overcome this problem.
    Thank you.

    hi,
    In the CLOB column you can insert the data as inline if it's
    length is lessthan < 4000 bytes. if it it exceedes this will be
    stored as
    So change the column 3 as varchar2 in your procedure , then it
    will work. No need to change in your table.
    create or replace procedure temp_proc
    col1 in number,
    col2 in varchar2,
    col3 in varchar2
    ) is
    sql_stmt varchar2(500);
    begin
    sql_stmt := 'insert into temp_table values
    (:col1, :col2, :col3)';
    execute immediate sql_stmt using col1, col2, col3;
    end temp_proc;
    regards,
    khaleel

Maybe you are looking for