Report whit a blob

Hello!!
I need make a report with a blob. I have this table:
CREATE TABLE DOCUMENTOS (
ID_DOCUMENTO NUMBER NOT NULL,
ID_PROY NUMBER NOT NULL,
ENCABEZADO VARCHAR2 (100),
TEXTO VARCHAR2 (500),
PATH BLOB,
FECHA_CREACION DATE,
TODOS CHAR (1),
DGTM CHAR (1),
PROYECTO CHAR (1),
TIPO_DOC VARCHAR2 (50),
CONSTRAINT PK_ID_DOCUMENTO
PRIMARY KEY ( ID_DOCUMENTO )
I nedd a report that displays all the PATH depending other table.
How can I do it???

I don't know what XML Publisher "eats" by xmltype (that can be fed with an blob) has an conversion methods to among others clob, getClobVal()
xmltype(blob).getClobVal()

Similar Messages

  • Report with a blob

    Hello!!
    I need make a report with a blob. I have this table:
    CREATE TABLE DOCUMENTOS (
    ID_DOCUMENTO NUMBER NOT NULL,
    ID_PROY NUMBER NOT NULL,
    ENCABEZADO VARCHAR2 (100),
    TEXTO VARCHAR2 (500),
    PATH BLOB,
    FECHA_CREACION DATE,
    TODOS CHAR (1),
    DGTM CHAR (1),
    PROYECTO CHAR (1),
    TIPO_DOC VARCHAR2 (50),
    CONSTRAINT PK_ID_DOCUMENTO
    PRIMARY KEY ( ID_DOCUMENTO )
    I need a report that displays all the PATH depending other table.
    How can I do it???

    check this How to Upload and Download Files in an Application
    let me know if you have any doubts

  • Report 6i and Blob

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

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

  • Storing oracle-reports generated pdf-report onto a blob

    Hey ppl,
    I have this requirement:
    I basically generate a report from Jdev using a remote servlet call to oracle reports, which very neatly generates the pdf document for me and stores it locally. The problem is immediately storing this onto the DB as a blob once the report is generated. I know how to store the pdf as a blob onto the DB. I know how to make the call to oracle-reports and generate my pdf. What I don't know is to sequentially first generate the local pdf report and only once that has been generated proceed to store it onto my DB.
    I want it to be done within the scope of a single request. As in, the entire process should be complete through one cycle. I don't want to keep a day end sort of procedure that inserts into the db at the end of the day.
    As soon as the report has been requested by the user, I want the pdf file(which is generated by the reports) to also be stored onto the DB.
    My problem (which i apologize has been repeated already 2wice above) is that I basically lose control once redirected through the servlet to the report call. There is no way i can instruct Jdev, from the reports side, that the pdf has been generated and now has to be stored onto the DB, as i have lost the session context by redirecting to a different servlet.
    Any help would be GREATLY appreciated.
    Cheers
    K

    Hi,
    its quite some time ago that I a looked Oracle Reports, however, I think that the event mechanism is quite complex to achieve
    I want it to be done within the scope of a single request.
    Which means that if Oracle Reports hangs, the user session follows.
    As in, the entire process should be complete through one cycle.
    Unfortunately you don't control how long reports run, which means that there is no sense in stopping the page lifecycle for this
    I don't want to keep a day end sort of procedure that inserts into the db at the end of the day.
    Fair enough, but as far as I remember there is an eventing in Reports that would allow you to have the Oracle Reports Server triggering the upload
    So I think, the architecture I would go for is:
    - user requests report
    - report generates PDF output
    - reports uploads to DB
    - reports_processing table holds user ID and reports ID plus flag to update when report is done
    - If using JSF, you could use af:poll to check frequently for the report to be finished.
    This here may help: http://www.oracle.com/technology/documentation/reports.html
    Frank

  • How to show in a report a pdf blob from database

    Hi all
    We are working on report 6i and report 10. We have a report wich needs to show a blob field from database that storages a pdf (type application/pdf). OLE2 is deprecated. The pdf blob field must be displayed in a preview and must be printed. In local, it works. When it works on a browser, the pdf blob field is missing. If we load the field into a pdf file, the field is not visible in the browser.
    Do not get it to work. How I can implement? Could you give us any example for this?

    In local, it works. What do you mean by that exactly? You see the pdf in Reports Builder?
    If you just want to show the pdf in a browser (not embedded in a report) it is easy to use mod_plsql. You can have a simple db procedure like this to show any kind of blob:
    procedure show_webdoc(io_blob    in out nocopy blob
                         ,i_mimetype in varchar2
                         ,i_filename in varchar2)
    is
    begin
       if dbms_lob.getlength(io_blob) >0 then
          owa_util.mime_header(nvl(i_mimetype,'application/octet'),false);
          htp.p('Content-length: ' || dbms_lob.getlength(io_blob));
          htp.p('Content-Disposition:  inline; filename="'||i_filename|| '"');
          owa_util.http_header_close;
          wpg_docload.download_file(io_blob);
       end if;
    end show_webdoc;

  • Report 6i and BLOB type of field

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

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

  • My report contains a BLOB (image), why it can't generate an XML file?

    Hi guys,
    I created a report (Purchase Order) and it has a Signature field.
    which is a BLOB column of an image (.JPEG) of the signature of the Purchase Order Approver.
    When i run the report in the report builder its working and it shows the image of the signature.
    BUT when i try to generate xml file to use it for the XML Publisher, it generates an xml file with error. which can't be loaded into the .rtf file.
    i Googled around and it seems that there are limitations in XML Publisher that can not load a BLOB or LONG RAW fields.
    So Please guys i need your help! what can i do now ?
    They need the Purchase Order in a custom PDF format, which i can only make it with XML Publisher.
    Best Regards,

    Hello,
    For questions about BI Publisher (Formelly XML Publisher) :
    BI Publisher
    Regards

  • Store report output to blob column

    Hi,
    I would like to know whether it is possible to execute a report built using Report 10G and store its output, e.g. PDF content, onto a blob column of a table directly? If it's possible, could anyone show me an example in achieving it. Thank you.
    Regards,
    John

    Navneet,
    Thanks for the sample. I've tried setting up this custom destination and I get the following error when trying to run a report.
    REP-50125: Caught exception: java.lang.NullPointerException
    The URL that I am using is as follows:
    http://server_name:port/reports/rwservlet?report=report_name.rdf&userid=username/password@tnsname_entry&destype=BLOBdestination&desformat=PDF&DESNAME=http://username/password@host_name:port/instance/table_name/document_column_name/primary_key_column_name/10/report_desc_column_name
    Any ideas on what I've done wrong?
    Thanks
    David

  • Error in display Reports whit Crystal

    Good day
    I am having problems eom to show reports in the BEA with Crystal Reports.
    I use BEA WEBLOGIC PLATAFORM 8,1 for Linux with Crystal Reports XI.
    I configured server BEA to initiate as a service in my Linux SUSE, and therefore I do not use myself in the graphical way.
    However when I try to visualize some report of crystal JSP page, I receive the following error:
    <code>
    Can't connect you the X11 window server using ':0.0 ' the value of the variable DISPLAY
    </code>
    With the reports me this error only occurs, therefore I have you vary webservices and Jsp, Html pages that function perfectly.
    Somebody could help me?
    BEABRASIL
    MONOLITO SISTEMAS

    Hi
    BEA has a partner relationship with Business Object who owns Crystal report and they might provide some support if the issue is pertaining to crystal report libraries.
    In the U.S. and Canada, you can reach customer service at +1 866 681 3435, 6 a.m. to 5 p.m. Pacific time, Monday to Friday
    Thanks
    Vimala

  • Parameters report whit StoredProcedure

    Hi everyone,
    i've a big problem with a report:
    This reports uses a StoredProcedure with 3 parameters, one of this is "Agent NAME" (string).
    This report is used by an application and it pass to the report the "agent value"...
    The problem is this:
    When an agent open the report, he can see in a combo his value name but he can modify the name too ( typing new values).
    Unfortunately, I cannot change the parameter and i cannot set 'FALSE' in the parameter proprieties: "CUSTOM VALUES".
    How can I avoid that the agent inserts the custom values?
    I want that the agent opens the report and doesn't insert any values.
    PLEASE HELP ME!!!!
    Thanks!

    Please repost your question to the .NET forum

  • Interactive Report with PDF BLOB

    I have a table with a blob that contains a PDF, is there a way that I can convert this to an IRR?
    I don't want to view the PDF contents I just want to search that blob field it using my oracle text index (and obtain the scoring) and my other fields normally....
    Here is my original query syntax:
    SELECT id as Download,score (1) || '%' "PDF Relevance",abbreviation
    FROM listing
    where
    some criteria listed.....
    and
    contains(blob_content,'%' || :P2_SEARCH || '%',1) > 0
    Thanks,
    Justin

    Marco,
    Are you aware of anyway that I could create a view of my blob data and search it that way for a temporary fix? The blob data is only updated twice a year so refreshing it is not a concern as I can take care of that?
    I may have to just create a separate search for the full text of the PDF via the Oracle text index. :(
    Thanks,
    Justin

  • Problem providing download link for BLOB data in apex report

    Hi,
    I am trying to create a report on a table with BLOB data so that the report displays a "download" link for the BLOB data. I am trying to give users the ability to download files from a website.
    I have been following the instructions in OBE "Defining and Viewing BLOB Data in Oracle Application Express 3.1".
    In the report, for the BLOB column, I have specified values for the following fields in Report Attributes->Column Formatting->Number/Date Format->BLOB Download Format Mask:
    BLOB Table
    BLOB Column
    Primary Key Column 1
    MIME Type Column
    Filename Column
    BLOB Last Updated Column
    However, when I run the report, I get the following error, even thought there is data loaded into the table:
    report error:
    ORA-01403: no data found
    When I remove the BLOB Download Format Mask information for the BLOB column, then the data displays in the report, but without the "download" link for the BLOB data (which is expected):
    E.g.
    Title Author Created BLOB_CONTENT
    Siebel & RAC Best Practices     Erik.Peterson     17-SEP-08     [datatype]
    Siebel Grid Case Studies     Mark.MacDonald     17-SEP-08     [datatype]
    Siebel CRM Applications protected by Oracle Clusterware     Kelly.Tan     17-SEP-08 [datatype]
    Oracle Grid: The Optimal Platform for Siebel Solutions Mark.MacDonald 17-SEP-08     [datatype]
    Any ideas why I'm seeing the ORA_01403 when I specify the BLOB Download Format Mask?
    Edited by: user716599 on Sep 18, 2008 12:31 AM

    Good morning,
    Here is how I have solved this problem.
    1. The select statement in the sql for the report should not include the BLOB column. I decided to select only 2 columns, the column that has the key and the column with the filename.
    2. On the first column ( the primary key ) I put in the format statement that was simply DOWNLOAD:TABLENAME:BLOB_COLUMN:PRIMARY_KEY
    This works. I believe that the Oracle error I was getting was because I was trying to apply this format statement to the actual BLOB column.
    So, it appears that you can use any of the columns in the report to hold the DOWNLOAD format statement since in the format statement, you are defining the BLOB table, BLOB column and the primary key into that column.
    Hope this helps,
    Don.

  • Distribute Reports to Blob Column

    Is it possible to distribute BI Publisher reports to a blob column? I would like this feature for my scheduled reports.
    Regards,
    Todd

    Thanks for the replies,
    I'm not familiar with these solutions, so I will need to research...
    I would like to have my application users submit BIP reports to the BIP scheduler. Then once the BIP reports are distributed to a blob column (in a table I define). The application users could then retrieve their reports from the blob column...
    I like the idea of having the report in a blob column as it simplifies my application security. I can control my application security through the database. Having the report stored in the database along with security logic also enables my application to show the user only the reports they've run...
    Thanks,
    Todd

  • Save report in BLOB

    Hi!
    Does anybody know how to save a report in a BLOB column of my DB?
    It has to be done within a process.
    Thanks.

    This procedure will do that for you:
    PROCEDURE export_rep_to_blob (
          p_query       IN   VARCHAR2,
          p_filename    IN   VARCHAR2 DEFAULT 'export_csv.csv',
          p_delimiter   IN   VARCHAR2 DEFAULT ';',
          p_coll_name   IN   VARCHAR2 DEFAULT 'MY_EXP_COLL'
       IS
          v_column_list     DBMS_SQL.desc_tab;
          v_column_cursor   PLS_INTEGER;
          v_number_of_col   PLS_INTEGER;
          v_col_names       VARCHAR2 (4000);
          v_line            VARCHAR2 (4000);
          v_delimiter       VARCHAR2 (100);
          v_dest_lob        BLOB;
          v_id              INTEGER;
          v_mime_type       VARCHAR2 (100)    DEFAULT 'application/vnd.ms-excel';
          v_unique_id       NUMBER;
          v_error           VARCHAR2 (4000);
          v_code            VARCHAR2 (4000);
       BEGIN
    -- Get the Source Table Columns
          v_column_cursor := DBMS_SQL.open_cursor;
          DBMS_SQL.parse (v_column_cursor, p_query, DBMS_SQL.native);
          DBMS_SQL.describe_columns (v_column_cursor,
                                     v_number_of_col,
                                     v_column_list
          DBMS_SQL.close_cursor (v_column_cursor);
          FOR i IN v_column_list.FIRST .. v_column_list.LAST
          LOOP
             v_col_names :=
                       v_col_names || p_delimiter
                       || (v_column_list (i).col_name);
          END LOOP;
          v_col_names := LTRIM (v_col_names, ';');
    -- get unique sequence
          SELECT file_util.file_id_sequence
            INTO v_unique_id
            FROM DUAL;
    -- create an empty blob
          INSERT INTO wwv_flow_files
                      (NAME, blob_content,
                       filename, mime_type, last_updated, content_type
               VALUES (v_unique_id || '/' || p_filename, EMPTY_BLOB (),
                       p_filename, v_mime_type, SYSDATE, 'BLOB'
               RETURN ID
                 INTO v_id;
    -- select blob for update
          SELECT     blob_content
                INTO v_dest_lob
                FROM wwv_flow_files
               WHERE ID = v_id
          FOR UPDATE;
          DBMS_LOB.writeappend (v_dest_lob,
                                LENGTH (v_col_names),
                                UTL_RAW.cast_to_raw (v_col_names)
          DBMS_LOB.writeappend (v_dest_lob,
                                LENGTH (CHR (10)),
                                UTL_RAW.cast_to_raw (CHR (10))
          IF htmldb_collection.collection_exists (p_collection_name      => p_coll_name)
          THEN
             htmldb_collection.delete_collection
                                                (p_collection_name      => p_coll_name);
          END IF;
          htmldb_collection.create_collection_from_query
                                                (p_collection_name      => p_coll_name,
                                                 p_query                => p_query
          v_number_of_col := 50 - v_number_of_col;
          FOR i IN 1 .. v_number_of_col
          LOOP
             v_delimiter := v_delimiter || p_delimiter;
          END LOOP;
          FOR c IN (SELECT c001, c002, c003, c004, c005, c006, c007, c008, c009,
                           c010, c011, c012, c013, c014, c015, c016, c017, c018,
                           c019, c020, c021, c022, c023, c024, c025, c026, c027,
                           c028, c029, c030, c031, c032, c033, c034, c035, c036,
                           c037, c038, c039, c040, c041, c042, c043, c044, c045,
                           c046, c047, c048, c049, c050
                      FROM htmldb_collections
                     WHERE collection_name = p_coll_name)
          LOOP
             v_line :=
                RTRIM (   c.c001
                       || p_delimiter
                       || c.c002
                       || p_delimiter
                       || c.c003
                       || p_delimiter
                       || c.c004
                       || p_delimiter
                       || c.c005
                       || p_delimiter
                       || c.c006
                       || p_delimiter
                       || c.c007
                       || p_delimiter
                       || c.c008
                       || p_delimiter
                       || c.c009
                       || p_delimiter
                       || c.c010
                       || p_delimiter
                       || c.c011
                       || p_delimiter
                       || c.c012
                       || p_delimiter
                       || c.c013
                       || p_delimiter
                       || c.c014
                       || p_delimiter
                       || c.c015
                       || p_delimiter
                       || c.c016
                       || p_delimiter
                       || c.c017
                       || p_delimiter
                       || c.c018
                       || p_delimiter
                       || c.c019
                       || p_delimiter
                       || c.c020
                       || p_delimiter
                       || c.c021
                       || p_delimiter
                       || c.c022
                       || p_delimiter
                       || c.c023
                       || p_delimiter
                       || c.c024
                       || p_delimiter
                       || c.c025
                       || p_delimiter
                       || c.c026
                       || p_delimiter
                       || c.c027
                       || p_delimiter
                       || c.c028
                       || p_delimiter
                       || c.c029
                       || p_delimiter
                       || c.c030
                       || p_delimiter
                       || c.c031
                       || p_delimiter
                       || c.c032
                       || p_delimiter
                       || c.c033
                       || p_delimiter
                       || c.c034
                       || p_delimiter
                       || c.c035
                       || p_delimiter
                       || c.c036
                       || p_delimiter
                       || c.c037
                       || p_delimiter
                       || c.c038
                       || p_delimiter
                       || c.c039
                       || p_delimiter
                       || c.c040
                       || p_delimiter
                       || c.c041
                       || p_delimiter
                       || c.c042
                       || p_delimiter
                       || c.c043
                       || p_delimiter
                       || c.c044
                       || p_delimiter
                       || c.c045
                       || p_delimiter
                       || c.c046
                       || p_delimiter
                       || c.c047
                       || p_delimiter
                       || c.c048
                       || p_delimiter
                       || c.c049
                       || p_delimiter
                       || c.c050,
                       v_delimiter
             DBMS_LOB.writeappend (v_dest_lob,
                                   LENGTH (v_line),
                                   UTL_RAW.cast_to_raw (v_line)
             DBMS_LOB.writeappend (v_dest_lob,
                                   LENGTH (CHR (10)),
                                   UTL_RAW.cast_to_raw (CHR (10))
          END LOOP;
    -- update the new line
          UPDATE wwv_flow_files
             SET doc_size = DBMS_LOB.getlength (blob_content),
                 dad_charset = 'ascii'
           WHERE ID = v_id;
    -- import into custom table
          INSERT INTO syn_file_table
             SELECT NAME, 'export query flat file', ID, blob_content, mime_type,
                    filename, created_on
               FROM wwv_flow_files
              WHERE ID = v_id;
    -- delete the file from wwv_flow_files
          DELETE FROM wwv_flow_files
                WHERE ID = v_id;
          IF htmldb_collection.collection_exists (p_collection_name      => p_coll_name)
          THEN
             htmldb_collection.delete_collection
                                                (p_collection_name      => p_coll_name);
          END IF;
          COMMIT;
       EXCEPTION
          WHEN OTHERS
          THEN
             v_error := SQLERRM;
             v_code := SQLCODE;
             IF DBMS_SQL.is_open (v_column_cursor)
             THEN
                DBMS_SQL.close_cursor (v_column_cursor);
             END IF;
             raise_application_error (-20001,
                                         'Your query is invalid!'
                                      || CHR (10)
                                      || 'SQL_ERROR: '
                                      || v_error
                                      || CHR (10)
                                      || 'SQL_CODE: '
                                      || v_code
                                      || CHR (10)
                                      || 'Please correct and try again.'
                                      || CHR (10)
       END export_rep_to_blob;You will need to adjust the table names according to your setup.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Blob in classic report - broken images in translated application

    Hello,
    I have an application containing a classic report with a blob column displayed as inline images. The application's UI is translated and published (from en to de in my case) according to APEX docu. Everything seems to work fine so far but all classic reports with blobs show broken images in the translated application.
    The report query is something like:
    SELECT  IMAGE_NAME,
            CATALOG_MIME,
            CATALOG_FILENAME,
            CATALOG_LAST_UPD,
            ID,
            dbms_lob.getlength(CATALOG_IMAGE) CATALOG_IMAGE
    FROM    IMAGE imgThe images are displayed by using the format mask "IMAGE:....inline" on the CATALOG_IMAGE column and the generated image URLs (<img src="...">) look like this:
    In primary language (App ID 251, working): http://server/pls/apex/apex_util.get_blob?s=724178467531162&a=251&c=6844840372320206&p=5305&k1=288447&k2=&ck=7475F2F4A0CFA99CC137C9F9008CE3F9&rt=CR
    In translated app (App ID 151, broken images): http://server/pls/apex/apex_util.get_blob?s=724178467531162&a=251&c=6844840372320206,151&p=5305&k1=288447&k2=&ck=4576169EC6C9645C83E321610FE4BE6B&rt=CR
    Also by entering the broken image URL directly the server says: "The requested URL /pls/apex/apex_util.get_blob was not found on this server."
    Is this a bug in APEX (using 3.1.2), anyone else encountered this? Is there a solution or workaround?
    Thanks for infos,
    Stefan

    Follow-up by myself:
    I found a workaround for this by using the apex_util.get_blob_file_src function instead of declarative blob support. The code generated by this seems to work also in the translated application.
    Btw, the original problem remains in APEX 3.2, as just tested at apex.oracle.com. I've made a test comparing declarative blob support to apex_util.get_blob_file_src in the sample application in my workspace (SMEINDL), application id 50912, page 3 (products). If anyone is interested, please have a look at it.
    Stefan

Maybe you are looking for

  • Port Security - CMS

    I am using CMS on a 3550 to implement Port Security. I want to know how to clear the Violation Rejection count? I have tried changing the Violation, turned off Sticky Behavior and disabled Port Security. Nothing clears the Violation count. When I re-

  • Error Mssg while creating Org Model  Category

    Hello guru's When i am creating Org madel Category in spro, after filling all the fields at last i am getting an errot message stating "Prefix Number :entry missing for the system CD1 clint150. Can u please help out in this regards Best Regards Sreer

  • Error 1303 when installing RTE 7.0 on Win NT

    I am trying to install RTE 7.0 on a Win NT 4.0 SP6 machine. It gives me an error 1303...Not sufficient permission. I have full administrator rights. Can anyone give me a clue?

  • Question on Substring or Regular Expression

    Experts, I have values is column similar to this: Remarks: IHCIS 651216 K6 KORE 657526 COR SWITX 658999 K6 ADHOC I need to pull out the number starting with "6" (it always starts with 6, and it is always six characters). I then need to set the value

  • HT1414 ipod shuffle drivers from windows? Not showing in explorer

    I have an old shuffle 2nd generation. when i plug it in it says that it is syncing do not remove. right after that it says it is all done but nothing cjhanges. I checked to see if it shows up in the explorer window but it is not there. when i plug it