Getting images to show in Apex that are stored in the DB

I'm trying to get an image to show in html code or javascript that I store in the DB. It shows in an IR but I can't get it to show in a html <img> tag.
My DB is an oracle XE 11 DB and I'm using Apex 4.
This is my table:
CREATE TABLE "MAP_IMG_POS"
(     "ID" NUMBER(10,0),
     "ID_MAP_IMAGE" NUMBER(10,0),
     "ID_POSITION" NUMBER(10,0),
"ID_SERVER" NUMBER(10,0),
     "CREATION_USER" VARCHAR2(255),
     "CREATION_DATE" DATE,
     "MODIFICATION_USER" VARCHAR2(255),
     "MODIFICATION_DATE" DATE);
I added PK, triggers, sequence etc
I insert the images using an Apex form.
I found this procedure to get the images:
create or replace
PROCEDURE my_image_display(p_image_id IN NUMBER)
AS
l_mime VARCHAR2 (255);
l_length NUMBER;
l_file_name VARCHAR2 (2000);
lob_loc BLOB;
BEGIN
SELECT MIME_TYPE, IMAGE, DBMS_LOB.getlength (image)
INTO l_mime, lob_loc, l_length
FROM map_images
WHERE id = p_image_id;
OWA_UTIL.mime_header (NVL (l_mime, 'application/octet'), FALSE);
HTP.p ('Content-length: ' || l_length);
OWA_UTIL.http_header_close;
WPG_DOCLOAD.download_file (lob_loc);
END my_image_display;
and put it in my schema.
I gave the following grants in my Shema:
GRANT EXECUTE ON schema1.my_image_display TO PUBLIC;
CREATE PUBLIC SYNONYM my_image_display FOR schema1.my_image_display;
I created a html region and added the following code:
<img src="#OWNER#.my_image_display?p_image_id=2"/>
2 ofc being the id of one of the images.
Yet when I load the page the image won't show. I do get a little icon when I right click it and check the code I just see:
http://127.0.0.1:8080/apex/SCHEMA1.my_image_display?p_image_id=2
Any ideas what I'm doing wrong? I'm also open for suggestions on other ways to do this..
I appreciate all the help!

After a long search and much much reading..
Re: HTP.Print not working
This finally helped me ;-)

