Image JFIF reports stored in a BLOB

Hello world

I am using forms and reports on the 10 g release 1. I noticed that an image stored in a BLOB in a JFIF format does not work well with reports. I get the rep-62203, can not make mistake. When the data type is longraw instead of blob, it works very well. But I can't use longraw, because it is built in pl/sql does not read the field past 32K. This is why convert us to the Blob.

I did a few tests: 1) I have stored a simple jpg with Toad and it works perfectly with the reports. I've stored with a shape, but a GIF format it works fine. But the JFIF does not simply reports. What is the problem?

How can this be resolved?

I thought that maybe save the prior image, calling the report to a file and then bind it with report. This will be my last choice. I prefer not to got there.

Any idea?

Hello

You can test to set REPORTS_DEFAULT_DISPLAY = NO to your report server

In the registry if you're running Windows, in reports.sh if you work under UNIX.
If you use UNIX, it will be necessary to set the DISPLAY too.

Concerning

Tags: Oracle Development

Similar Questions

  • APEX 5.0. With the image stored in a BLOB gives ORA-06502.

    Hello

    I want to create an interactive report - computer desk with an image that is stored in a BLOB but it a: returnes ORA-06502: PL/SQL: digital or value error: character of number conversion error.

    I created a test with only the image report (charged - which is a BLOB) and an ID (PK - one number from a sequence)

    SELECT ID, invoice of foto

    I tried with and without a formatmask for the ' 999999999999999 ID' and the Type of plain text, because it seems not to be a better choice...

    For the Type 'pay' is 'View Image' and the 'Table name' and 'BLOB column' are defined. 'Primary Key column 1' set ID 'column of Type mime"points to a field that contains" image/jpeg", as the stored image is a photo in format jpg.

    The image from a Forms application displays OK.

    DB is a 11.2.0.4 on Linux 6.6 and APEX is 5.0

    What did I miss?

    Thank you

    Dino

    Dino Hustinx wrote:

    I want to create an interactive report - computer desk with an image that is stored in a BLOB but it a: returnes ORA-06502: PL/SQL: digital or value error: character of number conversion error.

    I created a test with only the image report (charged - which is a BLOB) and an ID (PK - one number from a sequence)

    SELECT ID, invoice of foto

    As described in the documentation, the report query selects the length of the BLOB, not the column itself column:

    select id, dbms_lob.get_length(billed) billed from foto
    
  • APEX - opening World document (and other files) stored in a blob column?

    Hello

    I have an application developed in Oracle Apex 3.2.1 and RDBMS Oracle 9.2.0.8 (SUN SOLARIS SPARC 64-BIT).

    I have a table called BAC_ARQUIVO, with the following structure:

    CREATE TABLE BAC_ARQUIVO
    (NAME VARCHAR2 (4000), / * name of the file stored in a BLOB column * /)
    TOPIC VARCHAR2 (4000), / * a brief presentation of this file stored * /.
    Identification NUMBER, / * an identification of this file - it s a PK of this table column * /.
    BLOB BLOB_CONTENT, / * Blob field to store different types of files - XLS, DOC, PPT, PDF, EXE, ZIP, etc.) ;
    Mime_type VARCHAR2 (4000) / * Identification whose file type is stored in BLOB field * /.
    )


    The field BLOB_CONTENT in this table can store:

    -Executable files;
    -MS-world Documents (DOC);
    -Zip Files (ZIP).
    -Ms-Excel (XLS) files;
    -Ms-Powerpoint files (PPT);
    -Adobe (PDF) documents.

    In fact, in this application, APEX, I developed an interactive report in which the user can download these files to the desktop without problem.

    But now, my user I would like to know if it s possible ask APEX can OPEN some of these files stored on this download of WITHOUT BLOB column.

    My user would like to see a hiperlink (or button) that, if you press on/accessed, can open a new page (or page within the application) with the document. Doesn´t need to edit this file oppened. He wants only to see.

    For example, if the file stored in the blob column is type ms word, so the application opens an MS-WINDOWS application with these files.

    Is this possible?

    In this forum, I saw this it possible s to open a file stored on the directory "/ i /", but I need to open the file stored in the BLOB column. I Don t want to store the file in the operating system of the server.

    Could someone show me how it could be done?

    Best regards

    Sergio Coutinho

    Hi Sergio,

    You might find this link useful:

    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/DB/Apex/R31/apex31nf/apex31blob.htm

    See also the Mask of Format download BLOB :

    {message: id = 9716335}

    Here I gave the format mask for APEX 4.0, which will be slightly different for 3.2.1 and proposed changes
    in the format of mask are:
    (1) mask format: DOWNLOAD
    (2) content-disposition: Inline

    This will be achieved with her:
    >
    But now, my user I would like to know if it s possible ask APEX can OPEN some of these files stored on this download of WITHOUT BLOB column.

    My user would like to see a hiperlink (or button) that, if you press on/accessed, can open a new page (or page within the application) with the document. Doesn´t need to edit this file oppened. He wants only to see.
    >

    I hope that helps!
    Kind regards
    Kiran

  • Creating image of report as work demo

    Dear Pakars

    Creating image of report as demo work?

    Thank you
    Imansyah

    Hello

    Are you asking how to include images in a report? If so, take a look at the documentation to support declarative blob.

    http://www.Oracle.com/technology/OBE/Apex/apex31nf/apex31blob.htm

    Hope this helps,

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

  • How to insert a pdf or jpeg image into a column of type blob of a table

    How to insert a pdf or jpeg image into a column of type blob of a table

    Hello
    Try this

    Loading an image into a BLOB column and showing through OAS
    -------------------------------------------------------------

    The steps are:

    Step 1.
    -------

    Create a table to store BLOBs:

    create BLOB table objects
    (id VARCHAR2 (255),)
    blob_col blob
    );

    Step 2.
    -------

    Create a logical directory in the database to the physical file system:

    create or replace the MY_FILES directory as "c:\images";

    Step 3.
    -------

    Create a procedure to load the BLOB from the file system by using the logic
    Directory. Gif 'aria.gif' must exist in c:\images.

    create or replace procedure insert_img as
    f_lob bfile.
    b_lob blob.
    Start
    insert into BLOB ("MyGif", empty_blob()) values
    return blob_col in b_lob;

    f_lob: = bfilename ("MY_FILES', 'aria.gif');
    DBMS_LOB. FileOpen (f_lob, dbms_lob.file_readonly);
    DBMS_LOB. LoadFromFile (b_lob, f_lob, dbms_lob.getlength (f_lob));
    DBMS_LOB. FileClose (f_lob);
    commit;
    end;
    /

    Step 4.
    -------

    Create a procedure that is called via Oracle Application Server to display the
    image.

    create or replace procedure get_img as
    vblob blob.
    raw buffer (32000);
    buffer_size integer: = 32000;
    offset of an integer: = 1;
    length of number;
    Start
    owa_util.mime_header('image/gif');
    Select blob_col from vblob of blobs where id = 'MyGif. "
    Length: = dbms_lob.getlength (vblob);
    While offset< length="">
    DBMS_LOB. Read (vblob, buffer_size, offset, buffer);
    HTP. PRN (utl_raw.cast_to_varchar2 (buffer));
    offset: = offset + buffer_size;
    end loop;
    exception
    while others then
    HTP.p (SQLERRM);
    end;
    /

    Step 5.
    -------

    Use the PL/SQL cartridge to call the get_img procedure

    OR

    Create this procedure in function and call it your PL/SQL code for
    correctly place the images on your HTML page through the PL/SQL Toolbox.

    from a html form

    1. create an HTML form where the image will be. You too
    need the file MIME type.
    2. create a procedure receives the form parameters. The file field will be a Varchar2
    parameter, because you receive the path of the image is not the image itself.
    3 insert the image file into the table by using 'Create a directory NAME as chemin_image' and
    Then use ' insert into the TABLE (row, BLOB_OBJECT, MIME_OBJECT) values (sequence.nextval, '.
    EMPTY_BLOB() 'GIF' or 'JPEG') BLOB_OBJECT, in the variable_blob, back
    variable_consecutive.
    4 load the file into the table using:
    DBMS_LOB. LoadFromFile (variable_blob, variable_file_name, dbms_lob.getlength (variable_file_name));
    DBMS_LOB. FileClose (variable_file_name);
    engage.

    Kind regards
    Simma...

  • How to find the size of the downloaded image on a column of type blob in a table?

    How to find the size of the downloaded image on a column of type blob in a table?

    Vidya,

    You can use the built in function dbms_lob.getlength to get the length (size) of a LOB column or a bfile type.
    Check out this link.

    http://download.Oracle.com/docs/CD/B10501_01/AppDev.920/a96612/d_lob2.htm#1008995

  • image not displayed programmtically stored in the blob column

    Hello

    I modified the student table to store photos of students. To do this, I added STIMG as BLOB, FILENAME, MIMETYPE, IMAGE_LAST_UPDATE COLUMNS in the studentadmitted table. Image stored and displayed in the report very well. With the following query

    Select "ROWID",.
    "ST_ID."
    "FIRST NAME",
    'NAME',
    "FFIRST_NAME,"
    "FLAST_NAME,"
    "COURSE_ID."
    'SESSION_ID '.
    "CONTACT #" "CONTACT_H", nvl ((STIMG) dbms_lob.getlength, 0) IMAGE.
    of ' #OWNER # '. " STUDENTADMITTED ".
    Images are displayed in the column, but they have different sizes.

    To control this, I changed the query like this

    Select "ROWID",.
    "ST_ID."
    "FIRST NAME",
    'NAME',
    "FFIRST_NAME,"
    "FLAST_NAME,"
    "COURSE_ID."
    'SESSION_ID '.
    "CONTACT # ' 'CONTACT_H', decode (nvl (dbms_lob.getlength (stimg), 0), 0, null,)
    "< img style =" border: 4px solid #CCC; " -moz-border-radius: 4px; -webkit - border-radius: 4px; » '||
    "src =" "|
    apex_util.get_blob_file_src ('P16_stIMG', st_id) |
    ("height ="75"width ="75"alt ="Image of the product"title ="Product Image"/ > ')
    detail_img
    of ' #OWNER # '. " STUDENTADMITTED ".

    No report with the following error,

    error report: ORA-06502: PL/SQL: digital or value error: character of number conversion error

    Win Server 2008
    Oracle database: 11G R2
    Apex Ver: 4.2

    Sanna

    Hey Sajjad,

    Try this, the last code change.
    I tried it works next to me.

    Select "ROWID",.
    "ST_ID."
    "FIRST NAME",
    'NAME',
    "FFIRST_NAME,"
    "FLAST_NAME,"
    "COURSE_ID."
    'SESSION_ID '.
    "CONTACT #" "CONTACT_H."
    decode (nvl (dbms_lob.getlength (STIMG), 0), 0, null, "") AS IMAGE,.
    "MIME TYPE"
    "FILENAME."
    'IMAGE_LAST_UPDATE '.
    of ' #OWNER # '. " STUDENTADMITTED ".

    Kind regards
    Jitendra

  • Stored in the BLOB column display PDF problem

    Hello everyone.

    I tried to follow this tutorial http://asktom.oracle.com/pls/asktom/f?p=100:11:0:p11_question_id:232814159006 on the display of PDF files stored in BLOB columns. This is done on Apex 4.2, with my DB 11 g running. I have my procedure, which I will post below:
    create or replace procedure "PDF" (p_id IN gvo_documents.doc_id%type)
    is
        l_lob    blob;
        l_amt    number default 30;
        l_off   number default 1;
        l_raw   raw(4096);
    begin
        select contents into l_lob
            from gvo_documents 
             where doc_id = p_id;
    
     -- make sure to change this for your type!
        owa_util.mime_header( 'application/pdf' );
    
    
        begin
            loop
              dbms_lob.read( l_lob, l_amt, l_off, l_raw );
              htp.prn( utl_raw.cast_to_varchar2( l_raw ) );
              l_off := l_off+l_amt;
              l_amt := 4096;            
        end loop;
            exception
               when no_data_found then 
                  NULL;
            end;
    
    end;
    
    I am trying to run this through a region dynamic PL/SQL, and even if I don't get any error, the content displayed is a huge mess of truncated text and strange characters. I tried to run this procedure on many other types of documents, including word and jpeg image files, all with the necessary changes in my inside, and regardless of what I use, I always get a big mess of strange characters. Does anyone have information or ideas why this is happening?

    If I understand correctly, your needs must be broken down into two problems:
    1) click the link that opens a window showing a new APEX page
    (2) an APEX page displays the document, download it not.

    I did not (yet) #1.
    However, you can generate a URL that points to the new page in the select for the report.

    It's a related issue, but no response yet:
    Open the pdf file in the browser window

    The key is to target = "_blank" to the anchor tag.
    To generate the URL, you must use the APEX_UTIL.prepare_URL () function.

    If this does not work, a dynamic Action that makes magical things of JavaScript may be necessary.

    # 2, I lost the URL that showed how to display a PDF file in a page "form.
    From what I remember:
    Start with a blank page with a pristine area of HTML (all items will in the HTML area)
    Add an element to the PK/annual
    part I forgot Create a Data Manipulation process
    -Automated row Fetch
    -By loading - after the header
    -(stuff for your table/view)
    part I forgot Create a (I think) "File browser" item type. For the parameters:
    -Storage of Type "BLOB column specified in the Source element" (and put the name of the BLOB column)
    -MIME Type column: (column name) - since there are several types, this is a MUST HAVE
    -Filename column: (column name) - I highly recommend you have this.
    -Provision of content is INLINE<-- this="" is="" the="">

    In addition, you will need a browser for each of the Types MIME Plugin (if not, the browser may try to "Download" the file)
    Browsers can manage the types of images internally. Plugin Adobe can handle PDF files. I do not know Word/Excel.

    Yet once again, I don't remember the exact details, but that should cover most of it.

    MK

  • Store an Image in the column of type BLOB of a Table

    It is about saving an Image file, a temp_photo table.

    UNDER LINUX, I created the Directory object.
    Step # 1
    SQL > create directory MSGS3 as ' / home/HD/om4000/I_MESSAGES ";
    Created directory.

    Step 2: set up the temp_photo Table.

    SQL > create table temp_photo
    (
    ID NUMBER (3) NOT NULL,
    PHOTO_NAME VARCHAR2 (50).
    PHOTO BLOB
    );
    Table created.

    Step: 3 this is the procedure that I have created to load the file from the file system of the database.

    create or replace PROCEDURE load_file)
    number of P_ID,
    p_photo_name in varchar2) IS
    src_file BFILE.
    dst_file BLOB;
    lgh_file directory.
    BEGIN
    src_file: = bfilename ('MSGS3', p_photo_name);
    -Insert a NULL record to lock
    INSERT INTO temp_photo
    (id, photo_name, photo)
    VALUES
    (p_id, p_photo_name, EMPTY_BLOB())
    RETURN photo INTO dst_file;
    -lock the folder
    SELECT photo
    IN dst_file
    OF temp_photo
    ID WHERE p_id =
    AND photo_name = p_photo_name
    UPDATE;
    -Open the file
    DBMS_LOB. FileOpen (src_file, dbms_lob.file_readonly);
    -determine the 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 temp_photo
    Photo SET dst_file =
    ID WHERE p_id =
    AND photo_name = p_photo_name;
    -close file
    DBMS_LOB. FileClose (src_file);
    END load_file;
    /


    Step 4: when I test it by running the procedure in the following assistance:
    SQL > execute load_file (1, 'Omega5000.jpg');

    I get the following error:

    Error from line 5 in order:
    run load_file(1,'Omega5000.gif')
    Error report:
    ORA-22288: file or LOB FILEOPEN operation failed
    No such file or directory
    ORA-06512: at "SYS." DBMS_LOB", line 805
    ORA-06512: at "HD. Load_file", line 23
    ORA-06512: at line 1
    22288 00000 - "file or LOB operation %s failed\n%s".
    * Cause: Failure of the attempted operation on the file or the LOB.
    * Action: See the following error message in the more detailed error stack
    information. In addition, make sure that the file or LOB exists and that
    privileges are set for the specified operation. If
    the error continues, report the error to the user DBA.

    He said: no such file or directory, but I double checked that the file is located in the same directory and directory is it physically (for which I created the above directory object.)
    Can someone help me where I'm doing something wrong. This is the first time I use the BLOB in my table. Can anyone suggest what's not here.

    >
    He said: no such file or directory, but I double checked that the file is located in the same directory and directory is it physically (for which I created the above directory object.)
    >
    Oracle is disagreeing with you.

    Post your proof that the file exists in the path you provided.

    See this example Oracle-base
    http://www.Oracle-base.com/articles/Misc/HTML-with-embedded-images-from-plsql.php
    >
    CONN / AS SYSDBA
    CREATE or REPLACE DIRECTORY of images AS "/ host /";
    GRANT READ, WRITE on DIRECTORY images TO test;
    >
    Write down everything you missed? Tip: Look at the last character of the DIRECTORY string. Second Tip: See the grant?

    SQL>create directory MSGS3 as '/home/mh/om4000/I_MESSAGES' ;
    
  • Images and reports interactive apex 4.0

    To the community,

    I have not had the chance to make a decent research before going to bed, but I was wondering if anyone had links to good examples on OTN, a blog, apex.oracle.com etc, but I thought I would ask the question there during the night.

    I have a table that contains my data blob, mimetype, name of file, and I would like to create an example of interactive report that displays the image in the BLOB in three formats - standard interactive report using icon view and by using the detail view.

    Note that I am not referring to images that may be in the system file or directory--but within the boundaries of a table.

    For some reason any I was losing the battle this afternoon, I was wondering if anyone knew good concise examples, such as this one for the use of images in the form & classic report pages.
    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/DB/Apex/R31/apex31nf/apex31blob.htm

    See you soon,.

    Scott

    >
    I have a table that contains my data blob, mimetype, name of file, and I would like to create an example of interactive report that displays the image in the BLOB in three formats - standard interactive report using icon view and by using the detail view.

    Note that I am not referring to images that may be in the system file or directory--but within the boundaries of a table.
    >

    See the products integrated IR page 3 of the sample Application.

  • How to create the image that was stored on the HARD drive

    Hello

    When I fixed my windows, I chose "Restore Factory Setting" options.
    This happens to reformat my hard drive and I lose the "TOSHIBA HDD Recovery" image.

    Is it possible to create this image again?

    Thanks in advance for your help.

    Hello

    The use of the Toshiba HDD image would format the HARD drive, but should not remove the Toshiba HDD image files that are stored on the second partition!
    That's why I put t know why you said you lost the image of Toshiba HDD.
    That is a little strange.

    On the other hand, you can try to create the recovery disk using tool of preinstalled Toshiba Toshiba recovery disc Creator called.
    This tool helps you to create the recovery disk using Toshiba image files stored on the second partition.
    I think you should try this.

    See you soon

  • Attributes of Image Interactive report apex 5.0...

    Hello

    I created an interactive report in apex 4.2.6. To customize the image, I added the HTML code in the report interactive HTML Page header

    < style type = "text/css" >

    .apexir_WORKSHEET_DATA td [headers = "IMAGE_CONTENT"]

    IMG {}

    height = "200";

    Width = "80";

    }

    < / style >

    Now the Apex version is upgraded to 5.0... The images in the report have become major... Why this code does not work in apex 5.0? Is it possible to limit the size of an image in the interactive reports page?

    Thank you

    Toddler

    Kiran Pawar says:

    As the interactive is rewritten from the ground-up in the new version 5.0 of the APEX, there is no class 'apexir_WORKSHEET_DATA' in IR in APEX 5.0, change your css to:

    You must also add "IMAGE_CONTENT" as a static ID in the image column, like APEX 5.0 uses internal ID in the ID attributes of the IR instead of alias columns table header cells.

    4.2, page-level CSS should be in CSS Inline (without tags style) property page, and not the Header HTMLpage.

  • How to select the csv data stored in a BLOB column as if it were an external table?

    Hi all

    (Happy to be back after a while! )

    Currently I am working on a site where users should be able to load the data of csv (comma is the separator) of their client machines (APEX 3.2 application) in the Oracle 11.2.0.4.0 EE database.

    My problem is:

    I can't use an external table (for the first time in my life ) so I'm a little clueless what to do as the csv data is stored by the application of the APEX in a BLOB column, and I'm looking for an elegant way (at least SQL PL/SQL/maximization) to insert the data into the destination table (run validations by a MERGER would be the most effective way to do the job).

    I found a few examples, but I think they are too heavy and there could be a more elegant way in Oracle DB 11.2.

    Simple unit test:

    drop table CBC purge;

    drop table dst serving;

    create table src

    (myblob blob

    );

    create table dst

    (num number

    , varchar2 (6) str

    );

    Insert in src

    Select utl_raw.cast_to_raw (1; AAAAAA ;'|| Chr (10) |

    2; BATH; »

    )

    Double;

    Desired (of course) output based on the data in table SRC:

    SQL > select * DST;

    NUM STR

    ---------- ------

    1 ABDELKRIM

    2 BATH

    Does anybody know a solution for this?

    Any ideas/pointers/links/examples are welcome!

    / * WARNING: I was 'off' for about 3 months, then the Oracle - the part of my brain has become a bit "rusty and I feel it should not be so complicated as the examples I've found sofar ' * /"

    Haha, wonder about regexp is like the blind leading the blind!

    However, it's my mistake: I forgot to put the starting position setting (so 1, 2, 3,... was in fact the starting position, not the nth occurrence. duh!)

    So, it should actually be:

    select x.*
    ,      regexp_substr(x.col1, '[^;]+', 1, 1)
    ,      regexp_substr(x.col1, '[^;]+', 1, 2)
    ,      regexp_substr(x.col1, '[^;]+', 1, 3)
    ,      regexp_substr(x.col1, '[^;]+', 1, 4)
    ,      regexp_substr(x.col1, '[^;]+', 1, 5)
    ,      regexp_substr(x.col1, '[^;]+', 1, 6)
    from  src
    ,      xmltable('/a/b'
                  passing xmltype(''||replace(conv_to_clob(src.myblob), chr(10), '')||'')
                  columns
                    col1 varchar2(100) path '.') x;
    

    Note: that's assuming that all the "columns" passed in the string won't be lame.

    If one of them might be null, then:

    select x.*
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 1)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 2)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 3)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 4)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 5)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 6)
    from   src
    ,      xmltable('/a/b'
                  passing xmltype(replace(';'||replace(conv_to_clob(src.myblob), chr(10), ';')||'', ';;', '; ;'))
                  columns
                    col1 varchar2(100) path '.') x;
    
  • Big base64 that image cannot be correctly converted to BLOB

    I use the script below to extract the JSON in MongoDB, analyze and then inserting it into an Oracle table.

    • The script works very well in a way that it inserts all the values correctly in the Oracle table. That includes the picture value, which is a base64 image formats and it is much longer than 32 KB.
    • The Photo column in the Appery_Photos table is of type CLOB, while the DecodedPhoto column is of type BLOB.
    • The problem lies in the line blobOriginal: = base64decode1 (Photo); line 24 , I used to decode the CLOB in BLOB. The base64decode1 function has been replaced by several functions (e.g. decode_base64 , base64DecodeClobAsBlob_plsql, base64decode , from_base64 & finally JSON_EXT. DECODER the). 
    • The result was the same for each of them. In other words, the BLOB that results cannot be opened as an image using image editors (I use Oracle SQL Developer to download).
    • I checked CLOB, and I couldn't find returns in line * \n*, nor could I find spaces (only + found signs). Furthermore, I inserted the CLOB value into base64-image-converter , and the image is displayed correctly. In addition, I tried to encode the BLOB that results in base64 back in order to further validate (by using the inverse functions provided in the links above), the resultant base64 is not the same as the original at all.

    BEGIN
          l_http_request := UTL_HTTP.begin_request('https://api.appery.io/rest/1/db/collections/Photos?where=%7B%22Oracle_Flag%22%3A%22Y%22%7D' , 'GET' , 'HTTP/1.1');
          -- ...set header's attributes
          UTL_HTTP.set_header(l_http_request, 'X-Appery-Database-Id', '53f2dac5e4b02cca64021dbe');
          l_http_response := UTL_HTTP.get_response(l_http_request);
          BEGIN
            LOOP
              UTL_HTTP.read_text(l_http_response, buf);
              l_response_text := l_response_text || buf;
            END LOOP;
          EXCEPTION
          WHEN UTL_HTTP.end_of_body THEN
            NULL;
          END;
          l_list := json_list(l_response_text);
          FOR i IN 1..l_list.count
          LOOP
            A_id  := json_ext.get_string(json(l_list.get(i)),'_id');
            l_val := json_ext.get_json_value(json(l_list.get(i)),'Photo');
            dbms_lob.createtemporary(Photo, true, 2);
            json_value.get_string(l_val, Photo);
            dbms_output.put_line(dbms_lob.getlength(Photo));
            dbms_output.put_line(dbms_lob.substr(Photo, 20, 1));
            blobOriginal := base64decode1(Photo);
            A_Name       := json_ext.get_string(json(l_list.get(i)),'Name');
            Remarks      := json_ext.get_string(json(l_list.get(i)),'Remarks');
            Status       := json_ext.get_string(json(l_list.get(i)),'Status');
            UserId       := json_ext.get_string(json(l_list.get(i)),'UserId');
            A_Date       := json_ext.get_string(json(l_list.get(i)),'Date');
            A_Time       := json_ext.get_string(json(l_list.get(i)),'Time');
            MSG_status   := json_ext.get_string(json(l_list.get(i)),'MSG_status');
            Oracle_Flag  := json_ext.get_string(json(l_list.get(i)),'Oracle_Flag');
            acl          := json_ext.get_string(json(l_list.get(i)),'acl');
          INSERT
            INTO Appery_Photos
              (
                A_id,
                Photo,
                DecodedPhoto,
                A_Name,
                Remarks,
                Status,
                UserId,
                A_Date,
                A_Time,
                MSG_status ,
                Oracle_Flag,
               acl
              )
              VALUES
              (
                A_id,
                Photo,
                blobOriginal,
                A_Name,
                Remarks,
                Status,
                UserId,
                A_Date,
                A_Time,
                MSG_status ,
                Oracle_Flag,
                acl
              );
            dbms_lob.freetemporary(Photo);
          END LOOP;
          -- finalizing
          UTL_HTTP.end_response(l_http_response);
        EXCEPTION
        WHEN UTL_HTTP.end_of_body THEN
          UTL_HTTP.end_response(l_http_response);
        END;
    
    

    Any help is deeply appreciated.

    After I run this I can see your photos. So you're a fan of Winston

    Please note the substr I used on the clob Photo.

    declare
    tmp blob.
    function clobbase642blob (p_clob clob)
    Returns the BLOB
    is
    t_blob blob.
    t_buffer varchar2 (32767).
    number of t_pos: = 1;
    number of t_size: = nls_charset_decl_len (32764, nls_charset_id ("char_cs"));
    number of t_len;
    t_tmp raw (32767).
    Start
    DBMS_LOB.CREATETEMPORARY (t_blob, true);
    t_len: = length (p_clob);
    loop
    When the t_pos output > t_len;
    t_buffer: = replace (replace (substr (p_clob, t_pos, t_size), Chr (10)), Chr (13));
    t_pos: = t_pos + t_size;
    all in t_pos <= t_len="" and="" mod(="" length(="" t_buffer="" ),="" 4="" )="">0
    loop
    t_buffer: = t_buffer | Replace (replace (substr (p_clob, t_pos, 1), Chr (10)), Chr (13));
    t_pos: = t_pos + 1;
    end loop;
    t_tmp: = utl_encode.base64_decode (utl_raw.cast_to_raw (t_buffer));
    DBMS_LOB. WriteAppend (t_blob, utl_raw.length (t_tmp), t_tmp);
    end loop;
    Return t_blob;
    end;
    Start
    for in r_x (select A_id, photo of Appery_Photos for update)
    loop
    tmp: = clobbase642blob (substr (r_x.photo, 24));
    x update
    Set DecodedPhoto = tmp
    where A_id = r_x.A_id;
    end loop;
    end;

  • How/where are the financial reports stored on the file system of the server?

    We recently lost a large part of our reports on our server. We cannot understand what the restore directory location in order to get these reports back. Where is the default directory for 11.1.2.2 financial reports? And in what format the reports are being saved?

    EN reports can be found in the file system of the operating system (o/s), but the EMP workspace hierarchy (folders, tree, etc.) are stored in the database of repository Hyperion bi +.

    On the system of operating system files, the reports are stored in RM1 folder under folder "C:\oracle\Middleware\user_projects\epmsystem1\ReportingAnalysis\data\RM1\root".

    The names of the reports placed here are UUID (identifiers of long - not the actual names).

    For example:

    When a report is created with the name 'My report' in Studio Financial Reporting, by connecting to the EMP workspace will be available in the name of financial reports/folder where it was saved.

    the actual report will be stored in a subfolder of the RM1\root folder on the file system.

    The file name will be a unique identifier (not the real name of the report is 'my report')

    It will be generated 'on the fly' based on various things such as the date and time on the server (i.e. 0000012f5af72b1a-0000-ec71-c0a8006c.00000130510b77bb-0000-5133-c0a8006c.1)

    The meta-data for this report ('My report', that is in the folder in the workspace, the date of the change of the report, permissions on this report, etc) will be stored in the Hyperion bi + DB as an object in an encrypted table. Financial reporting knows what metadata in the Hyperion bi + DB which corresponds to the report, in the file 'RM1\root' because all rows in the table for that object in the Hyperion bi + PB related to 'My report' will be referenced using the UUID of the file (for example 0000012f5af72b1a-0000-ec71-c0a8006c.00000130510b77bb-0000-5133-c0a8006c.1)

    Note: The location of the folder of RM1 differs with each facility's operating system.

Maybe you are looking for

  • My Satellite unit of won't go to the Hibernate

    Hello The problem with my computer laptop satellite is "when I close the lid, the system starts to Hibernate (blue screen of Microsoft) and stay there forever.I tried to change certain settings without help 'I also tried to make the true energy savin

  • Capture registration does not

    Hello everyone. I've been using capture recording for some time, however it has suddenly stopped working properly. When you click the button, while the track still plays it works fine, BUT if you click on the stop button, then press the capture of re

  • Vista can not download updates?

    Whenever I have disable my computer and Vista tries to update before you stop, OR when I go to the windows update area when it stops not and try to get it to update, it is stuck at 0% and does nothing. When I try to do stop updating in the center of

  • My G3620 is stuck in a loop of reboot INF. "auto repair-&gt; set your PC-&gt; repair-&gt; restart everywhere."

    5 months ago, I bought an ACER G3620, supplied with Windows 8 pre-installed on it. When he started upward, it took a long time to load and at this stage only show moving to win8 logo ACER and then welcomed by "automatic repair". Let him charge throug

  • Inspiron 1525

    Hi everyone, just received my new Inspiron 1525, but can't seem to get the installation of "full screen" on youtube, google and other video stream. Can someone advise/help?