Display blob field  on pdf  with pl_fpdf

Hi All,
I wish I could use some method to output PDF from the PL/SQL. I already have a document (image stored as BLOB). Now, I need to output this image in PDF. I know doing this outside database is easy and advisable.
When I use pl_fpdf with image from url it work fine but when i want to display the image from blob I have this error:
ORA-20100: <B>PL_FPDF error: </B>image : ORA-20100: <B>PL_FPDF error: </B>p_parseImage : ORA-20100: <B>PL_FPDF error: </B>pl_fpdf.getImageFromUrl :ORA-31001: Invalid resource handle or path name "https://intranet.momentumtechnologies.ca/pls/prod_intranet/MOM_HTMLDB.PRC_AFFCH_IMAGE_DIVSN?P_IDE_DIVSN=0", image :https://intranet.momentumtechnologies.ca/pls/prod_intranet/MOM_HTMLDB.PRC_AFFCH_IMAGE_DIVSN?P_IDE_DIVSN=0
+     Erreur      Echec impression+
I run this using Oracle APEX
Database: Oracle 9.2 running in Windows server.
Thanks in advance.
hakim

Hi, thanks for replay; I use the package : PL_FPDF it is a free product and it work fine
but when I give an other url it work, and I have the image in my PDF.
I have the 02 examples to explain this situation.
declare
img varchar2(255);
Begin
img:='http://www.lcw-design.com/jpgAutoc/sigle1.jpg'; I display it in my browser it is public
pl_fpdf.image (img ,30,35,225,150,'JPEG'); --it works
end;
succes
Begin
img:='https://intranet.momentumtechnologies.ca/pls/prod_intranet/MOM_HTMLDB.PRC_AFFCH_IMAGE_DIVSN?P_IDE_DIVSN=0'; I display it in my browser it is public
pl_fodf.image (img ,30,35,225,150,'JPEG'); --it does not work works
end;
not succes;
ORA-20100: <B>PL_FPDF error: </B>image : ORA-20100: <B>PL_FPDF error: </B>p_parseImage : ORA-20100: <B>PL_FPDF error: </B>pl_fpdf.getImageFromUrl :Je suis ici pour vousORA-31001: Invalid resource handle or path name "https://intranet.momentumtechnologies.ca/pls/prod_intranet/MOM_HTMLDB.PRC_AFFCH_IMAGE_DIVSN?P_IDE_DIVSN=0", image :https://intranet.momentumtechnologies.ca/pls/prod_intranet/MOM_HTMLDB.PRC_AFFCH_IMAGE_DIVSN?P_IDE_DIVSN=0*

