Photo does not display

I am using Oracle XE.
I am converting an application from Microsoft Access to Oracle. The pictures came over as I was able to see them via Access.
I am trying to display a picture. This is the Oracle table structure.
Name Null? Type
ID NOT NULL NUMBER
YEAR NUMBER
LAST_NAME VARCHAR2(30)
FIRST_NAME VARCHAR2(18)
NICKNAME VARCHAR2(30)
MID_NAME VARCHAR2(18)
MARRIED_NM VARCHAR2(18)
PARK_SPOUS VARCHAR2(5)
SPOUSE_ID NUMBER
SPOUSE_NM VARCHAR2(50)
BOYS NUMBER
GIRLS NUMBER
GRANDCHILDREN NUMBER
ADDRESS1 VARCHAR2(30)
ADDRESS2 VARCHAR2(30)
CITY VARCHAR2(23)
STATE VARCHAR2(2)
COUNTRY VARCHAR2(50)
ZIP_CODE VARCHAR2(10)
print_address VARCHAR2(5)
DT_VER DATE
STATUS VARCHAR2(10)
PHONE VARCHAR2(14)
PRINT_PHONE VARCHAR2(5)
OTHER_PH VARCHAR2(14)
E_MAIL VARCHAR2(50)
PRINT_EMAIL VARCHAR2(5)
PMEMO CLOB
BIO CLOB
PICTURE BLOB
DOD VARCHAR2(20)
This is the procedure to retrieve the picture.
CREATE OR REPLACE procedure "RETRIEVE_IMG_DATA"
(p_img_id IN NUMBER default Null)
is
Begin
For i In (Select 'application/octet' mime_type, dbms_lob.getlength(picture) picture_length, picture
From parkdale
where id = p_img_id)
Loop
-- dbms_output.put_line('in loop len = '||i.picture_length);
Owa_Util.Mime_header(ccontent_type => 'application/octet');
-- dbms_output.put_line('after header');
-- dbms_output.put_line('in loop header close');
wpg_docload.download_file(i.picture);
End Loop;
Exception
When No_Data_Found Then Null;
When Others Then
-- dbms_output.put_line('error: = '||sqlerrm);
htp.prn('Error downloading picture: '||sqlerrm);
End retrieve_img_data;
I created a PL/SQL Region called Picture
The Type is PL/SQL (anonymous block)
The Region Source is:
Begin
htp.p('<img src="retrieve_img_data?p_img_id='||:P3_ID||'">');
End;
All I get is the Red X.
I also tried to execute straight from IE:
http://127.0.0.1:8080/apex/parkdale.retrieve_img_data?p_img_id=43
and received:
You are not authorized to view this page
What am I doing wrong?
Thanks so much,
Becky

Hi Becky,
I think the issue here is not really related to Oracle XE but rather a conversion issue. Currently you have your images stored in OLE objects. When you view the image the OLE container installed on your machine is used to display the image.
When displaying images on a webpage in a browser there are different rules to follow. Usually you store the image (without the reference to the OLE container) directly in binary format in the database (i.e. a BLOB column). For displaying the image you send the proper mime-type together with the binary representation to the browser.
The browser determines by the mime type which (external) helper application is used to display the content, i.e. MS Word, MS Excel or using built-in mechanisms like the internal gif or jpeg viewer.
Thus you will need to convert the images to a standard image format (i.e. gif or jpeg) and upload them manually again.
Here is the procedure on how to build an upload / download application using Application Express: http://download-uk.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25310/up_dn_files.htm#CJAHDJDA
I think this is your best bet. You might get more help in one of the MS Access forums on how to convert the OLE object to BLOBs for rendering the image in a webpage.
Hope that helps,
~Dietmar.

