Simple method to display the pictures stored external oracle xe, in a region of html

Hallo!

I've created an html area on my Apex (4.0.1) pages and I want to display an image (and), which is stored in a folder of OS inside this region!

What is the easiest way to do this?

Is it possible using the URL or better through B-file.

There is here a small tutorial or any code sample?

Thank you

Hello

Here's how you can show images from the folder on the server:

This is just example and suppose you create the new application.
I assume that your XE database is windows machine.

Connect to SQL plus as SYS and create the directory

create directory my_img_dir as 'c:\my_images\';

Grant privilege read on directory (ANONYMOUS) user to DAD

grant read on directory my_img_dir to anonymous;

Grant privilege read on directory to your application to the analysis of schema. Modify the "my_schema".

grant read on directory my_img_dir to my_schema;

Create the new application and 2 blank pages. I guess the first page (id 1) is where you show images.
Second page (id 2) is just for the appeal process.

Create point of application process "on the cloth: before the header."

DECLARE
  l_lob     BFILE;
  l_length  NUMBER;
BEGIN
--
  l_lob :=  BFILENAME('MY_IMG_DIR', :REQUEST);
  l_length := DBMS_LOB.getlength(l_lob);
  --
  htp.flush;
  htp.init;
  --
  htp.p('Content-length: ' || l_length);
  --
  htp.p('Content-Disposition: filename="&REQUEST."');
  --
  -- close the headers
  owa_util.http_header_close;
  --
  -- download the BLOB
  wpg_docload.download_file(l_lob);
--
END;

Make the process conditionally if the page is 2.

Region HTML on page 1 to create and place the source of the region


Replace "my_picture.gif" with the name of the image you have in the folder c:\my_images. The image name is case sensitive

Kind regards
Jari

Published by: jarola November 18, 2010 02:36

I notice that you mention your OS.

Above statement replace c:\my_images\ by/var/my_images for example.
Make sure that "others" have read permission on folder and files it contains the image.
Group and owner of the folder can be for example root

Tags: Database

