GetImage returns cached image

Hi
I'm trying to load an image, in an applet, from website using getImage method. I have a loop that gets the image, a MediaTracker that wait until the image is ready, and finally I draw the image using drawImage. The applet loads the image every time, but somehow it gets every time the same image. Refreshing browser doesn't help either, buf if I close the browser and start it up again I get a new image. I have other program that updates the image using FTP, and it works, so there is a new image every time.
This is in loop...
if (image != null)
tracker.waitForID(imageID);
g.drawImage(image, 0, 0, this);
image = getImage(new URL(getCodeBase(), "img.jpg"));
imageID++;
tracker.addImage(image, imageID);
Thanks,
Teemu

why dont you give it a try using the meta tag for no - cache, i don't know if it works, but give it a try
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> keep this tag in the head part of your html and then try

Similar Messages

  • Return an Image from a subclass to a graphics class

    Hello
    I'm wondering how to return an Image generated by one class to a class which works as a graphics class. The graphics class is run from a main class. Let me make up a schedule:
    Image-generator return Image -> graphics class paint
    I have tried just making an Image and using the getGraphics to connect a graphics object to it, but it doesn't seem to work.
    Thanks in advance

    Okay, here are the pieces of code we use. (Comments are in Swedish but they are barely relevant, and explain merely basically what is happening in the program)
    The applet is compilable, but there is a nullpointerexception in Elefanträknaren, at getGraphics(). Believe me, I have tried finding the solution to this already.
    Spelet (main method)
    import java.applet.*;
    import java.awt.*;
    public class Spelet extends Applet
         /*Elefanträknaren testerna;*/
         Ritaren ritarN;
         Graphics g;
         public void init()
              /*testerna = new Elefanträknaren();*/
              ritarN = new Ritaren(g, getSize().width, getSize().height);
              setLayout(new GridLayout(1, 1));
              add(ritarN);
         public void start()
              ritarN.startaTråd();
         public void stop()
              ritarN.stoppaTråd();
         public void update(Graphics g)
              paint(g);
    }Ritaren (graphics object)
    import java.awt.*;
    public class Ritaren extends Panel implements Runnable
         Elefanträknaren e;
         Graphics g;
         int bredd, höjd;
         //Trådobjekt
         Thread tråd;
         public Ritaren(Graphics g, int bredd, int höjd)
              this.bredd = bredd;
              this.höjd = höjd;
              e = new Elefanträknaren(bredd, höjd);
         public void startaTråd()
              if( tråd == null )
                   tråd = new Thread(this); //Skapa tråden
                   tråd.start(); //Kör igång
                   e.startaTråd();
         public void stoppaTråd()
              if( tråd != null )
                   tråd.interrupt();
                   tråd = null;
         public void paint(Graphics g)
              g.drawImage(e.getSpökbilden(), 0, 0, this);
         public void update(Graphics g)
              paint(g);
         public void run()
              while( tråd != null )
                   repaint();
                   try
                        Thread.sleep(33);
                   catch(Exception e){}
    }Elefanträknaren (class generating the Image)
    import java.awt.*;
    import java.util.*;
    import java.awt.image.BufferedImage;
    import javax.swing.ImageIcon;
    public class Elefanträknaren extends Panel implements Runnable
         //Vektorn som innehåller alla Elefant-klasser
         private Vector elefanterna;
         //Ritobjektet för den dubbelbuffrade bilden
         private Graphics gx;
         //Bildobjektet för dubbelbuffringen
         private Image spökbilden;
         private int bredd, höjd;
         //Trådvariabeln
         private Thread tråd;
         //Rörelsen uppdateras 30 ggr/s. RÄKNARE håller koll på när en elefant ska läggas till (efter 30 st 30-delar = 1 ggr/s)
         int RÄKNARE = 30;
         int ÄNDRING = RÄKNARE;
         //DELAY betecknar delayen mellan två bilder/frames. 33 ms delay = 30 FPS
         int DELAY = 33;
         //Konstruktor
         public Elefanträknaren(int bredd, int höjd)
              elefanterna = new Vector();
              this.bredd = bredd;
              this.höjd = höjd;
         //Kör igång tråden/ge elefanterna liv
         public void startaTråd()
              if( tråd == null )
                   tråd = new Thread(this); //Skapa tråden
                   tråd.start(); //Kör igång
                   //Dubbelbuffringen initieras - detta måste ligga i startaTråd()
                   //spökbilden = new BufferedImage(bredd, höjd, BufferedImage.TYPE_INT_ARGB);
                   spökbilden = createImage(bredd, höjd);
                   gx = spökbilden.getGraphics();
         //Stoppa tråden/döda elefanterna
         public void stoppaTråd()
              if( tråd != null )
                   tråd.interrupt();
                   tråd = null;
         //Lägg till en elefant i vektorn
         private void läggTillElefant(Elefant e)
              elefanterna.add(e); //Lägg till en Elefant som objekt i vektorn
              Elefant temp = (Elefant)     elefanterna.get(elefanterna.size()-1);
              temp.startaTråd(); //Starta Elefantens tråd - ge Elefanten liv
         //Sätter ihop bilden som ska sickas till Ritaren
         public void uppdaterarN()
              //Rensa skärmen från den förra bilden
              gx.fillRect(0, 0, bredd, höjd);
              for( int i = 0; i < elefanterna.size(); i++ )
                   Elefant temp = (Elefant) elefanterna.get(i);
                   gx.drawImage(temp.getBild(), temp.getX(), temp.getY(), null);
         public Image getSpökbilden()
              return spökbilden;
         //Tråd-loopen
         public void run()
              while( tråd != null )
                   RÄKNARE++;
                   if( RÄKNARE >= ÄNDRING )
                        läggTillElefant(new Elefant(11, 50, 900));
                        RÄKNARE = 0;
                   uppdaterarN();
                   //repaint();
                   try
                        Thread.sleep(DELAY);
                   catch(Exception e){}
    }Elefant (a class which Elefanträknaren turns into an Image:
    import java.awt.*;
    import java.util.*;
    import javax.swing.ImageIcon;
    public class Elefant extends Panel implements Runnable
         private int x, y; //Elefantens koordinater
         private int hälsa; //Elefantens hälsa
         private int RÖRELSESTEG = 10;//Antal pixlar elefanten ska röra sig i sidled
         private int DELAY;
         //Animation
         private Vector bilderna = new Vector();
         private Vector bilderna2 = new Vector();
         private int fas; //Delen av animationen som ska visas
         private boolean framåt;
         //Tråddelen
         private Thread tråd;
         public Elefant(int x, int y, int hastighet)
              this.x = x;
              this.y = y;
              DELAY = 1000 - hastighet;
              hälsa = 100;
              framåt = true;
              fas = 0; //Nollställ fasen
              //Få fram bildernas namn
              for( int i = 0; i <= 5; i++ )
                   Image temp = new ImageIcon("Z:\\Projektet\\gamal\\Projektet\\Mappen\\mediat\\png\\jumbo" + i + ".png").getImage();
                   bilderna.add(temp);
                   Image temp2 = new ImageIcon("Z:\\Projektet\\gamal\\Projektet\\Mappen\\mediat\\png\\jumbo" + i + "r.png").getImage();
                   bilderna2.add(temp2);
         //get-variabler
         public int getX() { return x; }
         public int getY() { return y; }
         //Kör igång tråden/ge elefanten liv
         public void startaTråd()
              if( tråd == null )
                   tråd = new Thread(this); //Skapa tråden
                   tråd.start(); //Kör igång
         //Rör elefanten i sidled
         private void rörelse()
              //Animering
              if( fas < 5 ) fas++;
              else     fas = 0;
              //Flytta ner elefanten när den når en av spelets kanter
              if( x >= 800 || x <= 10 ) y += 85;
              //Kontrollera riktning
              if( x >= 800 ) framåt = false;
              else if( x <= 10 ) framåt = true;
              //Positionering
              if( framåt ) x += RÖRELSESTEG;
              else x -= RÖRELSESTEG;
         //Hämtar den aktuella bilden, och returnerar den
         public Image getBild()
              Image temp;
              if( framåt ) temp = (Image) bilderna.get(fas);
              else temp = (Image) bilderna2.get(fas);
              return temp;
         /* Tråd-hantering */
         //Stoppa tråden/döda elefanten
         public void stoppaTråd()
              if( tråd != null )
                   tråd.interrupt();
                   tråd = null;
         //Körs när elefanten är vid liv
         public void run()
              while( tråd != null )
                   rörelse();
                   try
                        Thread.sleep(DELAY);
                   catch(Exception e){}
    }

  • Using Javascript to rotate images with the style.backgroundImage property & I leave the onload pg & return, the images have trouble loading.

    I'm using Javascript to rotate background images -->
    function rotateImages() {
    setInterval("startRotator()", 7000);
    var counter = 0;
    function startRotator() {
    var images = ["images/finance1.jpg","images/finance2.jpg","images/finance3.jpg","images/finance4.jpg","images/finance5.jpg","images/finance6.jpg"];
    if( counter >= images.length ) {
    counter = 0;
    var image = "url('" + images[counter] + "')";
    counter++;
    document.body.style.backgroundImage=image;
    The script is triggered by the load event when the homepage loads and the script only runs on the homepage. Everything works fine upon opening the homepage.
    If I leave the home page and return, the images will have trouble loading for about 3 to 5 cycles and I'll get white backgrounds for part of the time. The same thing happens if I enter the site from a page other than the homepage and then go to the homepage.
    I discovered, however, that if I enter the site at the homepage and then leave the homepage and return using the back button, everything runs fine. Apparently it then accesses a cached version of the homepage? Seems having two cached versions creates a conflict?
    This problem only happens with Firefox (I have ver 29.0.1). It does not happen on IE ver 11, Chrome ver 34, or Safari ver 5.1.7.
    I get the same problem with XP, Win7, and Win8 but, only on Firefox.
    Can you please fix this?

    Hey, I am trying to reproduce this here: [http://jsfiddle.net/u3TLb/]
    Mozillazine forums and the [http://webcompat.com] are more specialized in Web Compatibility, please ask there as well.

  • ** Reduce jpg file size...returns black image

    Hey Guys,
    I have this function to reduce the image file size.
    It works but returns a black image when I view it.
    This code is what I have found on other boards...I just can't seem to get it to work..
    Any ideals??
    Phil
    ======================================
                     try
                         FileInputStream inFile = new FileInputStream(imagePathName);
                         ImageIcon imageIcon = new ImageIcon(imagePathName);                    
                         Image image = imageIcon.getImage();                    
                         int height = image.getHeight(null);
                         int width  = image.getWidth(null);                    
                         if(height > MAX_HEIGHT || width > MAX_WIDTH)
                             //See which one was over the most by percentage
                             float widthOver  = (float)(height - MAX_HEIGHT) / (float)MAX_HEIGHT;
                             float heightOver = (float)(width - MAX_WIDTH) / (float)MAX_WIDTH;         
                             int newWidth;
                             int newHeight;                        
                             if(widthOver > heightOver)
                                 float ratio = (float)MAX_HEIGHT / (float)height;                            
                                 newWidth = (int)(width * ratio);         
                                 newHeight = MAX_HEIGHT;
                             else
                                 float ratio = (float)MAX_HEIGHT / (float)height;                            
                                 newWidth = (int)(width * ratio);         
                                 newHeight = MAX_HEIGHT;
                             System.out.println("Original size was: width = " + width + "  height = " + height);
                             System.out.println("New size is: width = " + newWidth + "  height = " + newHeight);                        
                             System.out.println("Phil -- New size is: width ---> " + newWidth + "  height ----> " + newHeight);                 
                             Image newImage = image.getScaledInstance(newWidth, newHeight, Image.SCALE_SMOOTH);
                             //============================
                             try
                                 BufferedImage bufferedImage = createBufferedImage(newImage,newWidth,newHeight);                                                                               
                                 try
                                     File file77 = new File("newimage_ps.jpg");
                                     ImageIO.write(bufferedImage, "jpg", file77);
                                    catch (IOException ioe)
                                      System.out.println("IOExcepotion caught: " + ioe.toString());
                             catch (Exception buffError)
                                 System.out.println("IOExcepotion BufferedImage: " + buffError.toString());
                     catch(IOException ioe)
                         System.out.println("IOException reading: " + imagePathName + "\n" + ioe.toString());
    // ==============================================================                
        static public BufferedImage createBufferedImage(Image imageIn, int pass_newWidth, int pass_newHeight )
               System.out.println(" " );     
                 System.out.println("+++++ imageIn   " + imageIn.getWidth(null) ); 
                 System.out.println("pass_newWidth " + pass_newWidth);
               System.out.println(" " );     
    //          BufferedImage bufferedImageOut = new BufferedImage(imageIn.getWidth(null),
    //                                                             imageIn.getHeight(null),
    //                                                             BufferedImage.TYPE_INT_RGB);
              BufferedImage bufferedImageOut = new BufferedImage(pass_newWidth,
                                                 pass_newHeight,
                                                                 BufferedImage.TYPE_INT_RGB);         
              // Graphics g = bufferedImageOut.getGraphics();
              Graphics2D g2 = bufferedImageOut.createGraphics();
              g2.drawImage(imageIn, 0, 0, null);
             // g.drawImage(imageIn, 0, 0, null);
              return bufferedImageOut;
        }     

    >
    Hi Andrew,
    Thanks for your reply..Your links sent me to this ...
    Page Not Found
    We are sorry, the page you have requested was not found on our system. >Ahh. That is because I foolishly hand edited those links and did not check them. They included 'api' twice.
    In any case they were simply the links to the javadocs for those two classes.
    Search [google for bytearrayoutputstream|http://www.google.com.au/search?hl=en&q=bytearrayoutputstream&meta=] and you will end up in the same or similar place.
    As to using them, you simply put an appropriate ByteArray stream in place of the other streams (e.g. File based) that you were using.
    I'd have to search for an actual example, but you could do the same (probably faster).
    Edit 1:
    Adding 'imageio' to 'bytearrayoutputstream' as a search led to this as top hit [Memory Efficiency of BufferedImage and ImageIO|http://forum.java.sun.com/thread.jspa?threadID=5261937&tstart=0].
    Edited by: AndrewThompson64 on Jul 6, 2008 2:37 PM

  • Can a JSP return an image?

              Can a JSP page be written so that it returns an image? What are the
              available MIME types that can be returned? IOW, what is the possible values
              of the "page" directive attribute "content-type"? Better yet, where can I
              find it, and for that matter, docs of this type?
              Thanks!
              

    Yes, a JSP can return an image. However, it is better (less error prone,
              more straight-forward) just to use a servlet. Here's one example from Erik
              L:
              From: "Erik Lindquist" <[email protected]>
              Newsgroups: weblogic.developer.interest.jsp
              Sent: Wednesday, June 28, 2000 6:20 PM
              Subject: How to dynamically display images in JSPs
              > This took a little while to figure out so I thought I'd share. After
              > doing some research I was led to the following approach on how to load
              > images from an Oracle database into a JSP:
              >
              > The "main" JSP:
              >
              > <HTML>
              > <head>
              > <title>Image Test</title>
              > </head>
              > <body>
              > <center>
              > hello
              > <P>
              > <img border=0 src="getImage.jsp?filename=2cents.GIF">
              > <P>
              > <img border=0 src="getImage.jsp?filename=dollar.gif">
              > <P>
              > world
              > </body>
              > </HTML>
              >
              >
              > And this is the image getter:
              >
              > <% try {
              > response.setContentType("image/gif");
              > String filename = (String) request.getParameter("filename");
              > java.sql.Connection conn =
              > java.sql.DriverManager.getConnection("jdbc:weblogic:pool:orapool"); //
              > connect to db
              > java.sql.Statement stmt = conn.createStatement();
              > String sql = "select image from testimage where filename = '" +
              > filename + "'";
              > java.sql.ResultSet rs = stmt.executeQuery(sql);
              > if (rs.next()) {
              > byte [] image = rs.getBytes(1);
              > java.io.OutputStream os = response.getOutputStream();
              > os.write(image);
              > os.flush();
              > os.close();
              > }
              > conn.close();
              > }
              > catch (Exception x) { System.out.println(x); }
              > %>
              >
              >
              > The thing to note is that there are no <%@ page import="..." %> or <%@
              > page contentType="..." %> tags - just the single scriptlet. It
              > seems that for every "<%@" the weblogic compiler sees it puts
              > out.print("\r\n"); statements in the generated java source.(???) I
              > don't know much about how browsers work but I think that once it sees
              > flat ascii come at it it treats everything that follows as text/plain
              > which is incorrect for the binary stream that's being sent. Another
              > work around was to set out = null; but that's kind of ugly and might
              > produce server errors. The real fix is to write a bean to handle images
              > which I'll work on next (does anybody have any hints on how to do
              > that?)
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Peter Bismuti" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Can a JSP page be written so that it returns an image? What are the
              > available MIME types that can be returned? IOW, what is the possible
              values
              > of the "page" directive attribute "content-type"? Better yet, where can I
              > find it, and for that matter, docs of this type?
              >
              > Thanks!
              >
              >
              

  • How does Flex cache images??

    To my understanding, in straight HTML the browser caches image files such that upon return visits (all other things being equal) the browser obtains the image from a browser cache rather than re-downloading.
    Does/can flex make use of the same browser cache?   More specifically, if my flex app downloads a large image file; then the visitor closes his/her browser before reopening it and navigating back to my flex app URL where does the same large image file come from, the imageServer again or from some sort of cache?
    For that matter is the flex app itself cached by the browser such that (assuming no changes were made between visits) a return visit to my flex app url does NOT require the re-download of the app from the server (I know HTML has this capability but not sure about the HTML "wrapper page" which launches the flex app).
    Thanks in advance,

    Sorry for being newbie obtuse but are you saying that FP (Flex Project I assume)'s are an Active X (application) and thus IE does utilize its cache for all HTTP based communications???
    If so then as I understand it, the typical Flex Project has an HTML wrapper which then loads the Flex App (I assume using HTTP).  Subsequent Flex<--->Server communications can be HTTP or other format (AMF which I believe BenForta indicated was HTTP "wrapped" as well but at the moment I am less concerned with this).
    As such is the following correct?
    1.)  IE Browser hits HTML page (url) ----> IE checks its cache; If exists compares vs current version on server; If different download from server else load from cache
    2.)  HTML page calls Flex App (using HTTP???) ----> IE again compares Flex App in cache (if exists) vs. server and if same load else download
    3.)  Flex App retrieves image file names via <mx:RemoteObject> ----- I don't see how browser cache can be used here as results not known until after dbase query completes
    4.)  Flex App uses <mx:RemoteObject> results to retrieve large .jpg files  ---- do these "pass through" the browser (and therefore load and/or store in cache) or are they purely "Flex contained" (and if so does flex have any automatic cache or do I have to perhaps store the jpgs in a shared object if I hope to reuse them without a download)???

  • Cached Image Applet problem

    I've created a SSCE below but I can't seem to find the information I need to
    format the code correctly, and I've already wasted a half hour trying to find the link to the info.
    I found some mentions of links to the info, but when I followed them they were no longer there.
    I would think the FAQ would have something about this but it doesn't appear to....
    Can someone please point me to how to get the code formatted correctly?
    This problem is only with Java 1.6, it works fine with 1.4, 1.5
    In any case my problem is with cached images. It would appear that no matter what I do, I can not
    get ImageIO.read() to give me an updated image. I use the same file name and change the file in the
    use of my GUI.
    To use this code you will have to have an image called gdata.jpg in your "codebase" directory. What
    I do is bring up the applet, then change the image file in my "codebase" directory and then click on the button.
    You'll see commented code in the actionPerformed which loads a image called gdata1.jpg, if this code is there, the new image
    is displayed. The ImageIO.setUseCache(false) appears to do nothing but maybe I'm using it incorrectly.
    Help please....
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.net.*;
    import javax.imageio.*;
    import javax.swing.*;
    import javax.swing.JApplet.*;
    import javax.swing.event.*;
    import java.io.*;
    import java.io.Serializable;
    import javax.swing.border.*;
    public class testApplet extends JApplet implements SwingConstants,
    ActionListener
    JPanel testPanel = new JPanel();
    JButton but = new JButton("test");
    URL codeBase,graphURL;
    Image gImage = null;
    Icon iconImage=null;
    // init -- Applet Init
    public void init()
    Container contentpane = getContentPane();
    //Get Server IP information.
    codeBase = getCodeBase();
    try {
    graphURL = new URL(codeBase+"gdata.jpg");
    } catch(MalformedURLException e) { }
    try {
    ImageIO.setUseCache(false);
    gImage = ImageIO.read(graphURL);
    catch(IOException exc) { }
    iconImage = new ImageIcon(gImage);
    but.setIcon(iconImage);
    testPanel.add(but);
    but.addActionListener(this);
    contentpane.add(testPanel);
    // actionPerformed
    public void actionPerformed(ActionEvent e)
    if ( e.getSource() == but ) {
    //If you uncomment out the 3 lines below, changing the name of the image,
    // then it works, otherwise I always get the same image.
    // try {
    // graphURL = new URL(codeBase+"gdata1.jpg");
    // } catch(MalformedURLException ex) { }
    try {
    ImageIO.setUseCache(false);
    gImage = ImageIO.read(graphURL);
    catch(IOException exc) { }
    iconImage = new ImageIcon(gImage);
    but.setIcon(iconImage);
    but.revalidate();
    testPanel.revalidate();
    testPanel.repaint();
    return;
    Edited by: chippr on Sep 13, 2007 10:32 AM

    chippr wrote:
    That's odd. It looks like I'm using the same version jre plugin under windows...jre-6u2-windows-i586-p.exe.
    Which gives me java 1.6_02
    So you changed the image and then hit the button and it worked?Yep.
    >
    hmmmmm, I wonder what the difference is....I'm using firefox under windows, accessing a linux box
    running apache....Same here, except I used appletviewer to test the code on the local machine. Let me upload it to my Linux box (running Apache) and I'll let you know what happens.

  • In bridge am I able to return my images to their original file name?

    In bridge am I able to return my images to their original file name?

    yes/no.  Depends on whether you have checked "preserve original file name in XMP" in batch rename.

  • How to remove cached images in html whe going from one page to another page

    can anybody help how to remove cached images in html pages.i tried with response.setHeader("no-cache") but it is not working

    thanks,
    can u tell me how to make the browser not to cache images.since iam moving from one page which has images, into another page which having few more images both gets overlaped so how to remove images of previous page.
    thanks in advance

  • Open original image instead of cached image

    While the title in itself is rather self explanatory, I'll elaborate somewhat. The current state of opening sent images means opening the cached version - the file name is wrong in that case, and often times the cached image is in wrong format or size, perhaps even compressed too much; Which might not be the preferable action for a large number of people. Could we possibly get a toggle in Options, or even default left-clicking images to opening the actual image, rather than the image cache?

    Hi Gramps,
    Sorry for this late response. I tried the method you pointed to, but it did not work properly, but I got to doing what I wanted to by changing the .css for the classes and also making a new class in the SpryValidationTextField.css etc.and then applying it in the source code among the span tags.
    I have a new question, but will post it separately.
    zabberwan

  • Get Map As XML/Server Image returns blank image on server and errors out on local

    In Server, map.getMapAsXML and map.getMapAsServerImage both return blank images though they return a valid url
    In local, executing map.getMapAsXML reports the following error:
    Uncaught SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. oraclemapsv2.js:2171(anonymous function) oraclemapsv2.js:2171(anonymous function) oraclemapsv2.js:2137f

    You may be using Windows with limited functionality as the previous version expired. Did you re-format the drive/partition before you did the "fresh" install if not Windows probably kept the old install information so knew that it was expired previously. Either activate Windows (try typing slui.exe and filling in the product key and activate - then restart the machine) or re-format the drive/partition that Windows is on and re-install Windows again.

  • Java + Safari causes page to 'flash' (i.e. reload even cached images)

    Does anyone know if this is able to be corrected or at least why this occurs?
    For Safari 4 beta when Java is active my site http://www.theimagecache.com 'flashes' a lot (i.e.reloads even cached images). Whereas with Java disabled this does not happen and the pages load considerably more quickly.
    I hadn't noticed this before in Safari 3+... but then again... I usually had Java turned off for security reasons so it may have existed then as well.
    But in Firefox 3.1b3, even with Java turned on the pages load very slightly more slowly (i.e. literally only about a fraction of a second more slowly... which is understandable) but they do not 'flash' (i.e. reload cached images).
    Any ideas as to if this can be corrected so viewers that have Java on by default and are using Safari do not see all of this flashing and slower loading?
    Thanks for any input.
    Ron

    Thanks Michael for posting.
    Yes... this Safari beta may be the problem, because even after the images have been cached often many of the images on a new page (that have already been cached) reload.
    Whereas in Firefox 3.1b3 (beta) this does not happen.
    Hopefully they'll get this fixed.
    Thanks again.
    Hope things are going well for you there in Sweden, considering all of the world economic problems.

  • Caching images

    Hi,
    In my scenario, there can be multiple board area for an user.  When an user logs in 5 images for that board area get picked from the database table and cached.  If any other user for the same board area logs in, system should check cache first.  If found, then it should pick from cache or else go to database table to pick the pictures.  I have pasted the code below to show how the pictures are being cached in my application.  Can anyone help me out with retrieving the pictures explicitly from cache.  A code snippet will be very helpful.  Thanks in advance.
    Regards
    Goutam
    Code to cache image
        IF XSTRLEN( <ls_lso_news_st>-img ) > 0.
          CREATE OBJECT lref_cached_response
            TYPE
              cl_http_response
            EXPORTING
              add_c_msg        = 1.
          lref_cached_response->set_data( <ls_lso_news_st>-img ).
          lref_cached_response->set_status( code = 200 reason = 'OK' ).
          lref_cached_response->server_cache_expire_rel( expires_rel = 180 ).
    GUID / UUID functions
          CALL FUNCTION 'GUID_CREATE'
            IMPORTING
              ev_guid_32 = lf_guid.
          CONCATENATE runtime->application_url '/' lf_guid INTO lf_img_st.
          cl_http_server=>server_cache_upload( url      = lf_img_st
                                               response = lref_cached_response ).
        ENDIF. " XSTRLEN
        ls_s_st_new-header     = <ls_lso_news_st>-header.
        ls_s_st_new-body       = <ls_lso_news_st>-body .
        IF <ls_lso_news_st>-link_name IS NOT INITIAL.
          ls_s_st_new-link_name      = <ls_lso_news_st>-link_name.
          CONCATENATE 'http://' <ls_lso_news_st>-link '/' INTO <ls_lso_news_st>-link.
          ls_s_st_new-link = <ls_lso_news_st>-link.
        ENDIF.

    Hi Raja,
    Thanks for your reply, but i guess i was not able to make you understand my scenario.  Multiple user ID can belong to a board area.  Say, for board area CRM, there are 5 user IDs.  From the admin page, news images are uploaded for a board area and they are saved in database table in XSTRING format.  In my application, I check which board area any user ID belong to and get the images from the database table and set them one by one to cache as I have depicted in the code and display using the URL from the cache, but it happens every time.  what i want now is if any user belonging to same board area logs in, it should not go to the database table to pick the image in XSTRING format and set it to cache one by one again.  For that I saved the news link for that board area in another database table.  So application picks all the links from database table and display them from cache.  But if cache time gets replased, image does not get displayed.  I only want to know the process by which I can find out whether a number of images that I uploaded to cache, those are existing or not, i.e. whether caching time has elapsed.
    Please let me know if you have any suitable solution for this.
    Regards
    Goutam Dutta

  • Error : 'no cached images'. What does that mean ?

    I try to import some images in Rapidweaver. But in the previewmode I get this errormessage :
    Error exporting image thumbnail for 'name photoalbum' (no cached image) What does that means ?

    Hi
    Error -50 paramErr  Error in user parameter list
    Can there be any external hard disks - if so How is/are it/they formatted ? Must be Mac OS Extended (hfs) if used for Video.
    UNIX/DOS/FAT32/Mac OS Exchange - works for most but not for VIDEO.
    What this means in Your situation is above me.
    • free space on internal boot hard disk? How much ?
    Video codec
    • streamingDV, AIC etc. (not .avi, .mp4, .m4v, .wmv etc as they are containers not codecs)
    Pictures
    • in what format ? .jpg, .bmp, .tif, else ?
    Audio
    • from where/what format ? iTunes, .avi, .mp3, .aiff, else ?
    The "com.apple.iMovie.plist" file
    Many users has not observed that there are TWO libraries.
    • Library - at root level
    • Library - in user/account folder - THIS IS THE ONE to look into
    from Luke Burns
    I fixed the problem.. but it was very, very strange. I had a very long section for credits and set the line spacing to 1.0.. for some reason this caused it. I removed it, and it worked fine. I put it back, and I couldn't preview or play the video.
    I don't know why that could cause that big of a problem, but it did..
    Klaus1
    You need more free space on your hard drive.
    jonorparkerjon
    After phone support from apple I ended up creating a new project and adding all 117 clips back in individually till I found out what clips flagged and would not allow me to export. I had 3 I deleted and replaced and everything works now 1hr after tedious work....
    Where do Your material come from
    • Camera
    • External hard disk
    • USB-memory
    And all are connected so that iMovie can find it ?
    Yours Bengt W

  • Location of cached images from RSS screenblanker

    Where does the screenblanker cache images from an RSS feed?
    I have been using my own Picasa album as source for the screenblanker for more than a year now. A few days ago, images not originating from my album started to show up. At the moment I am not sure if this was a temporary glitch and these images are now taken from the local  cache, or if this is a permanent problem. As new "alien" images are added constantly, I assume the problem is still present.
    When looking at the raw RSS feed, I can't find any hint for images not from my Picasa album, so I don't think this is Google's fault. Has Apple started to "enrich" the feed with other images someone deems interesting?

    The iPhoto library is a SQLite database and must always be treated as a single entity - you can not ever do anything to the individual components of the database
    Moving it is simple - make sure that the EHD is formatted Mac OS extended (journaled) - this is the required format for the iPhoto library) and is connected using a fast hard wired connection like USB, FireWire, Thunderbolt, etc - and then quit iPhoto and drag the library intact as a single entity to the external drive - hold down the option key while launching iPhoto until the select librarywindogw appears and select the new location - fully test it and once you are positive it is complete and at least one successful backup cycle has run so it is backed up in the new location and working you can trash the old library - test one ore time before emptying the trash
    And verify that your backup is backing up the EHD (by default some like TM do not backup the EHD)
    LN

Maybe you are looking for

  • BW Arhiving- Enhancement

    HI all, I am archiving a infocube. i have done with the write phase and deletion phase. Now the data target need to be enhanced. I know some of the enhancement like adding a new characteristic. can u pls give all the enhancement that could be done on

  • I can't get itunes to open on my pc... i've uninstalled and re-installed and nothing any tips to get it to work?

    i can't get itunes to open on my pc... i've unistalled... re-installed and still nothing.. any tips on how to get it to open up again

  • Displaying a Long Messg on Canvas

    Hi All, Iam having a problem with displaying a long string on Canvas. I have a long file,which iam taking in a string and Displaying it on a Canvas. The problem is that the display is only on a single line. After the end of width of the screen,the st

  • Forgot security question answers and can't get them to reset

    I Have an iTunes account and purchased a iPad and wanted to use my iTunes I'd but it asks security questions and I have no idea the answers I put several years ago. I've done step by step what was said on other forums and still get past those questio

  • File server links in wiki pages

    Is there a way to insert links in wiki pages to files on the same server (rather than upload the file itself)? We have wikis and (afp) file shares on the same physical 10.6 server. Thanks!