Oracle blob class problem

Hello again.
I have the following code:
java.sql.ResultSet resultSetForUpdate = stat.executeQuery("select picture from some_table where some_id=" + someId + " for update");
java.sql.Blob blob = resultSetForUpdate.getBlob(1);
// here is some code that types the class of the blob
logger.info("blob class is: "+blob.getClass());
now the problem is that the class returned with blob.getClass is different on 2 portals... on 1 portal I get oracle.sql.BLOB (this is the expected result) but on the other I get com.inqmy.services.dbpool.remote.RemoteBlobImpl
does anyone have any idea why this is happening and how can I do so that I always get the oracle.sql.BLOB class?
more information: both portal installations are ep6 sp2 with (I think) identical patch levels (35 if I remember correctly). the database they access is the same one. the dbpool definitions (in visual administrator) look similar.
thanks in advance.
silviu.

Thanks for taking the time to look at this.
No, it is the same driver on both servers. The driver is the oracle driver oracle.jdbc.OracleDriver provided by Oracle themselves.
This is not it...
Could there be some path problem? The server on which it works fine is a windows machine, whereas the server where it doesnt work is a solaris machine, I think (not windows for sure).
Message was edited by: Silviu Lipovan Oanca

Similar Messages

  • Oracle BLOB insert problem

    I'm getting a ClassCastException when I try to the blob I get from my CallableStatment. I've seen alot of post about similar issues with oracle 9 and inserting blobs but I havn't found a solution..
    Here is the few lines that Im doing..
    When I check to see what type of instance this blob is this is what I get in my debugger oracle.sql.BLOB@71d768
    so When I ((BLOB)blob).getBinaryOutputStream() I get the ClassCastException..
    I've tried to get the innermost delegate and a number of other things.. When I try to cast anything to the Oracle type I get the ClassCastException. When i do an instanceof on the blob it isn't an oracle Blob.. So why does the debugger and getClass().getName() tell me it is.. And is the any work around for this..
    Thanks
    Dan
    cstmt.registerOutParameter(6, OracleTypes.BLOB);
                 cstmt.execute();
                 Blob blob = cstmt.getBlob(6);
                           if(blob != null) {
                         writer = new ObjectOutputStream( ((BLOB)blob).getBinaryOutputStream());
                        if (writer != null) {
                        writer.writeObject(bean);
                          writer.flush();
                          writer.close();
                     con.commit();

    Yes, I modified some code that a collegue used in a standalone application.. His solution was using a CLOB.. I just modified my solution to use a CLOB instead of a BLOB(saving a bean as xml instead of the bean object)..
    So i litterally copied his code line for line.. And Im getting the same error. My app is running in tomcat whereas my collegue is using it in a standalon application. I just went thru all lib directories to make sure I only have one copy of the oracle ojdbc14.jar which is in the conf/lib directory of the tomcat server..
    I even moved my table from our oracle9 db to our oracle 10 db and still no luck..
    String beanToXml = xstream.toXML(bean);          
    cstmt.execute();
    oracle.sql.CLOB clob = ((OracleCallableStatement) cstmt).getCLOB(6)
                 if (clob != null) {
                     writer = ((CLOB) clob).getCharacterOutputStream();
                     if (writer != null) {
                       writer.write(beanToXml.toCharArray());
                       writer.flush();
                       writer.close();
                 }

  • Blob interface problem

    hi all,
    im facing an stylist problem when inserting blob into oracle dbms. im trying in a very simple way like this :
    stmt.executeUpdate("insert into picture values('sample1.gif',empty_blob())");
    ResultSet rs= stmt.executeQuery("select * from picture where name='sample1.gif' for update");
              rs.next();
              oracle.sql.BLOB blob=(oracle.sql.BLOB)rs.getBlob(2);
              FileInputStream in= new FileInputStream(filename);
              OutputStream os=blob.getBinaryOutputStream();
              int data;
              while((data=in.read())!=-1){
                             os.write(data);
         in.close();
         os.close();
    this code is ok but i have an allergy about standerizing my coding so im trying to use the following code :
    stmt.executeUpdate("insert into picture values('sample1.gif',empty_blob())");
    ResultSet rs= stmt.executeQuery("select * from picture where name='sample1.gif' for update");
              rs.next();
              java.sql.Blob blob=rs.getBlob(2);
              FileInputStream in= new FileInputStream(filename);
              OutputStream os=blob.setBinaryStream(1);
              int data;
              while((data=in.read())!=-1){
                             os.write(data);
         in.close();
         os.close();
    but the problem is setBinaryStream(int pos) is not implemented by oracle.sql.BLOB class. my oracle version is 9.0.1.0.1. when i run it,it shows an exception like abtract method error. is there any way not to use the oracle.sql.BLOB for inserting blob into oracle database ?

    I can't give a definitive answer but I've observed the same problem.
    The ability to get an outputstream to a Clob was only introduced in JDBC 3.0.
    Chapter 5 of Oracle's JDBC Developer's Guide and Reference http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96654/jdbc30ov.htm#1004903 mentions that only some JDBC 3.0 features are implemented; none of the mentioned features include the API calls for streaming to a Clob.
    T

  • (WLS 7.x) Oracle BLOB.createTemporary

    I would like to call the Oracle extensions to create a temporary Blob, however,
    I'm unable to get to the native Oracle driver. I have the Oracle driver in my
    system classpath before webLogic.jar as recommended in other posts, but I'm unable
    to get to the oracle connection class as required by the createTemporary method.
    Is this possible in WLS 7.x?
    TIA

    Doug Walker wrote:
    Wow Joe! That was a fast reply! :-)no problem. They just happened to pay me last week ;-)
    We want you successful.
    Joe
    >
    Joe Weinstein <[email protected]> wrote:
    Doug Walker wrote:
    I would like to call the Oracle extensions to create a temporary Blob,however,
    I'm unable to get to the native Oracle driver. I have the Oracle driverin my
    system classpath before webLogic.jar as recommended in other posts,but I'm unable
    to get to the oracle connection class as required by the createTemporarymethod.
    Is this possible in WLS 7.x?Yes. 7.0sp3 and later... See the docs on getVendorConnection().
    Joe
    TIA

  • Oracle error ORA-01461when trying to insert into an ORACLE BLOB field

    I am getting Oracle error ‘ORA-01461: can bind a LONG value only  for insert into a LONG column' when trying to insert into an ORACLE BLOB field. The error occurs when trying to insert a large BLOB (JPG), but does not occur when inserting a small (<1K) picture BLOB.(JPG). Any ideas?
    BTW, when using a SQL Server datasource using the same code.... everything works with no problems.
    ORACLE version is 11.2.0.1
    The ORACLE datasource is JDBC using Oracle's JDBC driver ojdbc6.jar v11.2.0.1 (I also have tried ojdbc5.jar v11.2.0.1; ojdbc5.jar v11.2.0.4; and ojdbc6.jar v11.2.0.4 with the same error result.)
    Here is my code:
    <cfset file_mime = Lcase(Right(postedXMLRoot.objname.XmlText, 3))>
    <cfif file_mime EQ 'jpg'><cfset file_mime = 'jpeg'></cfif>
    <cfset file_mime = 'data:image/' & file_mime & ';base64,'>
    <cfset image64 = ImageReadBase64("#file_mime##postedXMLRoot.objbase64.XmlText#")>
    <cfset ramfile = "ram://" & postedXMLRoot.objname.XmlText>
    <cfimage action="write" source="#image64#" destination="#ramfile#" overwrite="true">
    <cffile action="readbinary" file="#ramfile#" variable="image_bin">
    <cffile action="delete" file="#ramfile#">
    <cfquery name="InsertImage" datasource="#datasource#">
    INSERT INTO test_images
    image_blob
    SELECT
    <cfqueryparam value="#image_bin#" cfsqltype="CF_SQL_BLOB">
    FROM          dual
    </cfquery>

    Can't you use "alter index <shema.spatial_index_name> rebuild ONLINE" ? Thanks. I could switch to "rebuild ONLINE" and see if that helps. Are there any potential adverse effects going forward, e.g. significantly longer rebuild than not using the ONLINE keyword, etc? Also wondering if spatial index operations (index type = DOMAIN) obey all the typical things you'd expect with "regular" indexes, e.g. B-TREE, etc.

  • JDBC Receiver Adapter and Oracle BLOB

    Hi,
    I would like to put some raw data into an ORACLE BLOB using XI. My idea was to put the data in an xml element, but the JDBC sender adapter doesn't seem to be able to cope with writing. Has anybody gathered experiences regarding this topic?
    Kind regards,
    Heiko

    Hi,
    The error saying it is unable to connect to the Database, so it may be the drivers problem. once check the drivers and its syntaxes.
    Syntax :
    http://www.devx.com/tips/tip/28818
    For Download and configure the drivers :
    http://www.aquafold.com/docs-jdbcdrivers-oracle10g.html
    http://www.oxygenxml.com/database_drivers.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f

  • Can I use oracle blob by CMP bean in weblogic 6?

    I use weblogic 6.1(sp3) and Jbuilder 7.when I try to use oracle blob by CMP bean,the
    errors are:
    javax.ejb.FinderException: Exception raised in findByPrimaryKey
    java.io.StreamCorruptedException: InputStream does not contain a serialized object
    What should I do?Is there examples about using oracle blob?
    thanks a lot!

    Great! So what was the problem?
    Regards,
    Slava Imeshev
    "Roger Lee" <[email protected]> wrote in message
    news:[email protected]...
    >
    Finally got it working with CMP, which is my preferred choice (over BMP).
    I read the Excel Spreadsheet into a "byte []" array, and the Entity Beanmapped
    "byte []" to the Blob column in the Oracle table.
    "Slava Imeshev" <[email protected]> wrote:
    Roger,
    I'm not quite sure I undestand the problem. Could you:
    1. Post deployment descriptors in part related to this
    CMP bean?
    2. Post the piece of code that is failing?
    Please post the information above and we will help
    you to hunt the problem down.
    No, I don't have any problems accessing blobs
    from CMP.
    Regards,
    Slava Imeshev
    "Roger Lee" <[email protected]> wrote in message
    news:[email protected]...
    Yes. I have added;
    <dbms_column-type>OracleBlob</dbms-column-type>
    It fails because the locater to the blob, obtained by findBYPrimaryKeyis
    null.
    i.e. an empty_blob() is not created.
    Have you got CMP to access Blobs in WLS 6.1?
    "Slava Imeshev" <[email protected]> wrote:
    Hi Roger,
    Have you tried using OracleBlob as dbms-column-type?
    Also, could you post that part of your code that is failing?
    Regards,
    Slava Imeshev
    "Roger Lee" <[email protected]> wrote in message
    news:[email protected]...
    I can access Clobs using CMP. If you are using the Oracle OCI Driveryou
    do not
    need to add this line.
    However if you are using the Oracle Type 4 Thin drivers you need
    to
    add;
    <dbms_column-type>OracleClob</dbms-column-type>
    to the file;
    weblogic-cmp-rdbms-jar-xml
    This DOES NOT work with Blobs.
    I am unable to get WebLogic 6.1 sp4 persist a Blob to an Oracle
    8.1.x
    table and
    retrieve it using either CMP or BMP.
    Unless any one show me a complete working CMP and BMP example?
    Roger Lee
    Deepak Vohra <[email protected]> wrote:
    BLOB and CLOB DBMS Column Support for the Oracle DBMS
    http://edocs.bea.com/wls/docs61/ejb/cmp.html#1061636
    shybird wrote:
    I use weblogic 6.1(sp3) and Jbuilder 7.when I try to use oracle
    blob
    by CMP bean,the
    errors are:
    javax.ejb.FinderException: Exception raised in findByPrimaryKey
    java.io.StreamCorruptedException: InputStream does not contain
    a
    serialized
    object
    What should I do?Is there examples about using oracle blob?
    thanks a lot!

  • Oracle BLOB value to a LC variable

    Hello,
    Is it possible in LC ES2 to coerce oracle blob value to some livecycle variable ?
    When mapping sql query result (column of type BLOB) to a LC variable (of type Document), we receive:
    com.adobe.workflow.datatype.InvalidCoercionException: Cannot coerce object: oracle.sql.BLOB@27e7d6 of type: oracle.sql.BLOB to type: com.adobe.idp.Document
    We have tried mapping to string, binary, Document (, we even desperately hardcoded sql.oracle.BLOB to process XML), but none of this works.
    Is it possible to solve this other way, then following ?
    http://groups.google.com/group/livecycle/browse_thread/thread/6c4b9156b52b71a7
    Thanks.

    My idea is to fetch the BLOB column data as UTF8 (base64) encoded string and then use getDocumentFromBase64 available in ES2.
    I am not sure what syntax is to fetch from ORACLE.
    I have used MySql database and the query is:
    SELECT CONVERT(Blob_Column USING UTF8) as MyBlobDataAsBase64Str FROM myTableName;
    Now using SetValue activity to look like:   myXMLvariable = getDocumentFromBase64(strVariableHoldingBase64Data)
    This case works perfectly without any issues.
    The problems is you should find out the appropriate syntax for ORACLE.
    I was searching about CONVERT() & UNISTR() functions. But i'm unable to evaluate.
    Try by yourself..
    Nith

  • Store pdf in oracle  BLOB  hibernate

    I need to store PDF files in the oracle BLOB using hibernate. I am using the below code and getting a null pointer. Any thoughts?
    Blob blob=null;
    byte [] bFile = (byte[])objVal;
    blob.setBytes(0,bFile); //null pointer here...
    logger.info("EventsDAO- insertDetails- else:--"+((byte[])objVal)+"---blob----"+blob);
    hmForm.put(objKey,blob); Thanks in advance.

    Samples? Are you asking how to make a blob? I have my doubts about the wisdom of using Hibernate if you can't diagnose a NPE unless that was just momentary code snow-blindness, but whatever, it's your problem:
    Either call Hibernate.createBlob(InputStream,long) or just map the field as a byte[] and map it to a Blob type.
    Edited by: dcminter on 09-Jun-2008 22:22

  • Oracle Blob Display Error

    Environment : Using Oracle Forms 6i (Currently on Patch 6.0.8.16) and Oracle
    10g.
    Problem : Error “Ora-00932 Inconsistent Data Types” when displaying a
    blob from a database table using Oracle 10g.
    Problem Description :
    Currently in the existing application we have Oracle Forms 6i with Oracle
    database version 8i.
    There are no errors while displaying a blob (image) from the database table on my Oracle form. Upgraded to Oracle 10g but with the existing version of Oracle Forms we cannot display the blob in the Forms.If I remove the blob display from the form everything else on the form works fine.
    Tried to update the Oracle Forms to version 6.0.8.16 using Patch 7 but it did not resolve the problem.
    Tried to go through the bug fixes in the recent Forms version upgrade released by Oracle but did not see anything related to problem with blob display using Oracle 10g.
    Did anyone else in the group faced the same problem?
    What patch level resolved the problem?
    Any ideas?
    thanks and regards.

    See
    Forms 6i - display into image item picture stored in blob type on database
    problem with images in forms 6i

  • Image from Oracle BLOB is not showing

    Hi all!
    Im trying to use this code:
    <?php
    //... etc
    $sql = oci_parse($c, 'select * from pf2.documents ');
    oci_execute($sql);
    echo "<table width = 200 border = 1 cellspacing=0 cellpadding=0>";
    while ($row = oci_fetch_assoc($sql)) {
    echo "<tr>";
    echo"<td style=background-color:#DDDEEE; align=center>";
    echo $row['SHORTNAME'] ;
    echo"</td>";
    echo"<td style=background-color:#DDDEEE; align=center>";
    print $row['FILENAME'] ->load();
    echo"</td>";
    echo "</tr>";
    echo "</table>";
    //... etc
    ?>
    Here im trying to select and publish an image from Oracle BLOB,
    but in Mozilla Firefox im getting just whong text:
    яШяа�JFIF��`�`��яЫ�C� $.' ",#(7),01444'9=82<.342яЫ�C 2!!22222222222222222222222222222222222222222222222222яА�МЂ"�яД����������� яД�µ���}�!1AQa"q2Ѓ‘Ў#B±БRСр$3br‚ %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzѓ„…†‡€‰Љ’“”•–—�™љўЈ¤Ґ¦§Ё©ЄІіґµ¶·ё№єВГДЕЖЗИЙКТУФХЦЧШЩЪбвгдежзийкстуфхцчшщъяД�������� яД�µ��w�!1AQaq"2ЃB‘Ў±Б #3RрbrС $4б%с
    Please help!
    P.S.: Im using PHP 5.2.10 under Wintel platform,
    Oracle 9.2.0.4,
    create table DOCUMENTS
    DOCID NUMBER(10) not null,
    SHORTNAME VARCHAR2(30) not null,
    FULLNAME VARCHAR2(250) not null,
    FILENAME BLOB not null,
    AUTHOR VARCHAR2(30) not null,
    CREATIONDT DATE not null,
    VERSION VARCHAR2(10) not null
    Edited by: user502299 on 28.09.2009 5:33

    I am having a similiar problem. I have created the image.php file:
    <?
    $query = "select a.image_file FROM officer_image a, officer_info b where a.officer_id=b.officer_id and b.officer_lname like 'LEDEZ%' ";
    $stmt = @OCIParse ($db_conn, $query);
    @OCIExecute($stmt, OCI_DEFAULT);
    @OCIFetchInto($stmt, $arr, OCI_ASSOC+OCI_RETURN_LOBS);
    $result = $arr['BLOB'];
    @OCIFreeStatement($stmt);
    @OCILogoff($conn);
    $im = @imagecreatefromstring ($result);
    if (!$im) {
    $im = imagecreate(150, 30);
    $bgc = imagecolorallocate($im, 255, 255, 255);
    $tc = imagecolorallocate($im, 0, 0, 0);
    imagefilledrectangle($im, 0, 0, 150, 30, $bgc);
    imagestring($im, 1, 5, 5, "", $tc);
    Header("Content-type: image/jpeg");
    Header("Content-Disposition: attachment; filename=filename_".uniqid(time()).".jpg");
    imagejpeg($im,'',100);
    imagedestroy($im);
    ?>
    And then in the actual search web page:
    <?php
              $tname = $_POST['lname'];
              $lname = "{$tname}%";
              $id = "1";
              //$query = "SELECT officer_id, image_file FROM officer_image WHERE ID='.$id.'";
              $query = "select a.image_file FROM officer_image a, officer_info b where a.officer_id=b.officer_id and b.officer_lname like 'LEDEZ%' ";
              //oci_bind_by_name($sql, ":bv", $lname);
              //oci_execute($sql);
              $stid = OCIParse($conn,$query);
              Header("content-type:image/jpeg");
              OCIExecute($stid, OCI_DEFAULT);
              while($succ= OCIFetchInto($stid,$row)) {
                   foreach($row as $item) {
         $blob_message = $item->load();
                   // Output the image
              //imagejpeg($blob_message);
              echo $blob_message . " " ;
              //echo "<img src="image.php?id='.$blob_message.'" border="0">. $rows['officer_id']."\">\n";
              echo "<br /><br />";
                   // Free up memory
              //imagedestroy($im);
              //while ($row = oci_fetch_assoc($sql))
    ?>
    Can anyone help?

  • PDF binary variable won't save in Oracle blob

    I am reading in a small, legitimate PDF as a binary variable and them immediately saving that variable into a blob. But the blob doesn't store the data.
    <cffile action="readbinary" file="C:\Test_Files\test.pdf" variable="testdoc">
    now shows isbinary(testdoc) = YES
    In fact, I can output to the screen using cfcontent, and it displays fine.
    But if I try to save the testdoc variable to an Oracle blob, CF seems to think it is trying to insert an empty variable.
    <cfquery name="ins" datasource="#request.a_datasource#">
    INSERT
    INTO PROD_WCT.T_DOCS (
    PDF_BLOB
    VALUES (
    <cfqueryparam value="#testdoc#" cfsqltype="CF_SQL_BLOB">
    Now if I retrieve that row (query name=”get_pdf”) and check the value, it appears empty:
    now shows isbinary(get_pdf.pdf_blob) = NO
    Nothing is done in betweent the cffile and the insert. Any ideas?

    Just an update here to note that this problem has not yet been resolved.
    This could be in incompatibility between Oracle 10g BLOBs and Coldfusion 8.
    To review, my BLOB setting in CFADMIN is enabled. To make this as simple and possible, I created a PDF from the words "Test text," so the PDF document can't get much smaller. The PDF does save to the BLOB, because in TOAD I can save the BLOB contents to a file and view it as a PDF just fine. It's when I retrieve the record in CF8 where the trouble arises. Coldfusion 8 doesn't get anything from the BLOB. It has a zero length, and isbinary = NO. We are using Oracle 10g. And using CF8. My understanding is that an Oracle blob uses pointers to locate the blob data in an area external to the database. Apparently, Coldfusion cannot retrieve the data. The process worked for the first few records when retrieving a blob and displaying it with cfcontent, but after a few records it can no longer retrieve the subsequent blob records. It just abruptly fails at that point. But again, the PDF binary data is there in TOAD.
    Could this be a bug or incompatibility with Oracle 10g? We are a state government, and it sure would help if the Adobe people could give come help here.
    Thanks in advance for any thoughts.

  • Oracle & BLOB/LONG RAW

    Hi everybody,
    I need to store binary data (> 32K) in an oracle BLOB field, respectivly commit the data to an oracle PL/SQL stored procedure.
    First I tried to use LONG RAW, but failed to commit more than 32K of data. This seems to be a documented problem, you can store 2GBs in an LONG RAW field, but PL/SQL can only store 32K in an LONG RAW variable.
    Then I tried to switch from LONG RAW to BLOB (both the field in the table and the in variable in the stored procedure) but it seems to be very complicated to use BLOB fields with JDBC.
    I've found example for a plain INSERT. First execute an INSERT with an empty BLOB, then make an SELECT FOR UPDATE on the row, obtain the reference to the BLOB-Object, alter the BLOB-Object and create an UPDATE-Statement with it.
    I've not tried this yet, but according to various web sites it should work.
    The problem is, that it does not solves the problem how to commit a BLOB value to a PL/SQL stored procedure.
    Does anyone knows a solution?
    Thx and regards,
    Robert

    Hi,
    thx for your answer.
    That's the solution I described (INSERT, SELECT, UPDATE) and only works with Statements.
    But I think I've already found a mistake of mine, I have to try this today.
    I already succeeded in creating a BLOB-Object without obtaining it from a resultset, the constructor is not documented but it exists, it looks like BLOB( OracleConnection, byte[] ).
    I think I can commit the BLOB to the stored procedure but it won't be a valid BLOB locator.
    What I've not tried yet and what I think migth be the solution is creating the valid BLOB locator inside the stored procedure using the PL/SQL BLOB methods.
    Sounds simple but for some reasons I have not thougth about it yet. :-)
    I'll report the result here if somebody else is interested in the issue. :o)
    Thx and regards,
    Robert

  • Oracle 10g forms problem

    hi
    can any body help me?
    i have installed oracle developer 10g with oracle 8i database
    when i run any form including the test.fmx
    it always ask to install JInitiator although it has been installed (appears in the control panel and in c:\program file\oracle folder)
    another problem appears after completing the installtion of JInitiator
    the browser views the HTML tags of the form not execute it
    so does any body have any idea???

    From the Windows Start menu, choose Run, type regedit, and click OK.
    Expand the registry nodes HKEY_LOCAL_MACHINE > SOFTWARE > ORACLE.
    Make a backup copy of this key by right-clicking it and selecting Export from the context menu.
    Select one of the HOME nodes beneath the ORACLE node (the one for Developer Suite). Ensure that you have opened the correct node by verifying that the key FORMS90_PATH exists in that node.
    From the Registry Editor menu, select Edit > New > String Value. Type in the name FORMS90_HIDE_OBR_PARAMS.
    Double-click FORMS90_HIDE_OBR_PARAMS and in the Value data field enter false, then click OK.
    Close the registry editor.
    Now when you run a form from Forms Builder, it should show parameters, including userid, in the URL, but it should run fine.
    15. Set the path for Forms Builder to locate icons:
    a) Double-click the UI_ICON key to open it for editing.
    b) For the value data, append the path to the .gif file that you will use for the
    button icon, which is the \icons subdirectory of your lab directory. Separate this
    path from the remainder of the string with a semicolon; for example:
    ;e:\labs\lab\icons, then click OK.

  • Oracle Report Printing problem

    Dear All,
    i m using below code on button in oracle forms 6i problem is that when i click on button report should be print
    on network printer but it's print blank page however network printer is not my default printer when i set default printer
    to this network printer its working fine.
    and also its working when i set mode=character and network printer is not default printer but when i set mode=default or bitmap and notwork printer is not default then its print blank page.
         DECLARE
              p_list     PARAMLIST;
         BEGIN
         p_list := get_parameter_list('importdata');
         IF NOT Id_Null(p_list) THEN
    Destroy_Parameter_List('importdata');
         END IF;
              p_list := Create_Parameter_List('importdata');
              Add_Parameter(p_list,'P_IGM_NO',TEXT_PARAMETER,'10117/11');
              Add_Parameter(p_list,'P_INDEX_NO',TEXT_PARAMETER,'498');
              Add_Parameter(p_list,'P_CHR_NO',TEXT_PARAMETER,'CL-APL100/011');
              Add_Parameter(p_list,'P_CONTAINER_NO',TEXT_PARAMETER,'APHU6305929');
              Add_Parameter(p_list,'P_USER',TEXT_PARAMETER,'ALI');
              Add_Parameter(p_list,'P_BAL_QTY',TEXT_PARAMETER,0);
              Add_Parameter(p_list, 'PARAMFORM', TEXT_PARAMETER, 'NO');
              Add_Parameter(p_list,'DESTYPE',TEXT_PARAMETER,'PRINTER');
         Add_Parameter(p_list,'DESNAME',TEXT_PARAMETER,'\\192.168.1.67\epson');
         RUN_PRODUCT(REPORTS,'\\ORASERV\Atlas6I\Import\System\Reports\abc.rep',
         SYNCHRONOUS,
         RUNTIME,
         FILESYSTEM,
         p_list,
         NULL);
         END;

    i have made one oracle 6i reports. its is quite wide.when i run the report it shrink into too small font.
    and i increse it font size it by pressing + button on menu bar it looks okay.
    >
    The + button only causes a zoom in on the screen. It is not affecting the actual layout.
    >
    but the problem is that when i take print out of it ,it's printout comes in its intial format(in small font) evenif i choose different type of paper size or different orientation . it's printout is coming in too small font.
    pl tell me how to overcome this problem>
    The report rendering engine tries to fit the report page into the physical page size. This results in shrinking of font size,etc.
    To fix
    a) reduce the content on the report to something reasonable for printing.(Std paper sizes and orientation)
    b) change the page size selection. Of course, you will need a printer and paper of the size you set.
    Cheers,

Maybe you are looking for

  • ATI Radeon 9550 (no) accelerating

    Hi. I'm not able to enable acceleration with my Radeon 9550 (R350) card (open driver). Direct rendering seems to be enabled: direct rendering: Yes But: OpenGL vendor string: Mesa Project OpenGL renderer string: Software Rasterizer OpenGL version stri

  • Facetime fails to connect

    I am trying to FaceTime with my daughter in Sweden. I am using OS 10.9.4 on a MacBook Pro with Facetime 3.0. She is using an iPad mini with the current software. The query initally goes through and says "connecting" then fails to connect. I have chec

  • Preview crashes when I try to print

    Preview crashes when I try to print.  Problem existed with Lion and continues with mountain lion.  Says there is an error from EF 11895 (FF) plug-in.  What is that?

  • Why we need live cache along with RDB in APO

    Hello Expert, I recently entered to APO module so want to know about live cache and why we really need comparing to RDB and what RDB cannot do that live cache can do?

  • Combining projects

    Hi folks, This is not a specific PRE 8.0 question, but does anyone have suggestions on how to combine projects? Sometimes I would like to make a compllation of various projects for a friend and burn it to a DVD. Is there an opiton to combine projcect