Similar Messages

  • Photos does not display generic title of image (ex: IMG_2234) as actual title. Is there a way to batch rename all photos using the generic title?

    Photos does not display generic title of image (ex: IMG_2234) as actual title. Is there a way to batch rename all photos using the generic title?

    If you launch Script Editor and open the Help menu, you will see the APpleScript Help and a Language Guide:
    To see, which commands an application understands, open the File menu in Script editor and select Open Dictionary.  In the list locate "Photos".
    You will see examples how o script Photos.

  • Highlighted Photo - Does Not Display

    HELP! (Aperture 2.0.1)
    This just started happening... When I'm working in the Aperture library (within any project), After about five or so minutes of use the viewer just stops displaying the currently selected photo. I can click on any photo, but the viewer does not change to display the selected image. I already went through the basic troubleshooting steps i.e. rebuild library, checked the consistency, etc... Any one else have any ideas?????

    I think I might have found out the issue. I wanted to pass this along just in case anyone else notices this same thing happening to them.
    After a long talk with Apple support and truthfully not getting anywhere, well... somewhat somewhere... (Apple guy you did rock in my book!) I tried to do things one step at a time. What I ended up noticing was that the issue seemed to immediately start happening when I went into an "album" that I created during my use of Aperture 1.5...
    So I just deleted all the albums that I created (which was a bummer, but at least easier to fix than blowing away my entire library like the support gentleman led me to believe was the only solution)
    After this everything seemed to go back to normal.
    I will keep you posted if anything changes. And I'm always willing to be proven wrong if that's the case...

  • HT204291 Using Azul media player app on my ipad  Apple tv will only display sound but not video from movies.  Any ideas on a fix.  I set mirroring to on but it still does not display video.  It will display photos and video recorded from my iphone.

    Using Azul media player app on my ipad  Apple tv will only display sound but not video from movies.  Any ideas on a fix.  I set mirroring to on but it still does not display video.  It will display photos and video recorded from my iphone.

    Here are the steps for AirPlay:
    Before starting Azul from your (running iOS 5.x/6.x) home screen where have have all your apps we need to turn on mirroring
    On your iPhone 4S/5 or iPad 2 or 3, double-click the Home  Button to view your recently-used apps.
    Swipe all the way to the right to until you see the  icon.
    Note: If the icon does not appear, go to the "If AirPlay Mirroring is not visible or available on your mobile iOS device" section.
    Tap the  icon to see the list of available AirPlay devices.
    Enable AirPlay Mirroring in this menu by tapping on an available Apple TV, then sliding the Mirroring slider to ON.
    Now you should be seeing your iPad/iPhone on your TV.
    Start up Azul now and using the settings icon on the top right corner go to the option that say "TV out" ON.
    When you do that you will see an Orange screen
    Now click "Done" and play the video you want to watch and it will AirPlay

  • In iPhoto (09) I can add a description to a photo which will display when running the slideshow, however when I sync the Album to my iPad and I run slideshow the description does not display, WHY?

    In iPhoto (09) I can add a description to a photo which will display when running the slideshow, however when I sync the Album to my iPad and I run slideshow the description does not display, WHY?

    I'd ask that on the iPad forum.

  • MobileMe Gallery from A3 Does not Display Key Photo

    When I post from Aperture 3 to MobileMe, the Gallery preview pic does not display the key photo anymore. Skimming still works, but the preview pic as seen in the gallery is not displayed. Instead of the preview picture, an icon is displayed that is gray with two stacked pictures.
    If I go to me.com and manage the gallery from there, I do see a preview picture but not the key photo. Instead, I see the first photo from the project.
    In Aperture 2, I did not see these behaviors.
    Anyone else seeing this problem?

    Ron Kaplan wrote:
    When I post from Aperture 3 to MobileMe, the Gallery preview pic does not display the key photo anymore. Skimming still works, but the preview pic as seen in the gallery is not displayed. Instead of the preview picture, an icon is displayed that is gray with two stacked pictures.
    If I go to me.com and manage the gallery from there, I do see a preview picture but not the key photo. Instead, I see the first photo from the project.
    In Aperture 2, I did not see these behaviors.
    Anyone else seeing this problem?
    Yes, I noticed this too.
    I can skim the gallery (like an event) but then it just gives a generic thumbnail as the key photo.

  • I have just installed iPhoto 11 and all of photos on my iphone have now all disappeared and ended up in my photo stream and the library in iphoto does not display all my pictures?? Can anyone help?

    I have just installed iPhoto 11 and all of photos on my iphone have now all disappeared and ended up in my photo stream and the library in iphoto does not display all my pictures?? Can anyone help?

    And I cant work out why all of my pictures are not diplaying in iphoto?
    Is this iPhoto on your Mac?  Are you referring to the photos that were in your iPhoto LIbrary prior to the upgrade to iPhoto 11?  If so then apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    If that's not what you're referring to then you should describe what is happening in more detail. Remember we can't see your Mac or your iPhone so need detailed and accurate descriptions of what you're experiencing.
    Also we need infomartion like do you have an iCloud account and are you logged into it on all of your devices, iPhoto and Mac? do you have Photo Stream enabled on both.
    OT

  • Photo App does not display all photos

    Running iOS 7.0.4 on an iPhone 4S. The new Photo App does not display all photos properly. All photos show up as thumbnails. However, when you tap on some of them, only a blank page is displayed. The rest is fine. This issue started after the upgrade to iOS 7. Is this a bug? Hardware-related?

    Upon closer inspection it appears that the missing photos are in a folder called IPhoto Library.  This folder is greyed out when I choose the import folder.
    When I use 'show package contents' it reveals the missing photos (below).  Why is my iphoto library so scrambled!  Thanks for any insight.

  • HELP! Ovi suite does not display Photos only thumb...

    Hi, please help. Ovi Suite does not display Photos saved in my computer. Just getting Default grey image for everything on the thumbnails. OS XP home (Service ack 3). Run the repair and nothing. I uninstalled the application deleted everything to do with Nokia. Downloaded the application again and still the same problem. Nokia Ovi version 3.1.0.84. The only problem is that, Just shows grey thumbnails and no thumbnail photos. See screenshot attatched
    I followed this troubleshooting steps and it still the same issue!..
    Step 1
    - Go to Add/Remove in Control Panel
    - Click Ovi Suite
    - Click Repair.
    Once repair is completed then please restart computer and check.
    If Step 1 didnt work, then try the below step
    Step2
    -Go to Add/Remove in Control Panel
    - Click Ovi Suite
    - Click Uninstall
    Also uninstall the following f
    - Nokia Connectivity Cable Driver
    - PC connectivity Solution
    Then right click my computer, click manage.
    - Device Manager-Ports- If you find anything by name Nokia please unistall ( Dont remove anything else)
    Then reinstall windows Installer from the link provided below
    http://www.microsoft.com/downloads/en/details.aspx​?FamilyID=5a58b56f-60b6-4412-95b9-54d056d6f9f4&di...
    - Then restart computer.
    - Download and install Ovi Suite
    - Restart Computer again
    - Connect the device, dont open Ovi Suite and wait for all the driver to be loaded by windows.
    - Once done then lauch Ovi Suite.
    - Check for the issue
    Attachments:
    Dibujo.JPG ‏83 KB

    I guess sometimes this happens when the direct x is missing or corrupted in the system. Please download and install from the link provided below.
    http://www.microsoft.com/downloads/en/details.aspx?familyid=2da43d38-db71-4c1b-bc6a-9b6652cd92a3
    Make sure you restart the computer when the installation is complete..
    Hopefully this helps
    Show appreciation by clicking the kudos star :-), or gesture by typing thanks

  • OVI SUITE does not display PHOTOS as thumbnails.

    HELP! Ovi suite does not display Photos as thumbnails, see screenshot attached.
    12-May-2011 01:19 PM
    Hi, please help. Ovi Suite does not display Photos saved in my computer. Just getting Default grey image for everything on the thumbnails. OS XP home (Service ack 3). Run the repair and nothing. I uninstalled the application deleted everything to do with Nokia. Downloaded the application again and still the same problem. Nokia Ovi version 3.1.0.84. The only problem is that, Just shows grey thumbnails and no thumbnail photos. See screenshot attatched
    I followed this troubleshooting steps and it still the same issue!..
    Step 1
    - Go to Add/Remove in Control Panel
    - Click Ovi Suite
    - Click Repair.
    Once repair is completed then please restart computer and check.
    If Step 1 didnt work, then try the below step
    Step2
    -Go to Add/Remove in Control Panel
    - Click Ovi Suite
    - Click Uninstall
    Also uninstall the following f
    - Nokia Connectivity Cable Driver
    - PC connectivity Solution
    Then right click my computer, click manage.
    - Device Manager-Ports- If you find anything by name Nokia please unistall ( Dont remove anything else)
    Then reinstall windows Installer from the link provided below
    http://www.microsoft.com/downloads/en/details.aspx​?FamilyID=5a58b56f-60b6-4412-95b9-54d056d6f9f4&di...
    - Then restart computer.
    - Download and install Ovi Suite
    - Restart Computer again
    - Connect the device, dont open Ovi Suite and wait for all the driver to be loaded by windows.
    - Once done then lauch Ovi Suite.
    - Check for the issue
    And this did not work, I also installed DIRECTX and still it did not work, PLEASE I WOULD LIKE THIS TO BE FIXED!
    Regards to all.
    Attachments:
    Dibujo.JPG ‏83 KB

    I guess sometimes this happens when the direct x is missing or corrupted in the system. Please download and install from the link provided below.
    http://www.microsoft.com/downloads/en/details.aspx?familyid=2da43d38-db71-4c1b-bc6a-9b6652cd92a3
    Make sure you restart the computer when the installation is complete..
    Hopefully this helps
    Show appreciation by clicking the kudos star :-), or gesture by typing thanks

  • Design Studio - Display a dummy image when searched photo does not exist

    hello,
    I would like to display an employee photo, which should be searched on the server folder with URL.
    Each photo name in my folder is : "employeeId.png".
    But some employees do not have a photo, and in this case I try to display a dummy photo, which I have in the same folder with employee id 00000000.
    My variables are :
    - URLlink variable is global variable type URL, which gives a path to my folder with employees photos
    - empnb variable is filled with employee id through getSelectedMember on cross table
    - filename variable to search a photo on the server
    - filename0 variable for those employees for which photo does not existe
    I tried to test the existence of an employee photo with getHeigh() method or getImage() method, to check if a photo filename set in Image1 is a real
    one. Cause if a photo does not exist, the Design studio put by default a small black cube inside Image.
    Unfortunatelly these tests are not working .
    My script:
    var filename =  URLlink + empnb + ".png";    // existing employee photo
    var filename0 = URLlink + "00000000" + ".png";  // dummy profile photo
    IMAGE_1.setImage(filename); //Try to put a photo found on the server 
    var height = IMAGE_1.getHeight(); 
    if (height == -1)
    { IMAGE_1.setImage(filename0);   }
    else   {IMAGE_1.setImage(filename);}
    Does anyone have other idea how to test if a photo exist or not in my folder.
    Many thanks!
    Bea

    I do not think it is possible today (at least not via checking of the image size). Such function would require
    * code extension in image component -> boolean IMAGE.exists()
    or
    * could be made by custom image implementation via design studio SDK. This custom image would send a request via Ajax and check response status. in case not existing some dummy images would be placed.
    for both options there are no plans as of today.
    the only option I see today is to generate in the folder "dummy" images for all employes who do not have any real image.

  • Photos page does not display photos in some browsers

    Hi All:
    I published my "Photos" page,
    http://web.mac.com/funkyoldude/
    It appears to work fine on Opera v. 9.24, Firefox v.2.0.0.7, and Safari v. 2.0.4.
    It does not display my photos on Mac IE v. 5.2, AOL v.10.3, and Mozilla v. 1.7.13
    On these browsers I get the message:
    # Exception: ReferenceError
    # Message : detectBrowser is not defined
    Any ideas? That's a lot of folks that can't view my webpage.

    Hi
    Welcome to Apple Discussions
    Best way to reach Apple is to send a Bug Report via the Safari Menu>Report Bugs to Apple. While Apple doesn't respond directly to these notes, the information gets in the hands of Software Engineers at Cupertino.
    Specific to the referenced site, there are multiple code errors, which would contribute to the rendering problem. Safari is a lot more specific about following correct code than other browsers. I suggest passing the Validation report on to the site developers. Good code practices (W3) makes for better uniformity and security on the Internet.

  • Aperture 3 project does not display any images in one Project

    This is a strange situation.  The bullets below outline the situation:
    The project does not display any images
    When I place the pointer over the project it shows there are 500+ images
    I have located the RAW images stored in my aperture library
    I can pull up the images using a smart folder and searching for photos taken on the event day
    This is happening only to one of my projects that I know of (weird!!)
    I have tried to 're-add' the image by both importing and dragging and dropping into the project, neither works
    I tried the following basics:
    Fixed permissions
    Rebuilt the database
    Tried to re-import the data, but when I have the 'don't import duplicates' these are not an option
    Found the images in my Aperture library
    I created another project and drug all of the images into that project
    Any idea how I can fix this?
    My fear is that if I delete the original project, the original master images will be deleted.

    The most common cause of this is some sort of stuff in the search box at the top of the browser that you don't expect to be there. Just clear it and all your images should show up.
    RB
    One note - if you drug your images from one project to another it moves them vs copies them unless you hold down the option key.

  • I have set up iPhoto 11 so that pictures will be edited in Photoshop elements 11.  I selected the option to edit in another application.  But when I select edit in iPhoto, elements opens but the photo does not open in elements.    What is the problem?

    I have set up iPhoto 11 so that pictures will be edited in Photoshop elements 11.  I selected the option to edit in another application.  But when I select edit in iPhoto, elements opens but the photo does not open in elements.  I'm using a Macbook pro 15 inch with retina display with OS 10.8.4  What is the problem?

    http://barbarabrundage.com/2011/10/05/adobe-hide-and-seek-setting-pse-10-as-exte rnal-editor/
    It relates to Elements 10, but it's the same for 11.

  • Main Viewer Window does not display correctly

    Ever since I upgraded to Aperture 3.3 through 3.4.1, the main viewer window does not display correctly.  Everything is justified to the right of the screen.  When viewing images, the are not in teh center, they are over to the right.  I can't even see the import controls when trying to import... actually I can't even press the import button or add metada.  I am really in a bad position here.  Need help with this... anyone out there have a solution please?  my clients are waiting for their photos.  Yikes!
    Right justified?
    No Import Controls?
    Faces -  Everything displayed in a single row, runs off the end of the right side of the screen

    Have a read through this page and follow the directions to delete your application preferences,
    Let us know how you go.
    Tony
    http://support.apple.com/kb/HT3805
    Message was edited by: Tony Gay

Maybe you are looking for

  • Word 2004 for Mac "Notebook"

    Hi, I'm a new Mac user. I've been using Microsoft Word 2004 for Mac's "Notebook" feature to take notes and record the audio for my class lectures. In the last week, my MacBook has locked-up three times when trying to stop the audio recording at the e

  • Moved all my files to my portable hard drive and put them back on my computer but all downloads - music and apps - aren't showing up on my computer

    I had a problem where I had to remove all of my picture, movie, and music files from my computer and now that I've put what I moved back onto my computer, I went to sync my iPod and realized that all of my previously downloaded apps and music files a

  • Bex broadcasting

    hello Prakash Darji, can i select the filter by selected characteristics for the output format as MHTML in the Bex Broadcast email. I am having troubles in selecting the filters. its saying "Filter navigation is not supported with the output format s

  • New Technical System in SLD

    Hi all... I need to point my portal to a ECC 6 instance, but I don't have this product created in my SLD. Can I create this?! Or I need to download something from SAP? Thank's!

  • Best cable modem & router combined?

    I have the Motorola Surfboard SBG900, but was wondering if there are newer (and better) combo cable modem/wireless routers now available. Also, is cable still much faster than DSL, and, if not, are there good combined modem/routers for DSL? Thanks.