Similar Messages

  • In reports, i want to display currency field out put with diff currencies

    Hi all
    in reports, i want to display currency field out put with different type of currencies like 1st record in rupees 2nd record in dolors 3rd record in       
    Euros. for this i should not use any tables and any currency fields and any functional modules. pls give replay urgently.

    Hi swamy,
    so sorry, but you have to use some of the objects you do not want to:
    Currency values in ABAP are stored in currency fields (type CURR). If they are stored in structures or database, every CURR field must be connected to a CUKY field (currency key).
    Displaying data using WRITE statement four output on a list is obsolete technique, you may use the use WRITE with the option CURRENCY c to format according to currency c in table TCURX.
    SAP recommends to use ALV technique. If you use ALV to display structure data, then create a dictionary structure with currency value and currency key. The rest goes automatically.
    Believe me: It is much easier and more reliable.
    Regards,
    Clemens

  • Display blob content as pdf file

    Dear Expert,
    Currently i'm using oracle apex 3.0.1.
    I'm having a problem on displaying blob content (from database table) as pdf file on oracle application express but i'm able to save to download the pdf.
    Below is the procedure that i used to display blob content,
    PROCEDURE lf_html_pdf (pv_image IN VARCHAR2, pv_index IN NUMBER) is
    l_mime VARCHAR2 (255);
    l_length NUMBER;
    l_file_name VARCHAR2 (2000);
    lob_loc BLOB;
    BEGIN
    begin
    selecT OI_BLOB,DBMS_LOB.getlength (OI_BLOB)
    into lob_loc,l_length
    from ord_img
    where oi_tno= pv_image
    and oi_ti='PDF'
    and oi_idx=pv_index;
    exception
    when others then
    null;
    end;
    OWA_UTIL.mime_header (NVL (l_mime, 'application/pdf'), FALSE);
    HTP.p ('Content-length: ' || l_length);
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (lob_loc);
    END lf_html_pdf;
    I get the error message as below when i execute the procedure above;
    Error report:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 356
    ORA-06512: at "SYS.OWA_UTIL", line 415
    ORA-06512: at "HCLABPRO.PKG_PDF", line 220
    ORA-06512: at line 2
    *06502. 00000 - "PL/SQL: numeric or value error%s"*
    I'm appreciated if expert can have me on the problem above?
    Thanks
    From junior

    *Always post code wrapped in <a href=http://wikis.sun.com/display/Forums/Forums+FAQ#ForumsFAQ-Arethereanyusefulformattingoptionsnotshownonthesidebar?"><tt>\...\</tt> tags</a>:*
      PROCEDURE lf_html_pdf (pv_image IN VARCHAR2, pv_index IN NUMBER) is
         l_mime        VARCHAR2 (255);
         l_length      NUMBER;
         l_file_name   VARCHAR2 (2000);
         lob_loc       BLOB;
      BEGIN
          begin
            selecT OI_BLOB,DBMS_LOB.getlength (OI_BLOB)
            into lob_loc,l_length
            from ord_img
            where  oi_tno= pv_image
              and oi_ti='PDF'
              and oi_idx=pv_index;
          exception
                when others then
                null;
            end;
         OWA_UTIL.mime_header (NVL (l_mime, 'application/pdf'), FALSE);
         HTP.p ('Content-length: ' || l_length);
         OWA_UTIL.http_header_close;
         WPG_DOCLOAD.download_file (lob_loc);
      END lf_html_pdf; Start by getting rid of:
          exception
                when others then
                null;and never using it anywhere ever again.
    If you're not actually going to use the <tt>l_mime</tt> and <tt>l_file_name</tt> variables then remove these as well. (Although I really think you should set a filename.)
    >
    Error report:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 356
    ORA-06512: at "SYS.OWA_UTIL", line 415
    ORA-06512: at "HCLABPRO.PKG_PDF", line 220
    ORA-06512: at line 2
    06502. 00000 - "PL/SQL: numeric or value error%s"
    >
    The error stack indicates that the exception is being raised in <tt>HCLABPRO.PKG_PDF</tt>: what is <tt>HCLABPRO.PKG_PDF</tt>? Does this actually have anything to do with the procedure above?
    I get the error message as below when i execute the procedure above;How do you execute it?
    What happens when it's executed without the <tt>when others...</tt> built-in bug?

  • Display blob field image in Oracle Express

    Hi,
    I upgraded the apex in my Oracle express edition to 3.2 and tried to display image in blob field following the step in the Apex tutorial,
    but the error '*The requested operation is not allowed* ' prompt.
    I save the image file in a table with fields mime1,picture1=> blob field.
    I created a problem as follow:
    CREATE OR REPLACE PROCEDURE download_my_file(p_hotel_id in number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
    --execute immediate
    --'SELECT MIME_TYPE'||to_char(p_picture)||', picture'||to_char(p_picture)||', '||to_char(p_picture)||',DBMS_LOB.GETLENGTH(blob_content) '||
    --'INTO v_mime,lob_loc,v_file_name,v_length FROM hotels_pic '||
    --'WHERE hotel_id = '||to_char(p_hotel_id);
    select mime_type1,picture1,'test/picture1',DBMS_LOB.GETLENGTH(picture1)
    INTO v_mime,lob_loc,v_file_name,v_length
    from hotels_pic where hotel_id=1;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(v_mime,'application/octet'),FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment;
    filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end download_my_file;
    GRANT EXECUTE ON download_my_file TO apex_PUBLIC_user;
    GRANT EXECUTE ON download_my_file TO public;
    I tried display the image by using <img src="#OWNER#.download_my_file?p_hotel_id=1" height=60 width=40 /img>
    But the image don't display...
    if I type http://127.0.0.1:8080/apex/HOTEL.download_my_file?p_hotel_id=1 to display the picture , the error " Forbidden,The requested operation is not allowed" prompt.
    Am I miss out anything? Anyone can help?
    Thanks
    Vincent

    Hi,
    I use a slightly difference code to display images: [http://apex.oracle.com/pls/otn/f?p=267:11]
    It is possible that your GRANT command needs to be for PUBLIC instead of public - some things are case-sensitive.
    Also, have you checked in SQL Workshop, Object Browser, Procedures to see if your procedure is valid?
    Andy

  • Error when displaying a field on Screen with Table Control

    Hi,
    It is going to 'Dump' when I am trying to display data on the screen with the help of Table Control. From the dump, What I have observed is , there is a field 'ZTSV_FSRDATA-ANZFEHLER'. If this field has negative value, then it is going to 'Dump' saying that the length is not enough. If it has a positive value then it is working fine. But the type of the field in the Internal table & on the screen are same.
    Please help me to resolve this error.
    I am posting here the Dump message also:
    A conversion error occurred while the program was trying todisplay data on the screen.
    The ABAP output field and the screen field may not have the same format.
    Some field types require more characters on the screen thanin the ABAP program. For example, a date field on a screen needstwo characters more than it would in the program. When attempting to display the date on the screen, an error will occur that triggers the error message.
    Thanks,
    Sreenivas Reddy Maddi.

    Hi Sreenivas,
       Refer this thread:
    how to display negative values in a screen field of a screen
    Re: negative values not allowed
    Regards,
    Sampath

  • Can a display image field be changed with javascript

    I have a select list (P3_RECON_CONDITION). when it changes It triggers javascript..
    in that javascript I would like it to change a Display Image field (P3_RECON_COLOR) without having to refresh the whole page..
    P3_RECON_COLOR is a Display image filed that gets its image from a blob from SQL:
    select color from projstat.condition_color, projstat.project where condition_color.condition = nvl(:P3_RECON_CONDITION,'W') and project.job_piece = :P3_JOB_PIECE
    the display field works now, but only for what the P3_RECON_CONDITION is when the page is loaded..

    yes, I tried that, but couldn't figure out how to do the: " dynamic action refresh the item P3_RECON_COLOR"
    I have
    Event: Change
    Selection Type: Item
    Item: P3_RECON_CONDITION (the select list)
    no condition
    TRUE ACTION: Refresh
    Fire when True:
    Selection Type: Item
    Item: P3_RECON_COLOR (the display image)
    (if I change the action to submit page.. it does fire.. but the refresh item does nothing..)

  • Field-Help (PDF) with right click

    Hi. I would like to use the right click menu in WDA to open a pdf-file which is in the mime repository. This should work on field level, so when I switch to another field another pdf should be opened. It is okay if it's rather quick and dirty - thanks for any idea in advance.

    Hi,
    I think you should do it via one of the following <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/44/336208da18060be10000000a155369/frameset.htm">methods</a>
    grtz,
    Koen

  • Display BLOB objects (doc, pdf, jpg, etc) in Browser

    Hello.
    I need help retrieving BLOBs from my DB and displaying them on a browser using Java (or JSP). The BLOB can contain any types of file form (such as pdf, doc, xls, jpeg,etc).
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by LP:
    Hello.
    I need help retrieving BLOBs from my DB and displaying them on a browser using Java (or JSP). The BLOB can contain any types of file form (such as pdf, doc, xls, jpeg,etc).
    <HR></BLOCKQUOTE>
    null

  • How to display repeating fields on PDF template?

    I'm having trouble printing repeating fields on a PDF. I followed the BI user guide but the report generates only one row. The sample XML file has 6 employees. I want to print a row for each employee using PDF as my template instead of RTF document. My data source is XML file and I am currently on PeopleTools 8.50 and Enterprise Portal 9.1. Please help.
    I have the form fields on the PDF as follows:
    Name: body_start
    Tooltip: <?rep_field="BODY_START"?>
    Name: EMPNO
    Tooltip: <?rep_field="T1_G1"?>
    Name: ENAME
    Tooltip: <?rep_field="T1_G1"?>
    Name: JOB
    Tooltip: <?rep_field="T1_G1"?>
    Name: SAL
    Tooltip: <?rep_field="T1_G1"?>
    Name: body_end
    Tooltip: <?rep_field="BODY_END"?>
    -- XML file -----
    <?xml version="1.0" ?>
    <ROOT>
    <LIST_G_EMPNO>
    <G_EMPNO>
    <EMPNO>7782</EMPNO>
    <ENAME>CLARK</ENAME>
    <JOB>MANAGER</JOB>
    <SAL>2450</SAL>
    </G_EMPNO>
    <G_EMPNO>
    <EMPNO>7839</EMPNO>
    <ENAME>KING</ENAME>
    <JOB>PRESIDENT</JOB>
    <SAL>5000</SAL>
    </G_EMPNO>
    <G_EMPNO>
    <EMPNO>125</EMPNO>
    <ENAME>KANG</ENAME>
    <JOB>CLERK</JOB>
    <SAL>2000</SAL>
    </G_EMPNO>
    <G_EMPNO>
    <EMPNO>7934</EMPNO>
    <ENAME>MILLER</ENAME>
    <JOB>CLERK</JOB>
    <SAL>1300</SAL>
    </G_EMPNO>
    <G_EMPNO>
    <EMPNO>123</EMPNO>
    <ENAME>MARY</ENAME>
    <JOB>CLERK</JOB>
    <SAL>400</SAL>
    </G_EMPNO>
    <G_EMPNO>
    <EMPNO>124</EMPNO>
    <ENAME>TOM</ENAME>
    <JOB>CLERK</JOB>
    <SAL>3000</SAL>
    </G_EMPNO>
    </LIST_G_EMPNO>
    </ROOT>
    Edited by: user8260115 on Jan 27, 2010 9:21 AM

    Can you advise me what needs to be done to view my pdf template with the given xml below. What would be the setup of my rep_fields.. I'm also getting the "FO Formatting failed" error when trying in BI Pub Template Viewer.
    <LIST_BILL_SEG>
    <BILL_SEG>
    <CALC_AMT>5</CALC_AMT>
    <BILL_SQ>0</BILL_SQ>
    </BILL_SEG>
    <BILL_SEG>
    <CALC_AMT>10</CALC_AMT>
    <BILL_SQ>1</BILL_SQ>
    </BILL_SEG>
    <BILL_SEG>
    <CALC_AMT>15</CALC_AMT>
    <BILL_SQ>2</BILL_SQ>
    </BILL_SEG>
    <BILL_SEG>
    <CALC_AMT>20</CALC_AMT>
    <BILL_SQ>3</BILL_SQ>
    </BILL_SEG>
    </LIST_BILL_SEG>

  • How to display Table in Interactive PDF with WD-ABAP

    hi All,
    I have to display a tablewith 4 rows in Interactive PDF form, and i am using WD ABAP.
    These are the steps i have followed.
    1. I have created a table line for the required table
    2. Dragged the table line from data view to body page.
    3. Wrapped the table in subform ,and made it to type "Flowable".
    4. Unchecked the check box saying repeat row for each data item for table and for the header row.
    Now when i preview it works fine and display 4 rows, but when the same PDF is called through Web Dynpro component, it shows an error that related to SOM Expression of that line type.
    Any idea how to get rid of this error..??
    If somebody could also let me know if the steps followed to display the table are correct...??
    All replies will be appreciated.

    Solved it myself, changes the cardinality to 1:N of the context node

  • Problem with update of BLOB field in a table with compound primary key

    Hi,
    I've been developing an application in Application Express 3.1.2.00.02 that includes processing of BLOB data in one of the tables (ZPRAVA). Unfortunately, I've come across a strange behaviour when I tried to update value in a BLOB field for an existing record via a DML form process. Insert of a new record including the BLOB value is OK (the binary file uploads upon submiting the form without any problems). I haven't changed the DML process in any way. The form update process used to work perfectly before I'd included the BLOB field. Since than, I keep on getting this error when trying to update the BLOB field:
    ORA-20505: Error in DML: p_rowid=3, p_alt_rowid=ID, p_rowid2=CZ000001, p_alt_rowid2=PR_ID. ORA-01008: not all variables bound
    Unable to process row of table ZPRAVA.
    OK
    Some time ago, I've already created another application where I used similar form that operated on a BLOB field without problems. The only, but maybe very important, difference between both the cases is that the first sucessfull one is based on a table with a standard one-column primary key whereas the second (problematic one) uses a table with compound (composite) two-column PK (two varchar2 fields: ID, PR_ID).
    In both cases, I've followed this tutorial: [http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm]).
    Can anybody confirm my suspicion that Automatic Row Processing (DML) can be used for updating BLOB fields within tables with only single-column primary keys?
    Thanks in advance.
    Zdenek

    Is there a chance that the bug will be included in the next patch?No, this fix will be in the next full version, 3.2.
    Scott

  • Reading Blob in Oracle 10G with Loop option

    Hi,
    I have a Oracle 10G database with about 8500 Records with blob field as PDF file. Each PDF is about 135KB. When I am storing all these as individual database size is coming about 1.5 GB. In reality I am having only 5 PDF types. In each record one of the above PDF file will be stored. I want to store unique 5 blob records in database. If I click on record hyperlink it should read from the location where I stored 5 PDF files. Please help me to reduce the Database size and to get the above solution.
    Regards,
    - Jaya Kumar

    I have a Oracle 10G database with about 8500 Records with blob field as PDF file. Each PDF is about 135KB. When I am storing all these as individual database size is coming about 1.5 GB. In reality I am having only 5 PDF types. In each record one of the above PDF file will be stored. I want to store unique 5 blob records in database. If I click on record hyperlink it should read from the location where I stored 5 PDF files. Please help me to reduce the Database size and to get the above solution.Sounds like a workable solution.
    You'll need to devise a way to determine which blob you want - probably an identifier in one of the table columns - and then look up the one you want by that value when it is needed.
    Do you need help rendering the pdf too?

  • Serialization Object and storasge in blob field Oracle 8.1.6

    Hi,
    this is problem with serializing and deserializing when i am storing object serialized in a Blob field Oracle:
    MyObject myObject = new MyObject();
    ByteArrayOutputStream bayos = new ByteArrayOutputStream();
    ObjectOutputStream oos = new ObjectOutputStream (bayos);
    oos.writeObject(myObject);
    oos.flush();
    byte[] buffer = bayos.toByteArray();
    int size = buffer.length;
    oos.close();
    ByteArrayInputStream bayis = new ByteArrayInputStream(buffer,0,size);
    // if the number bytes of serialized myObject > 4kbytes then the insert in Blob field fails down.
    // if the number bytes of serialized myObject < 4kbytes then the insert in Blob field successes.
    // So I only can put in Blob field serialized object with size minus 4k.
    // The code for insert:
    PreparedStatement pstmt = connection.prepareStatement(sqlInsert);
    pstmt.setBinaryStream(1,bayis,size);
    int retCode = pstmt.executeUpdate();
    // The code for read from table Oracle
    rset = stmt.rxecuteQuery(sqlSelect);
    rset.next();
    oracle.sql.BLOB fldBlob = (BLOB)rset.getObject(1);
    InputStream ins = fldBlob.getBinaryStream();
    byte[] buf = new byte[size]
    ByteArrayInputStream bayis = new ByteArrayInputStream(buf,0,size);
    ObjectInputStream ois = new ObjectInputStream(bayis);
    MyObject myObject = (MyObject)ois.readObject();
    Someone knows the reason of the limit of 4Kbyte ?
    Thanks....

    Insert LOBs into Oracle is a 3 step process. You must insert a place holder, and the do a select for update to put the contents into the row. Lets say you have a table called MY_LOB:
    create table MY_LOB (
       MYID NUMERIC(10) NOT NULL,
       MYLOB BLOB DEFAULT EMPTY_BLOB()
    );The 'empty_blob' keyword tells Oracle to put a dummy value in the blob column when a row is initially created. To insert (assuming you have a db connection already):
    conn.setAutoCommit(false);
    PreparedStatement pstmt = null;
    ResultSet rs = null;
    oracle.sql.BLOB myLob = null;
    try
       //Insert the initial row.
       pstmt = conn.prepareStatement("INSERT INTO MY_LOB (MYID) VALUES (?)");
       //Set the PK value
       pstmt.setInt(1,100);
       pstmt.executeUpdate();
       pstmt.close();
       //Lock the row for insertion.  This is needed for large inserts.
       pstmt = conn.prepareStatement("SELECT MYLOB from MY_LOB where MYID = ? FOR UPDATE");
       pstmt.setInt(1,100);
       rs = pstmt.executeQuery();
       if (rs.next())
          myLob = (oracle.sql.BLOB)rs.getBlob(1);
       rs.close();
       pstmt.close();
       //Finally...update the row with the blob data....
       myLob.putBytes(1, buffer);
       pstmt = conn.prepareStatement("UPDATE MY_LOB SET MYLOB = ? WHERE MYID = ?");
       pstmt.setBlob(1, myLob);
       pstmt.setInt(2,100);
       pstmt.executeUpdate();
       pstmt.close();
       conn.commit();
    catch(SQLException sqlE)
        conn.rollback();
    finally
      //make sure and close all statements....
    }Hope this helps, I didn't compile it so it may have some bugs. It should lead in the right direction at least.

  • Error displaying a jpg file loaded into a table with blob field

    This may not be the correct forum for this question, but if it isn't could someone direct me to the correct one.
    I have created a table with a blob field in which I have loaded a jpg image. This appeared to work correctly, but when I try to display the image in internet explorer it comes back and tells me that it doesn't recognize the file type. Enclosed is the table create, load, and display pl/sql code. Can anyone tell me what I am doing wrong. Thanks. For the mime/header I used owa_util.mime_header('images/jpg') because my image is a jpg file.
    The database is 10g
    -- Create table
    create table PHOTOS
    IMAGEID NUMBER(10),
    IMAGE BLOB,
    IMAGE_NAME VARCHAR2(50)
    load image
    CREATE OR REPLACE PROCEDURE load_file ( p_id number, p_photo_name in varchar2) IS
    src_file BFILE;
    dst_file BLOB;
    lgh_file BINARY_INTEGER;
    BEGIN
    src_file := bfilename('SNAPUNCH', p_photo_name);
    -- insert a NULL record to lock
    INSERT INTO photos (imageid, image_name, image)
    VALUES (p_id , p_photo_name, EMPTY_BLOB())
    RETURNING image INTO dst_file;
    -- lock record
    SELECT image
    INTO dst_file
    FROM photos
    WHERE imageid = p_id AND image_name = p_photo_name
    FOR UPDATE;
    -- open the file
    dbms_lob.fileopen(src_file, dbms_lob.file_readonly);
    -- determine length
    lgh_file := dbms_lob.getlength(src_file);
    -- read the file
    dbms_lob.loadfromfile(dst_file, src_file, lgh_file);
    -- update the blob field
    UPDATE photos
    SET image = dst_file
    WHERE imageid = p_id
    AND image_name = p_photo_name;
    -- close file
    dbms_lob.fileclose(src_file);
    END load_file;
    display image
    PROCEDURE display_image(p_id NUMBER) IS
    Photo BLOB;
    v_amt NUMBER DEFAULT 4096;
    v_off NUMBER DEFAULT 1;
    v_raw RAW(4096);
    BEGIN
    -- Get the blob image
    SELECT image
    INTO Photo
    FROM PHOTOS
    WHERE IMAGEID = p_id;
    owa_util.mime_header('images/jpg');
    BEGIN
    LOOP
    -- Read the BLOB
    dbms_lob.READ(Photo, v_amt, v_off, v_raw);
    -- Display image
    htp.prn(utl_raw.cast_to_varchar2(v_raw));
    v_off := v_off + v_amt;
    v_amt := 4096;
    END LOOP;
    dbms_lob.CLOSE(Photo);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    END;
    END;
    The url I enter is: http://webdev:7777/tisinfo/tis.tiss0011.Display_Image?p_id=1

    Just a little more information. When I enter owa_util.mime_header('image/jpeg') I can't display the file. It just shows up with a red x for the file.
    When I enter owa_util.mime_header('image/jpg') it displays the file, but in the format
    ¿¿¿¿JFIF¿¿-Intel(R) JPEG Library, version [2.0.16.48]¿¿C
    This is the way I would expect it to look if I opened it with Notepad, or an application that doesn't recognize jpg files. Can anyone tell me what I am doing wrong?? Thanks.

  • CRXIR2 image from blob field and some fonts not displaying in PDF export

    I used CRXIR2 developer edition to create a report linked to a SQL 2000 database table.  There is a blob field containing a JPG image that is different for each record in the table.  I am using VB.NET code with ASP.NET 2.0 to programmatically change the temp file to a local folder for easy cleanup, open this crystal report with the 11.5.3700.0 version of the assemblies, set the datasource to a DataTable extracted from the DB, and then export to a PDF file.
    The code for creating the PDF is:
            Dim TempRoot As String = MapPath(".") & "\temp\"
            Dim oldTmp As String = System.Environment.GetEnvironmentVariable("TMP")
            System.Environment.SetEnvironmentVariable("TMP", TempRoot)
            Dim objReport As New ReportDocument()
            objReport.Load(MapPath(".") & "\CReports\" & ReportName)
            For lnX As Integer = 0 To objReport.Database.Tables.Count - 1
                    objReport.Database.Tables(lnX).SetDataSource(resultTable)
            Next
            Dim objDestinationOptions As New DiskFileDestinationOptions()
            Dim objExportOptions As New ExportOptions()
            Dim objFormatTypeOptions As New CrystalDecisions.Shared.PdfRtfWordFormatOptions()
            Dim pdfName As String = "test.pdf"
            objDestinationOptions.DiskFileName = MapPath(".") & "\temp\" & pdfName
            objExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
            objExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
            objExportOptions.ExportDestinationOptions = objDestinationOptions
            objReport.Export(objExportOptions)
            objReport.Dispose()
            System.Environment.SetEnvironmentVariable("TMP", oldTmp)
    When I run the site locally in VS2008, everything works fine and a PDF contains the graph and all the fonts are correct.
    However, when I run the exact same site from a web server running IIS6, the PDF generated does not have the image, and some of the fonts are substituted (all of the necessary fonts are installed on the IIS server).
    Please help!

    Hi Don,
    I am able to see the image and export from the CR Designer on my machine running XP.  However, I installed the designer on our IIS server running Server 2003, and the image does not show in the designer preview on that machine.
    I found another forum thread that you are involved in (1902383) that seems to be dealing with this exact issue, and it looks like there may not be a resolution.
    I am going to try a different route - instead of pulling in the SQL Image field directly, I am going to write it out to a temporary file and pull it in by altering the graphic location of the picture object in the report.
    I'll let you know how that works.
    Pete

Maybe you are looking for

  • Help Me Choose a Netbook

    I am trying to decide between a Dell Inspiron Mini Netbook with 8GB SSD or an Acer Aspire One Netbook with 160G HD.  Both have 1G DDR2 memory.  The OS and related programs take up 7.5G of 8G SSD on Dell.  Rest of the specs are pretty much the same an

  • Powerbook G4 can't connect to iBook

    Im trying to transfer some files from my Powerbook to an iBook. I have the computers connected via ethernet, and AppleTalk is active on both computer. I can see my Powerbook in the iBook's network screen, however, my Powerbook's network screen is bla

  • Best screen settings for Quake 4 on 24" iMac?

    Hi, I'm having trouble with the screen resolutions on my 24" Aluminium imac when trying to play Quake 4. It only seems to fill the screen at either 1200 x 800 (16.10) or 1920 x 1200 (16.10). The first setting plays the game pretty quick but doesn't l

  • Apple iphone always says Apple ID has been disabled, even made new id, but still get same message

    I have iphone 3   Says Apple ID disabled.... Even changed Apple ID. Still says disabled

  • Anyone having trouble with iCloud mail?

    I noticed I couldn't connect to mail from my iPad. Then I checked my iPhone with the same result. Then I tried connecting from my iMac. Still couldn't connect. Then I went to iCloud.com. I could get to contacts and calendar, but not mail. First notic