Similar Questions

  • How to display the value of a javascript variable in a region of html?

    Hello

    I need to show my title of the page or in a region of html.
    I added a script in the < title > section header of style...:
    (Thanks to Andy: page attributes Get page name? )
    <script type="text/javascript">
    var pageTitle = '#TITLE#';
    </script>
    ... so I can use it in a javascript variable.

    But now I don't know how to view in html syntax...

    Thank you!
    Fanny

    ... so I can use it in a javascript variable.

    See no reason to change the templates to introduce a needless global JS variable when the document property is already there. Display using an appropriate HTML element, for example h1 if it's the overall page header.

  • When I started to update my iphone to ios 10 and watch 3.0, cannot already display the pictures of my watch. Logo of loading only. And he thinks it will take a hayss of 1000 years. Help, please

    When I started to update my iphone to ios 10 and watch 3.0, cannot already display the pictures of my watch. Logo of loading only. And he thinks it will take a hayss of 1000 years. Help, please

    Hello

    If the software on your watch is being updated, leave your watch and your iPhone until the process is complete (including the not remove your watch on the charger):

    Update the software on your Apple Watch - Apple Support

  • Lightroom does not display the picture in the menu develop, displays a blue spot

    Yesterday, I installed the update to Lightroom. After this update, Lightroom does not display the picture in the menu develop instead, it displays a blue spot. Is this due to a setting? Or a problem with Lightroom? When I split the main display pane, before / after, forward section image is displayed correctly, but the section after just shows the blue flat patch. What could be the problem and how to solve? s ' please see the screenshots.

    Lightroom_issue_10Jun2016.jpgLightroom_issue_10Jun2016_2.jpg

    Go in Edition > Preferences > Performance and uncheck CPU graph use.

    If you're updating your graphics driver, it may be possible to work with this option enabled.

  • What is the difference between the following methods to display the...?

    What is the difference between the following methods to display the plan to explain it?
    PLAN of EXPLAIN for SQL statements
    package dbms.xplan

    Thank you

    You are mistaken in thinking that they are alternatives.

    EXPLAIN the PLAN meets the PLAN_TABLE.
    Only after that can you use either of
    SELECT... FROM PLAN_TABLE
    or
    SELECT * FROM TABLE (DBMS_XPLAN. DISPLAY);

    Unless you are using DBMS_XPLAN. DISPLAY_CURSOR directly on a present cursor in the shared pool, the PLAN to EXPLAIN is still a sine qua non for DBMS_XPLAN. DISPLAY.

    Hemant K Collette
    http://hemantoracledba.blogspot.com

  • Where are the pictures stored when taking a picture using the Microsoft Lifecam HD 6000?

    Microsoft lifecam hd 6000 image storage

    Hi all

    Does anyone know where the photo store, after I take photos using microsoft lifecam hd 6000?

    Thank you.

    You can check if the pictues were stored in the folder %Temp%.

    Click on Start and then run.

    In the text box on the run window, type %temp% , and then click OK.

    A folder full of files and other folders will appear.

    You can search by the date field for the day that you were using your WebCam. If the pictures are not saved, you can search for them by name. If you cannot find them by searching, photos no longer on your computer.

    If you want to increase the space available, all the folders and files that you see in this Temp folder are no longer used by Windows XP and can be deleted safely.

    To remove files or individual files, hold your Ctrl key while clicking on each item you want to remove. Release the Ctrl key when you are finished.

    To remove these items, press your delete key or choose file , then delete from the menu.

    Confirm that you want to delete the files by clicking Yes in the window to confirm deleting multiple files that opens.

    After all the files have been deleted, you can close the window and empty your trash, permanently remove the files from your PC.

    To ensure that the pictures of the webcam are saved for next time, you need to manually back up.

    Let us know if that helps.

    Marilyn

  • Pavilion 15-p017AX: I'll see the photos on the laptop in different places, instead, it is black instead of display the picture

    Hello world

    thought I'd post here to try to fix a problem with my laptop. Im not computer warned, not so no idea where to start.

    So when I go into my pictures, is not serious if I'm a view of a key USB, SD card or simply in a folder on my laptop at the moment I saw the third picture, is no longer a photo, it is only black where the picture is supposed to be.

    I always do the updates of the day they come out, so Im assuming that is not not to do an update. I have no idea on the orders of the computer so hoping that someone is able to help me and explain a solution in laymans terms please. I have attached a photo that is supposed to be my dog, but is just a black screen.  Thanks for reading!

    Hello

    There is a problem that seems to affect a small number of machines where the jpeg decoding dll ATI is at fault - you could try the following to see if this is the cause in your case.

    Close all windows in Windows Photo Viewer.

    Open Windows File Explorer, click this computer in the left pane and then double-click the Windows C partition that is shown in the main window.

    Now open Program Files, open the common files, open ATI Technologies , and open media.

    Locate the two files for each one in turn and following, right click and select Rename ( Note: what you change the name is actually unimportant, but it may make sense to use the suggestions I made below inorder to reverse this change easily if it is not correct the problem - also, in both cases, when you click on enter) (, you also need to click continue at the command prompt Admin before the name change is applied)

    AMF-wic-jpeg - decoder32.dll change to jp32.dll then you can tap on enter

    AMF-wic-jpeg - decoder64.dll change to jp64.dll then you can tap on enter

    Reboot the laptop and let Windows load completely for a few minutes before you check if you can now view your photos.

    Kind regards

    DP - K

  • HP TouckSmart PC 520: HP Photo Viewer cannot display the picture

    When I double click on an image, the image file is not displayed and an error message is displayed: "the application failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe.

    How to do photo viever works again?

    Microsoft's answer is to run their dose. Found here.  You must run the 64-bit version.

  • Display the picture as Camembert

    Hi all,

    I develop BlackBerry app, because I need to display the image as circularly as graphical representation. For example, now I have 10 different image I want to display in a circular path (round shape) and also all the images have separate FieldChangeListene.

    is this possible?

    Possible means pls explain how to use and give me code examples if you can...

    Thank you

    PAPI M

    Take a look at the graphics class, all access low level is there.
    I doubt you can do it this way.

  • Windows Photo Gallery, not able to display the pictures in mode full-screen widescreen

    Photo look an _

    Hello, I was wondering if someone could help me.  In the windows photo gallery when I choose to display my screen full of pictures, it only shows the mode full-screen widescreen.  Instead, they are centered in the middle with two black lines down on part of the photograph.  I would like the image to fit the full screen. Anyone know how I can get around this problem?

    Hi WildRavin,

    This happens because the resolution of the monitor screen does not match the dimension of the image.

    Try matching the dimension of the image and the screen resolution or lower the resolution of the monitor screen and correspond to the dimension of the image, and check the results.

    Change the size or resolution of an image:http://windows.microsoft.com/en-US/windows-vista/Change-the-size-or-resolution-of-a-picture

    Working with digital images:http://windows.microsoft.com/en-US/windows-vista/Working-with-digital-pictures

    Change the screen resolution:http://windows.microsoft.com/en-US/windows-vista/Change-screen-resolution

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Y at - it a simple method to move the new images in an album existing?

    I don't understand why it must be so difficult just to get a new image into an existing album! It seems to me that Adobe has created a simple workflow method to accomplish this simple task. After watching of many FAQ questions / answers, it looks like a number of people have asked the same question but also received a large number of responses of type "get around" to move the images in an existing album.

    For example, one method was to create a new album with a smilar name, then merge the album into existing 'main' album. There must be an easier way to get this done.

    Thank you.

    Happy to help you.

  • Cannot display the picture on the side window and navigator-box

    I just installed on my PC (windows7) LR3.

    Whenever I have import photos to LR3, these pictures do not display any image but a gray square blanket. Like this

    lightroom blanky.jpg

    No matter who else has experienced this problem too?  Any suggestions as to what might be the popular cause. I have hundreds of photos that are my homework to finish this month, and I don't know how to solve this problem.

    Thank you


    Rogissart

    The usual culprit is a monitor corrupt profile. As a temporary solution, switch the default monitor on sRGB profile in Control Panel. For a more permanent solution, you will need to re - calibrate your monitor.

  • Navigate to a Web page from the pictures stored outside

    I have a flash piece that chages just the image displayed on the screen. The images are stored extrenally if I can easily change out them occasionally.  It is possible to navigate to a web page, if you click on an image? If so, how is that contradict or you can direct me to where I can find how to do this? Sorry, if this is a basic question, I'm kinda a rookie.

    Thanks for your help.

    Kate

    Your stupid bet is to place the image into a movieclip and affect the code by clicking on to the movieclip.  The code you assign depends on what version of Actionscript, you use.  So depending on who it is, try searching Google is:

    «getURL AS2»

    or

    "AS3 navigateToURL.

    and you can try adding "tutorial at one of these institutions.  They can meet in the Flash help documents if you look here, perhaps with a few examples.

  • Can I display the password stored in Thunderbird used to access my e-mail

    Want to be able to access my email on my phone, but I don't remember the password for an account. Can not get by the provider, but is stored in Thunderbird

    tools-options-security-passwords - saved passwords
    Use the tools on the menu bar. If the Menu bar does not appear, press the ALT key.

  • Display the pictures and videos on iCloud drive app issues

    Hello

    My iCloud drive is enabled in my iPhone 6 + and iPad Pro and on the Apple TV. I can see all the photos and videos on my Apple TV. However, when I opened the iCloud reader app on my iPad Pro, no photos or videos are indicated. He is white, except for a couple of documents. I have a subscription of 200 GB and 157GB of available, but nothing shows up on my iCloud drive app in my iPad Pro. Ditto for the iPhone 6 + if I was made to understand the elements are all in the camera app. I took almost all of my pictures and videos on my iPhone and these are uploaded to the icloud drive. Please give me some suggestions as to why they do not appear on my iPad Pro but are visible on my Apple TV. I signed in with the same username and password to iCloud.

    The photo aren't in the iCloud drive application, which concerns the documents.

    Here's what you do;

    You are using Safari go iCloud.com on iPad Pro.

    Once there hold your finger on the circular at the end of the URL field arrow until the Bureau request website. Tap the Office application site.

    Connect to your iCloud account.

    Press photo icon.

Maybe you are looking for

  • No message cannot be opened.

    Messages can be sent, but none openChubb cabinNo I will open

  • Update of Qosmio G50-12 q

    I have a Toshiba Qosmio G50 - 12 equipped q of the Windows Vista Ultimate operating system.I asked the Toshiba if it weren't harming pc upgrade this system to Windows 8 and they said that it might be precisely the difficulties is that this pc do not

  • New Firmware Bug - 1.02.26

    To Sandisk... Have updated the new firmware and have found a bug. Earlier, I tried to delete a video. The video has been removed, but the entry (name) was still in the list. When I tried to play the deleted video once again the player has frozen. Had

  • CTRL + ALT + DELETE to open two windows in each time

    Windows Explorer opens two windows after logging in (for Windows) Is the windows path: C: \ Documents and Settings------all users------Start Menu-Programs What can I do to remove this problem? Thanks for all the answers.

  • How to use more than 1 browser? I don't want to lose my bookmarks on IE when I switch to Chrome.

    I installed the two Firefox Chrome & sometimes, but they uninstalled because I was not able to access my favorites of IE. How to install Chrome & keep IE as my default browser?