Similar Messages

  • Cant get iMovie08 to show all photos that are in iphoto.

    Can't get iMovie08 to show all photos that are in iphoto.
    only shows about 30, when there are actually about 60 or so in one album.
    any ideals?

    Can't get iMovie08 to show all photos that are in iphoto... only shows about 30, when there are actually about 60 or so in one album... any ideals?
    Do the photos display correctly in the media browser when the mail library ("iPhoto") heading is selected? If so, you could simply add the photos from the library rather than the specific album. Alternately, if you have to select your photos from an "album," you could try reselecting the photos in the main library in the iPhoto application and create a different album to see if all photos then show up in the secondary album in the iMovie media browser.
    If the "missing" photos do not show up under the main "iPhoto" heading in the iMovie media browser and do not show up in the main library in the iPhoto application, then the files may be corrupted. In this case, simply re-import the original files if possible. You could also try to force a rebuilding of the thumbnail cache, but this is usually done automatically when the application itself detects inefficiencies in thumbnail access or when the application is updated. In any case, there does not appear to be a manual menu option to do this arbitrarily when the user so desires. I suppose you could try to locate and delete the cache manually and hope this forces an automatic rebuild the next time the iPhoto application is opened but I am personally not that familiar with the package structure to advise such action at this time. You might check the iPhoto forum and see if anyone can help you further in this area of endeavor.

  • I am using an Macbook pro in conjunction with a Time Capsule. I back up all my aperture librarys on it, but how can i view these images that are stored on the capsule please ??

    I am using an Macbook pro in conjunction with a Time Capsule. I back up all my aperture librarys on it, but how can i view these images that are stored on the capsule please ??

    If you want to see what is in a file that is backed up by time machine then you have to restore the entire file. Having said that I have had good experience with Time Machine and individual files... if the file is there then all of it's components are almost for sure there. A way to get around this in Aperture would be to use referenced images. The images then still exist as individual files and can be backed up and restored individually. You would have to do so on a file by file basis though and your album information would still only be saved within the Aperture library.

  • Check if in Word document (Word 2013) advanced option "Use fonts that are stored on the printer" is set

    Is it possible in a VBA macro to check whether an opened word document has the advanced option "Use fonts that are stored on the Printer" is set.
    I have a word macro that opens and processes thousands of word documents.  The processing needs to be different based on whether this option is set or not.
    Thanks,
    Harry Spier
    Harry Spier

    Hi Harry,
    I'm afraid that we're not able to retrieve this option value. The Advanced Options are actually stored as application level. Some of the options can be accessed with the Word.Application.Options property. But there're also many options that are not
    exposed in the Word Object Model. As you can see in this figure, there's no property corresponding to "Use fonts that are stored on the printer":
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HT204053 I have just bought a new iPad but I can't see how I can sync all my iPhone photos that are stored on the iCloud onto my iPad. Can someone help?

    I have just bought the new iPad but can't see how I would sync all my iPhone photos that are stored on iCloud onto my iPad. Can someone help?

    Photos on the camera roll can be included in an icloud backup from an iOS device (if camera roll is turned on).  But getting the photos back from a backup is risky.  Many users have performed restore operations from a backup only to discover the photos were not returned.  icloud is primarily used to sync photos to other devices using photo stream - but only new photos taken after the stream is turned on in Settings>icloud will actually be synced, not old photos.
    Settings>icloud>Storage & Backups>Manage Storage,  tap the device's name and on the next screen, be sure Camera Roll is turned on.
    IMPORTANT...
    Photos should be regularly synced to a computer (like you store photos from a digital camera) using either USB via iTunes (on a mac use iPhoto or Aperture to move them to an album).  You can then sync the photos to the iPad.
    http://support.apple.com/kb/HT4083

  • How to get photos off an iPad 2 that are not from the camera roll?

    I have photos from previous iPhones and digital cameras on my iPad 2. I do not have the original laptop I used to put them on the iPad. How can I transfer them from this iPad to a different laptop? I do not want to lose them.

    To copy photos that were originally synced from a computer you will need a third-party app on your iPad such as Simple Transfer which can copy them to a computer via your wifi network. But as photos are 'optimised' when they are synced to the iPad, any that you then copy back to a computer may not be exactly the same as they originally were on your computer.

  • Why does Thunderbird 31.1.2 see .url files as text documents? As a result, opening with any browser shows only text that are properties of the .url.

    I have an email with .url attachments. When I click on them I get a messages similar to this:
    You have chosen to open: Test.url
    which is: Text Document (5.0KB)
    from: mailbox://
    What should Thunderbird do with this file?
    If I select "Open with Firefox" I get a local page open up in Firefox with the address:
    file:///C:/Users/Scott/AppData/Local/Temp/Test.url-1.txt
    and the contents of this page:
    [InternetShortcut]
    URL=http://www.vrbo.com/xxxxxx
    IDList=
    IconFile=http://resources.vrbo.com/resources/xxxxx/images/favicon.ico
    IconIndex=1
    [{000214A0-0000-0000-C000-000000000046}]
    Prop3=19,2
    If I choose to save the .url file to the desktop it opens correctly in Firefox.
    Can someone assist me with this?
    Anyone???

    This issue can be caused by an old bitmap version of the Helvetica or Geneva font or (bitmap) fonts that Firefox can't display in that size.
    Firefox can't display some old bitmap fonts in a larger size and displays gibberish instead.
    You can test that by zooming out (View > Zoom > Zoom Out, Ctrl -) to make the text smaller.
    Uninstall (remove) all variants of that not working font to make Firefox use another font or see if you can find a True type version that doesn't show the problem.
    There have also been fonts with a Chinese name reported that identify themselves as Helvetica, so check that as well.
    Use this test to see if the Helvetica font is causing it (Copy & Paste the code in the location bar and press Enter):
    <pre><nowiki>data:text/html,
    Helvetica<br><font face="Helvetica" size="25">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</font><br>
    Helvetica Neue<br><font face="Helvetica Neue" size="25">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</font>
    </nowiki></pre>
    You should reset the network.http prefs that show user set on the about:config page.<br />
    Not all websites support http pipelining and if they do not then you can have issues with images or other problems.
    See also http://kb.mozillazine.org/Images_or_animations_do_not_load#First_steps

  • How do I change my apple Id with out loosing my files that are stored on my mac

    I would like to change my apple Id.  When I tried to log out of iCloud the program warned me that all files that are stored on the cloud will be deleted from my mac.  I would just like everything to remain untouched and begin using a different apple ID

    Hi Alan,
    If you wish to use different Apple IDs for different Apple services on your Mac, you should follow the steps in this article -
    Apple ID: What to do after you change your Apple ID - Apple Support
    Thanks for using Apple Support Communities.
    Sincerely,
    Brett L 

  • When I copy a CD onto my macbook pro I sometimes get several songs that are "out" of the album.  How do I get them all together in one album?  Any help will be much appreciated!

    When I copy a CD onto my macbook pro I sometimes get several songs that are "out" of the album.  How do I get them all together in one album?  Any help will be much appreciated as I cannot seem to find the solution to this problem in the troubleshooting section of iTunes.

    Generally all you need do is give tracks from the same album a common Album Artist. See Grouping tracks into albums. The images need an update but the basic info. still holds.
    tt2

  • After I've heard an audiobook downloaded from the public library, how do I delete it from the Shuffle?  When I plug it into my computer, I get a screen showing how much space is left on the Shuffle but no list of files that I can delete.  WRA

    After I've heard an audiobook downloaded from the public library, how do I delete it from the Shuffle to make room for other audiobooks?  When I plug it into my computer, I get a screen showing how much space is left on the Shuffle but no list of files that I can delete.  These books, incidentally do not appear in the ITunes screen.  WRA

    Select the iPod shuffle in the iTunes sidebar (under DEVICES).  If this is a current 4th (or 3rd) gen iPod shuffle, you should be able to see the contents of the shuffle by type, intented under the shuffle's name (still in the sidebar).  Select Music or Audiobooks (not sure where those items from the library will be listed).  The items will be listed to the right, for each category.  Find the items, select, and delete.
    It's on page 20 of the manual
    http://manuals.info.apple.com/en_US/iPod_shuffle_4thgen_User_Guide.pdf
    NOTE:  If this is an 1st or 2nd gen iPod shuffle, select the iPod shuffle in the iTunes sidebar (under DEVICES).  Over to the right, go to the Contents tab, where the items are listed.  Select and delete them from this list.
    I find it more convenient to make a playlist in iTunes with things I want to put on the shuffle.  I then set up automatic syncing (or use autofill) to have iTunes load the shuffle from that playlist, automatically.

  • Photos in album are only a hash-marked outline the image only shows when scrolling how can I see the image and open the photo?

    Photos in iPhoto album are only a hash-marked outline the image only shows when scrolling how can I see the image and open the photo?

    Make a temporary, backup copy (if you don't already have a backup copy) of the library and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    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 but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • People refinement panel not showing filters that are based on the taxonomy

    Hi,
    I am just wondering if anyone have experienced the problem below or anyone has a solution:
    I have set up enterprise search center and have left the People Refinement panel as default without changing or modifying the web part.  However, the people refinement panel is only showing the "View" filter category and the other default
    categories that are based on the taxonomy  the managed data properties are not getting displayed.  Also, when I search for a specific managed property that is mapped to a user profile property that is based on the taxonomy - I did not get any result.
    The only related error I found was in the ULS log which start with below logs from the Query Processor category of SharePoint Server Search in ULS:
    "Claim http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier: [domain\username] cannot be converted into SPClaim. Argument is an invalid original issuer identifier.  Parameter name: originalIssuer"
    The screen shot below shows more of the ULS log.
    It will be helpful if any one has experience this and can advise.
    Thanks
    SO.

    Hi all,
    further info on above problem below:
    I have really look into the ULS logs further down again and discovered a more likely cause of this problem is that a query likely issued by Query Processor is returning zero (0) results at ULS log entry below:
    GetRowsReturned 0 rows   [svcproxy.cxx:523]  d:\office\source\search\native\ytrip\tripoli\bigtable\svcproxy.cxx
    More details below:
    Does anybody knows what line 523 in svcproxy.cxx mean and how to investigate further?
    thanks
    SO

  • When I use the HP printer scanner diagnostic shows 2 devices that are no on my network.

    When I use the HP printer scanner diagnostic shows 2 devices that are no on my network.   The program cannot communicate with them (duuh! But they show up every time I run the diag program.  How does the program even find them?  Is there something in my registry?  Thisis NOT at all a killer, just a PITA.   Any suggestions are appreciated.
    Thanks
    John Schroeder 

    Thanks for the response.  I am going to take the "If it ain't broke ..." path   Not worth the effort to track it down. 
    But, if someone from HP wants to pipe in and say where they get the list of printers in the diagnostic, I am all ears - just curious!  And, maybe they will add a feature to delete these spurious "printers" in a future release of the diagnistic.
    Thanks Again!
    John

  • There are about 8 songs in a playlist on itunes that are listed in the playlist but cannot be transferred to my ipod because it states: "..the original file could not be found." When I try to locate the song I get a list of the different music librar

    There are about 8 songs on a playlist that are listed in the playlist library but when I try to transfer them to the playlist, it states that they can't be transferred because the original file could not be found. Then it asks, do you want to locate the file but when I try that I get a few libraries but am not sure how to locate the particular songs. Some of the songs were purchased and some were transferred from a CD. I have seen the same question asked on the help page but haven't found an answer.
    Thanks.

    Hi dones49,
    It sounds like your issue here is that iTunes can not find the files for some of the songs you have brought into it. This happens occasionally even if the songs have not been moved from the location that iTunes places them on import or purchase. When you try to use the song, iTunes prompts you to find the file, as you have seen.
    To find the file, use the information in this article to navigate through the iTunes media folders -
    Locate and organize your iTunes files
    If you are still unable to locate the files, you may need to download them from the iTunes store again, or rip them from your CDs. See this article for assistance with downloading your past purchases -
    Download past purchases
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • HT201322 itunes 11.0.3 - in my iTunes library I can no longer see purchased TV shows and Movies that are not downloaded to my computer. also In my Itunes account i have no hidden TV shows or Movies

    I'm running itunes 11.0.3 -
    in my iTunes library I can no longer see purchased TV shows and Movies that are not downloaded to my computer.
    In my Itunes account i have no hidden TV shows or Movies
    I used to be able to view all cloud and downloaded content.  I no longer can.

    There used to be option to show items that are in the cloud in your library, but I can't find where that now is (unless it's been removed). You should be able to see what items that you can re-download via the Purchased link under Quicklinks on the right-hand side of the iTunes store home page (at the top right of that there should be a 'not on this computer' button)
    Edit : Just seen your reply, though I don't appear to have that setting on mine.

Maybe you are looking for

  • Logo in body of Mail message

    How do I send a message with Mail that has a logo in it that I want to show in the body of the message, not as an attachment?

  • Global messages and inilne messages both are being displayed

    Hi, I have a page index.xhtml in which i am including another page header.xhtml like this <ui:insert name="header">                <ui:include src="header.xhtml" />           </ui:insert> my header.xhtml is <?xml version="1.0" encoding="UTF-8"?> <!DO

  • Premiere Elements 7

    We have some students working on a project using Premiere Elements 7. Their project is almost done. When they try to put in text in their titles the program tells them that there is an error and shuts down. I am not familiar with the program so I nee

  • Generate multiple PDFs using FOP

    Hello, please take a look to the following code snipplet it is intended for the generation of a PDF document. The PDF-content is written to an OutputStream which works quite well. The problem is that I want to append some more PDF content to the Outp

  • Error working with a mapviewer baseurl of a different machine

    I've developed a web application and my mapviewer base url reside on a different machine. The map doesn't appear... i get error: f16.f45[...].0 is null or it'snt an object... I think mapviewer isn't reachable, a similar web application deployed on th