Problem in displaying image when running a jad file

I have written a midlet which displays an image in the welcome screen and then shows the main menu for the application. WHen I try to run the code directly from the console by using the command "midp -classpath . teledoc", the code runs fine and also displays the image which is stored in the same directory as the class files. Now i made a jad file so that i can install it on the mobile phone directly but while running the jad file it gives an error that "unable to locate and read the png file". Can anyone tell me why it is happening. I am attaching the code for the midlet below. Also the jad and manifest.txt files are attached.
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import java.io.*;
public class teledoc extends MIDlet implements CommandListener{
private Display display;
private List list;
private frmreg frmsub;
private frmconsult frmsub1;
private frmread frmsub2;
private frmread_con frmsub3;
private Command cmdexit;
private Command cmdexit1;
private Command cmdreg;
private Command cmdconsult;
private Command cmdread;
private Alert altest;
public teledoc(){
display=Display.getDisplay(this);
frmsub = new frmreg("New Registration", this);
frmsub1 = new frmconsult("New Consultation", this);
frmsub2 = new frmread("Select User", this);
frmsub3 = new frmread_con("Select User", this);
try{
     Image imgmain=Image.createImage("/teledoc.png");
     Image im1[] = {Image.createImage("/teledoc1.png"),Image.createImage("/teledoc1.png"),Image.createImage("/teledoc1.png"),Image.createImage("/teledoc1.png"),Image.createImage("/teledoc1.png"),Image.createImage("/teledoc1.png")};
     String options[] = {"New Registration", "Edit User Info", "New Consultation", "Edit Consultation", "Doctor's Reply", "Exit"};
     list = new List("Main Menu", List.IMPLICIT, options, null);
cmdreg=new Command("New Registration", Command.SCREEN,3);
cmdconsult=new Command("New Consultation", Command.SCREEN,4);
     cmdread=new Command("Edit User Info", Command.SCREEN,5);
     cmdexit1=new Command("Exit", Command.SCREEN,6);
cmdexit=new Command("Exit", Command.SCREEN,2);                    list.addCommand(cmdexit1);
list.setCommandListener(this);
catch(java.io.IOException e)
System.err.println("unable to locate");
public void startApp(){
try{
Image im=Image.createImage("/teledoc.png");
altest = new Alert("Welcome to TeleDoc", "", im, AlertType.INFO);
altest.setTimeout(2000);
catch(Exception e){
System.out.println("Unable to Read PNG Image :");
displayteledoc1();
public void displayteledoc()
display.setCurrent(list);
     public void displayteledoc1()
display.setCurrent(altest, list);
public void commandAction(Command c, Displayable s){
//if(s==list){
if(c==list.SELECT_COMMAND){
          switch (list.getSelectedIndex())
          case 0:
display.setCurrent(frmsub);
          break;
          case 1:
display.setCurrent(frmsub2);
          break;
          case 2:
display.setCurrent(frmsub1);
          break;
          case 3:
display.setCurrent(frmsub3);
          break;
          case 4:
          break;
          case 5:
destroyApp(false);
          notifyDestroyed();
          break;
if(c==cmdexit1){
destroyApp(false);
notifyDestroyed();
//manifest.txt file
MIDlet-Name: teledoc
MIDlet-Version: 1.0
MIDlet-Vendor: Jiva Research Institute.
MIDlet-1: teledoc, /teledoc.png , teledoc
MicroEdition-Profile: MIDP-1.0
MicroEdition-Configuration: CLDC-1.0
////teledoc.jad file
MIDlet-Name: teledoc
MIDlet-Version: 1.0
MIDlet-Vendor: Jiva Research Institute.
MIDlet-Jar-URL: teledoc.jar
MIDlet-Jar-Size: 18546
MIDlet-1: teledoc, /teledoc.png , teledoc

The problem probably isn't in you code, nor manifest nor jad file, but in the package process. Your image have to be in the root dir of the .jar file, but it isn't there. Try to see what is in you .jar with your favourite compress tool or with this command:
%JAVA_HOME%\bin\jar -tfv <yoursuite.jar>

Similar Messages

  • Problem in displaying images one by one in JList

    I have a problem in displaying images one by one in Jlist. I want to show 100 images as a thumbnailview in jlist but it is talking too much time to show all the images after scalling 100 images to thumbnail view and making it into ImageIcon. So, i thought that it would be better way to show one by one after scaling it into thumnailview. But my renderer is getting calling after 100 images scaled down and setting into list. I have posted my code 2 days back but there is no reply.
    http://forum.java.sun.com/thread.jspa?threadID=789943
    I donno where i am missing in this code.
    Plz suggest me some solution for it.

    Where is the scaling done? In the ListCellRenderer? Regardless of where that is being done, I assume you are caching the scaled images after you scale them, right? If not, consider adding some sort of caching.
    This should do the trick...
    Rework your ListCellRenderer to check to see if a scaled version of the image is available. If not, start a thread to do the scaling and create an ImageIcon. In the meantime, while that thread is running, have the renderer return some sort of stock icon, like a little generic image icon. When the scaling thread completes, make a call to repaint() on the JList so the cell renderer gets re-asked for the icons. This time around, the renderer should notice that a scaled version (the ImageIcon) is available. Return that. So, this method doesn't guarantee that the images will be produced in order, 1...2...3..., but it will return images as they become available, and the overall JList rendering won't wait until all 100 are ready. If you want them returned in order, just do all of the scaling in a single thread and queue up the images to be scaled, in order.
    I hoped this helps. (If it does, please throw me some Duke Dollars.)

  • Problem in displaying images

    Dear JSP/Servlet experts,
    I have problem in displaying images on a JSP page. I stored all the images names in a database and
    try to retrieve them based on the user selection. When the JSP page is load for the first time the
    following error occur but the images are displayed correctly:
    2002-08-07 04:40:15 - Ctx( /simple ): IOException in: R( /simple + /images/cover150.jpg + null) Connection aborted by peer: socket write error
    2002-08-07 04:40:15 - Ctx( /simple ): IOException in: R( /simple + /images/cover154.jpg + null) Connection aborted by peer: socket write error
    2002-08-07 04:40:15 - Ctx( /simple ): IOException in: R( /simple + /images/cover152.jpg + null) Connection aborted by peer: socket write error
    2002-08-07 04:40:15 - Ctx( /simple ): IOException in: R( /simple + /images/cover151.jpg + null) Connection aborted by peer: socket write error
    2002-08-07 04:40:15 - Ctx( /simple ): IOException in: R( /simple + /images/cover156.jpg + null) Connection aborted by peer: socket write error
    Here is the code to display the images(the getCover() method will return cover150.jpg, cover151.jpg.... )
    and the images are stored in /simple/images folder
    <td><a href="<img src="/simple/images/<%= b.getCover() %>" alt="details"></td>

    try this
    <img src=/simple/images/<%=b.getCover() %>
    vasanth

  • Problem with displaying image

    Hello!
    Sorry, I'm a beginner in APEX and have some problems with displaying images in my application. I have read the same topic but unfortunately didnt find the solution.
    So.. I have the interactive report
    table test (
    NAME NOT NULL VARCHAR2(4000)
    ID NUMBER
    BLOB_CONTENT BLOB
    MIME_TYPE VARCHAR2(4000))
    I need to display the column blob_content.
    Thnks a lot.

    1009316 wrote:
    Hello! Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your forum profile with a real handle instead of "1009316".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    Sorry, I'm a beginner in APEX and have some problems with displaying images in my application. I have read the same topic but unfortunately didnt find the solution.
    So.. I have the interactive report
    table test (
    NAME NOT NULL VARCHAR2(4000)
    ID NUMBER
    BLOB_CONTENT BLOB
    MIME_TYPE VARCHAR2(4000))
    I need to display the column blob_content.This is described in the documentation: About BLOB Support in Forms and Reports and Display Image. There's an OBE tutorial that followed the introduction of declarative BLOB support in 3.1 as well.

  • PDFs not displaying images when opened in Google Chrome.

    My PDFs are not displaying images when opened in Chrome. They do display in other browsers and when saved to the desktop. I have tested on multiple machines. Is there a problem with how they are saved? Here is a test: http://www.omnils.com/userfiles/files/Brochures/KL-003_REV_0914_APEX_CR_SPEC_SHEET_lo.pdf

    "... a known Chrome issue."  The resolution lies with Google for this - nothing you can do (other than disable the "in house" browser add-on and enable Adobe's (if you have Reader or Acrobat installed)).
    A similar issue exists with other, contemporary, browser releases.
    The "fix" is these software houses to deploy PDF viewer browser add-ons that actually comply with ISO 32000.
    Perhaps their lazy approach reflects the attitude of "Hey, Adobe will get the hit not us."
    Provide your users a feed-back mechanism; you'd be able to respond with the suggestion that they ping on the appropriate software houses to provide adequate software.
    Be well...

  • Problem in loading images when i am connected on company network

    Hi friends, I am using firefox since last 4 months on my windows 8 pro laptop.but since last month I am facing problem in loading images when i am connected on company network but same time it is working fine with ie10. But all these thinks are working well at my home when I am using broadband.

    I don't completely understand your issue. Does this issue occur on 1 network and does not occur on another? Have you tried clearing cache and cookies and making sure your plugins are up to date?
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Please check if all your plugins are up-to-date. To do this, go to the [http://mozilla.com/plugincheck Mozilla Plugin Check site].
    Once you're there, the site will check if all your plugins have the latest versions.
    If you see plugins in the list that have a yellow ''Update'' button or a red ''Update now'' button, please update these immediately.
    To do so, please click each red or yellow button. Then you should see a site that allows you to download the latest version. Double-click the downloaded file to start the installation and follow the steps mentioned in the installation procedure.

  • Problem for displaying image in jsp

    I like to retrieve and display image from database in jsp file. Now, image has been retrieved and store in session. But it cannot be displayed in jsp. Who can help me? Thanks a lot!
    Codes like below:
    <%
    byte[] b = (byte[])session.getAttribute("sessionName");
    System.out.println(b.length); //the length can be printed at console successfully
    if(b != null) {
    response.setContentType("image/*");
    OutputStream toClient=response.getOutputStream();
    toClient.write(b);
    toClient.flush();
    toClient.close();
    %>

    JSP is designed to return text/html documents.
    As such it automatically calls getWriter() to return a character stream. (places it in the implicit variable "out"
    Seeing as you want to return bytes, instead of character data, the JSP technology is not applicable
    Calling getOutputStream after getWriter has been called results in an IllegalStateException
    So calling getOutputStream in a JSP will ALWAYS throw an exception.
    Cheers,
    evnafets

  • Feh showing black images when opening certain .bmp files

    Hi all,
    I've been using feh (I'm using imagemagick too) from quite a bit and today I noticed it shows plain black images when opening certain .bmp files, those files are obtained from a Java WebService and they may not be correcty formed, still firefox can correctly visualize them. Would it be possible to make feh correctly display them ?

    I've set Photoshop to ask me if there's a conflict with embedded color schemes but it doesn't ask when opening this file. So I presume it doesn't use any specific profile. (Can I check this directly somehow?)
    EDIT: I've now set to ask if there is no profile embedded and Photoshop now says that the image has no embedded RGB profile.
    My color profile within Photoshop is set to sRGB which is the default for my display.
    When I try switching to other RGB profiles in the list, the colors change but the distortions are still there no matter which profile I choose.

  • Problem when displaying images when working  with PHP, mysql and dreamweaver in a brower

    Hey Guys
    I am new to dynamic development but I already did some
    research and tutorials about how to get a dynamic web site working
    with PHP and Mysql in Dreamweaver. I set up a test page to view
    some content on it directly from the mysql database and it worked
    just fine in dreamweaver only when I pressed the
    live data view.
    When I tried to view the same page using the browser preview
    with firefox and internet explorer, plain text from the database
    was correctly displayed on the brower but the images were absent.
    In the mysql database I used the varchar as my picture data
    type field so that I will refer in dreamweaver in the data binding
    panel in the img.src to the picture column of my database.
    I anyone can tell me what am I doing wrong so that my
    pictures are not displayed in the browser when i click the browser
    preview facility in dreamweaver I would be very very and very
    pleased ! :)

    The odds are that it is the way that you have referenced the
    images rather
    than an issue with the database. If you have the images root
    relative like
    this "/images" then they will work in preview, and on the
    webserver, but
    will not view when looking at the file via localhost.
    If possible make the links page relative and then they should
    work fine.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "mariosal026" <[email protected]> wrote in
    message
    news:ea3nq2$9ol$[email protected]..
    > Hey Guys
    >
    > I am new to dynamic development but I already did some
    research and
    > tutorials
    > about how to get a dynamic web site working with PHP and
    Mysql in
    > Dreamweaver.
    > I set up a test page to view some content on it directly
    from the mysql
    > database and it worked just fine in dreamweaver only
    when I pressed the
    >
    live
    > data view.
    >
    > When I tried to view the same page using the browser
    preview with firefox
    > and
    > internet explorer, plain text from the database was
    correctly displayed on
    > the
    > brower but the images were absent.
    >
    > In the mysql database I used the varchar as my picture
    data type field so
    > that
    > I will refer in dreamweaver in the data binding panel in
    the img.src to
    > the
    > picture column of my database.
    >
    > I anyone can tell me what am I doing wrong so that my
    pictures are not
    > displayed in the browser when i click the browser
    preview facility in
    > dreamweaver I would be very very and very pleased ! :)
    >

  • Displaying images when report is requested via Webservice

    As the <property name="html-image-base-uri"> doesn’t seem to exist in Oracle BI Publisher 11.1.1.6.2, generated graphs won't be displayed because the image path is set to "./cache9238472093487.jpg" instead of “http://servername:9704/xmlpserver/xdo/temp/cache20349823094.jpg"
    +Oracle Business Intelligence Publisher User's Guide Release 10.1.3.2+
    +http://docs.oracle.com/cd/E10091_01/doc/bip.1013/b40017/T421739T421745.htm#T473675+
    Versus
    +Oracle® Fusion Middleware Administrator's Guide for Oracle Business Intelligence Publisher 11g Release 1 (11.1.1)+
    +http://docs.oracle.com/cd/E23943_01/bi.1111/e22255/runtime_config.htm#htmlo+
    I'm curious to see if there is a solution for this problem, because if there isn't only requesting PDF or MHTML formats make sense.
    Is there a new setting replacing the html-image-base-uri property? Is there another viable way embedding Publisher reports in our ADF application?

    This is being seen when running the report from within our application. The report itself has been created and designed from within CR Designer v10. The actual report that the images are on is a on a subreport. The reason for this is that the main report needs to show a different number of images, either 1, 2, 4 or 6, depending on how many images are linked to the data in the database.
    We are using the CR SDK designed for use with Borland Delphi 7.

  • Safari on my account does not display images when you open a picture.

    I have Snow Leopard 10.6.8 installed. Safari on my account does not display images most of the time when you open a picture like (www.example.com/example/example.jpg or any other format). If the image does not display, I can drag from the corner, it displays the image. However, pdf does not work at all. I have to choose open in Preview to view the pdf file. I can even show the example:
    Sometimes the images work like right now.
    2. This is the time when the images do not work.

    Hi all the real problem was this...
    The issue was that the wee rubber eye piece around the viewfinder had slipped out of its seat slightly and was covering the sensor for the LCD. I Just checked the rubber eye piece bit  pushed right down till it clipped into place and now not obstructing the LCD sensor as the picture displays both with the LCD auto off enabled or disabled !! simple thing but a massive trap !

  • Pages not displaying images when accessed from remote system-error on page.

    Urgent pls help...
    Hi,
    We installed 10G database and installed application express.
    we installed apex using the command @apexins SYSAUX SYSAUX TEMP /i/
    then changed password using @apxchpwd
    then @apxldimg.sql D:\oraclexe
    we installed databse in D:
    in D:/oraclexe we copied apex folder and done the above operations.
    we run the listener using command
    java -Dapex.home=D:/oraclexe/apex -Dapex.images=D:/oraclexe/apex/apex/images -Dapex.port=8585 -jar D:/oraclexe/apex/apex.war
    then for four days it was working fine,
    our team can access pages from client system and we were working on our project.
    But for the last two days it is not working properly. I mean apex is loading with errors(without images).
    the page is showing without images and links are not working
    just data's in pages is only seen.
    But when i connect through localhost it is working properly.
    we installed it on server then there also localhost:8080 is working
    but from client system has the above said problem
    Give us a solution...
    Thanks in advance...
    Edited by: 874343 on Jul 22, 2011 5:26 AM

    ListenerAdmin is showing blank screen
    this is my command prompt when running listener
    D:\oraclexe>cd apex
    D:\oraclexe\apex>java -Dapex.home=D:/oraclexe/apex -Dapex.images=D:/oraclexe/ape
    x/apex/images -Dapex.port=8585 -jar D:/oraclexe/apex/apex.war
    INFO: Starting: D:\oraclexe\apex\apex.war
    See: 'java -jar apex.war --help' for full range of configuration options
    INFO: Extracting to: D:\oraclexe\apex
    INFO: Using classpath: file:/D:/oraclexe/apex/apex/____embedded/start.jar:file:/
    D:/oraclexe/apex/apex/WEB-INF/lib/apex.jar:file:/D:/oraclexe/apex/apex/WEB-INF/l
    ib/commons-fileupload-1.2.1.jar:file:/D:/oraclexe/apex/apex/WEB-INF/lib/je-4.0.1
    03.jar:file:/D:/oraclexe/apex/apex/WEB-INF/lib/ojdbc6.jar:file:/D:/oraclexe/apex
    /apex/WEB-INF/lib/ojmisc.jar:file:/D:/oraclexe/apex/apex/WEB-INF/lib/poi-3.6-200
    91214.jar:file:/D:/oraclexe/apex/apex/WEB-INF/lib/ucp.jar:file:/D:/oraclexe/apex
    /apex/WEB-INF/lib/xdb-11.2.0.jar:file:/D:/oraclexe/apex/apex/WEB-INF/lib/xmlpars
    erv2-11.2.0.jar:
    INFO: Starting Embedded Web Container in: D:\oraclexe\apex
    Jul 22, 2011 6:48:19 PM ____bootstrap.Deployer deploy
    INFO: Will deploy application path=D:\oraclexe\apex\apex\WEB-INF\web.xml
    Jul 22, 2011 6:48:19 PM ____bootstrap.Deployer deploy
    INFO: deployed application path=D:\oraclexe\apex\apex\WEB-INF\web.xml
    Using config file: D:\oraclexe\apex\apex-config.xml
    -- listing properties --
    PropertyCheckInterval=60
    ValidateConnection=true
    MinLimit=1
    MaxLimit=10
    InitialLimit=3
    AbandonedConnectionTimeout=900
    MaxStatementsLimit=10
    InactivityTimeout=1800
    MaxConnectionReuseCount=1000
    APEX Listener version : 1.1.2.131.15.23
    APEX Listener server info: Grizzly/1.9.18-o
    Jul 22, 2011 6:48:44 PM com.sun.grizzly.Controller logVersion
    INFO: Starting Grizzly Framework 1.9.18-o - Fri Jul 22 18:48:44 IST 2011
    INFO: http://localhost:8585/apex started.
    Using JDBC driver: Oracle JDBC driver version: 11.2.0.2.0
    Edited by: 874343 on Jul 22, 2011 6:42 AM
    Edited by: 874343 on Jul 22, 2011 6:51 AM

  • Problem with displaying images exported to PS

    This is slightly different than the post about TIFF files not displaying properly.
    In Aperture 1.2, when I exported an image to PS and did extensive work on it, and then saved back to Aperture, it would appear in Aperture just as it looked in PS when I saved it.
    However, in 1.5, that does not happen. After I save the image, and then go back to Aperture, all of the changes I made in PS don't appear! However, if I again open the image in PS a second time, it will change to the PS version even before the image gets to PS (I can see it change right when I click "open with external editor").
    Is this a difference with how 1.2 and 1.5 handle the files? I'm guessing it has something to do with image previews, because I chose not to have Aperture generate previews when I installed 1.5 due to the slow-down issues I saw reported here.
    I'm starting to wonder what the point of upgrading to 1.5 was for me... if I can't take advantage of previews (accessing my Aperture library from other apps like Keynote, etc) and if the PS files I work on don't display properly, I'd rather go back to 1.2. This is a major problem in my workflow, since I often spend a lot of time working on images in PS, and I need to be able to see them that way when I return to Aperture.
    I'm hoping there's some setting somewhere I can use to fix this. Is there?

    David,
    I really appreciate your offer to help. However, I have the problem with all images in my library in all projects, so I'm not sure how useful it would be for you to work with a single image I upload to a server.
    I'm having the same problem on my MacBook too, though for some unknown reason there are certain projects on my MacBook that the process works fine with. I cannot tell any difference between those projects (that work) and those that don't.
    What's even more strange... if I quit Aperture, and re-open it, and then go through the process (open a file in PS2, save, return to Aperture) - it works fine! But ONLY ONE TIME. If I try the same process again, on that same image, or any other image in my library, it will not work. It only works the FIRST TIME I do it after opening Aperture. I tested this several times and got the same result.
    I am completely stumped here. I've tried generating previews for a project and turning all of the preview options on, but that doesn't solve the problem either.
    Anyone out there have a clue what might be happening? This is more than a minor inconvenience... if my image management system can't display the image as it should appear, it's unusable.
    Chris

  • Performance impact on displaying images when tested with loadrunner

    Hi,
    We have a page in the application that displays PDF images to the user.
    The PDF's are stored on HP-UX file system and have the BFILE path
    of the image stored along with other meta-data. The ave size of the PDF is around 250 kb.The images are displayed fine when the user wants to view the images.
    The problem we have been facing is more related to performance.
    When loadrunner tests were conducted to allow 75 users to concurrently
    view the images, the CPU utilization shoots up to 100%.
    All other resources such as memory, io are fine and the image display time is
    within acceptable limits.
    Are there any settings or configurations that can be done to bring done the CPU utilization totolerable limits. Also the box hosts other application which we fear might be impacted and henceit is very important for us to bring down the cpu utilization
    The code to display the PDF is similar to the one in sample app
    PROCEDURE DISPLAY_PDF_PRC (IMAGE_PATH_I IN BFILE)
    IS
    V_BLOB BLOB;
    V_BFILE BFILE;
    BEGIN
    V_BFILE := IMAGE_PATH_I;
    V_BLOB := EMPTY_BLOB();
    DBMS_LOB.CREATETEMPORARY(V_BLOB, TRUE);
    DBMS_LOB.FILEOPEN(V_BFILE,DBMS_LOB.FILE_READONLY);
    DBMS_LOB.LOADFROMFILE(V_BLOB,V_BFILE,DBMS_LOB.GETLENGTH(V_BFILE));
    DBMS_LOB.FILECLOSE(V_BFILE);
    OWA_UTIL.MIME_HEADER('application/pdf', FALSE);
    OWA_UTIL.HTTP_HEADER_CLOSE;
    WPG_DOCLOAD.DOWNLOAD_FILE(V_BLOB);
    DBMS_LOB.FREETEMPORARY(V_BLOB);
    EXCEPTION
    WHEN OTHERS THEN
    Htp.Prn('No image found.');
    END;
    We first thought creating the temporary blob might be costly and modified the code to use lob locator.Still the CPU utilization was over 100%.
    The next thing we tried was to eliminate the creation and usage of BLOBs altogether and directly render the images from the BFILE as mentioned in the code below and tried to use the browser caching also.
    PROCEDURE DISPLAY_PDF_PRC (IMAGE_PATH_I IN BFILE)
    IS
    V_BFILE BFILE;
    BEGIN
    V_BFILE := IMAGE_PATH_I;
    htp.p('Expires: ' || to_char(sysdate + 1/24, 'FMDy, DD Month YYYY HH24:MI:SS'));
    OWA_UTIL.MIME_HEADER('application/pdf', FALSE);
    OWA_UTIL.HTTP_HEADER_CLOSE;
    WPG_DOCLOAD.DOWNLOAD_FILE(V_BFILE);
    end;
    Still the CPU utilization is over 100%.
    So can you please point to any configurations that neeed to be done on Apache App server/DB server or any optimizations at the code level to restrict the CPU utilization.
    Thanks in Advance
    Rakesh

    Typically, you do not refer to PDFs as images. Common image formats are .jpg, .gif, .png, .bmp, etc.
    Can you store them directly on the file system and just reference their URLs instead of reading them out of the database? If so, this should all but eliminate the CPU load.
    If you only have one database on this machine, you can use the database resource scheduler to throttle the CPU utilization of the sessions downloading images. If you have more than one db, then the Resource Manager is basically useless, which is one of the main reasons to only install one db per machine.
    Another thought is to use a web cache instance in front of the HTTP Server if their are a lot of repeat views of the same PDFs. This way you cache the first view of the PDF on the web cache tier so subsequent requests don't go against the db.
    Yet another option (though not out for HP-UX yet) is the 11g "Secure Files" option. I've done some informal testing on this last week and read performance was easily 3x faster than traditional LOBs. My tests weren't very scientific as I was using VMWare on a laptop which generally has very poor physical I/O performance. They claim reads performance is comparable to the Linux file system.
    Tyler

  • Display shrinks when running an application modified by SwitchResX

    I play the Elder Scrolls Online and was trying to tweak around with the game's settings to get the most frames possbile while running the game with a high level of rendering samples. I did this by lowering the game's window resolution by one level while in full screen. However, after a recent update the game's true full screen no longer works and I'm unable to change the game's in-game resolution. The game automatically sets itself to my Macbook Pro's native display, and this results in a frame rate drop.
    As a workaround, at least until it was fixed, I would lower my Macbook's native display before running the game, and restore it when I was finished playing. This was tedious to me, and I looked around for a program that would automatically change the display on a specfic application's startup or exit. I found SwitchResX at http://www.madrau.com/ and wanted to try it. I made it so that the resolution would switch to 1280 x 800 whenever ESO was loaded. It worked fine, but I wanted to do a comparision of frames at the normal resolution to see if it actually fixed anything. This is where my problem lies: after closing ESO and disabling the SwitchResX setting, the entire screen shrinks down to a small square whenever I run other applications (initially I thought it was just with ESO, but I found out that more programs were affected while typing this), and most of it is surrounded by a big black border:
    (You can see the tool bar and the application dock hanging in the middle of the screen)
    I've tried:
    Uninstalling SwitchResX
    Changing the display
    Changing the display while running the programs affected
    Soft Reseting
    Hard Rereseting
    A NVRAM Reset
    And lastly, recreating my problem.
    These haven't worked for me. Can someone help me out here?

    I fixed it this morning. After a little more searching, I discovered the Mac's Safe Boot mode, and messed around with the resolution in there. This fixed my problem as all the programs run normally now.

Maybe you are looking for

  • Need to upgrade from OS 10.4.11 to 10.5.5......

    Hey all, I have a Blackberry Tour 9630 that I want to sync to my Powerbook. Blackberry released their Mac software just today, however the minimum OS allowed is 10.5.5. I know I have gone as far as I can with free upgrades to my O.S., but can I downl

  • How to stop Automatic import of photo stream photos?

    Photos app is automatically importing every picture from photo stream. Even after deleting the photos in photo stream they are still showing up in the photos library. How do I stop auto import? There does not seem to be a way to stop this. It is savi

  • My iPod turns off automaticly. And videos will not play.

    My iPod turns off automaticly. It is not just locking it fully shuts down. And videos will not play.

  • Weird keylistener problem...

    I just upgraded my java to 1.4.2 which caused this problem i believe. I add an action listener with the following code:     this.addKeyListener(new java.awt.event.KeyAdapter() {       public void keyPressed(KeyEvent e) {         main_keyPressed(e);  

  • Development Systems

    Hi Guys, being a newbie to BW i was wondering when development systems are used in the ETL process and why. Could anyone please explain this to me? Your help is highly appreciated.