Caching images in the client tier

Hi,
I've a JSP web application with images.
In that application, two HTML pages are generated. Each HTML page has the same image im.gif.
Everytime a navigate from one page to the other, the image im.gif is always loaded from the web server.
I would like to keep the images cached in the client workstation.
How can I do that?
thanks a lote
apaf

Well, generally when an image is loaded the path of the image is loaded in the temporary internet files of your browser(IE) and if the location of the image is from the same folder in the web/application server then the browser first checks the Temporary Internet files to get the image. if it finds then it loads the image from there only. This normally happens unless you specify response.setHeader("Expires","-1") or something like that to specify the browser to always take from the web server.
thanks
Hi,
I've a JSP web application with images.
In that application, two HTML pages are generated. Each HTML page has the same image im.gif.
Everytime a navigate from one page to the other, the image im.gif is always loaded from the web server.
I would like to keep the images cached in the client workstation.
How can I do that?
thanks a lote
apaf

Similar Messages

  • [BEGINNER]store several images on the client in the memory

    Hi,
    I would like to store several images on the mobile with
    Image images[2]; but it does not work . How can I do that ?
    C:\Logiciels\WirelessToolkit2.2\apps\Client\src\ImageNavigator.java:19: ']' expected          private Image images[2];

    i was going through the messages today n found that u havent recieved any reply.So i thought i should.Well if u r using an array of size 2, is it possible to store 10 images in it?no way.You have to declare the array of the size=the number of images. The only thing is,Dont allocate memory to the images unnecessarily.Just allocate memory to images that are required at run time. I hope this helps...
    Simcard
    :-)

  • How much info about the cache-cluster does the client have and What would you recommend about putting the cluster behind virtual ip

    Hi,
    I will appreciate if someone can point me to some documentation as to how app-fabric client library accesses the app-fabric cluster.
    What I have found so far is that the list of hosts provided in the client configuration are used as an entry point into the Cache-Cluster. By connecting to one of hosts, the client will download information about all the hosts constituting the cluster.
    Since a named cache is distributed across the entire cluster, and the data can be stored on any node. How does the client decide which node it should connect to, to get the data from. Does the client have enough information to know which host has the data
    or the client will connect to one of the nodes, if the node has data, it will serve it otherwise redirect the client to the node that has the data.
    I also would like to know what do you say about the idea that we would like to put our cache-cluster behind a virtual ip, so that if needed, we can take down nodes or add more nodes. In fact the virtual ip will that of a load balancer, but we don't plan to
    use it for load balancing purposes but the idea is that the client will have the virtual ip address and we can repoint this IP address, if we need to take out a node for maintenance reason. 

    I'm not sure about the reason for putting the cache servers in a VIP, but one of the reasons why the cache servers should be made known to the servers is because of auto load balancing and throughput
    Imagine i have 10 cache servers running on 1G ethernet links, theoretically i have 10G usable bandwidth and the clients will be able to manage and load balance if any of the cache server fails or have performance issues
    Now if all these were parked behind a VIP
    1. The LB now does the load balancing, which may not be optimal
    2. The LB may not have 10G upstream and 10G downstream, even if it has, this is quite a waste of resource\

  • Loading images from the client side into ORDImage

    Hi all,
    I want to load images, located on the client computer, into an image-column in an Oracle 8.1.7 database.
    Directly writing the image.source.localedata (via writing to the blob, received by image.getcontent() method) works, but I can not set the image properties like width, height,.. , sourcefilename,...
    Regards Oliver

    I need a little more information. What does "not work" mean?
    Could you post your code? And what error message you are getting?
    I will make a wild assumption that is most certainly wrong and assume that you are trying to set fields in the ordimage object with a SQL insert statement.
    If you want to set a field in an object directly, you MUST include the schema name in the insert statement using dot notation. If you do not, SQL does not know if you are refering to an object with the dot notation, or a schema name. SQL always assumes a schema name in this case.
    So, to set a field in a object requires an insert statement like:
    insert into my_schema.my_table.my_image_column.width values (300);

  • Images are not visible in the client

    Hi All,
    I have created a Web Dynpro application for laptops using SAP Netwever Composition Environment 7.1 .
    I have put the images in src\mimes\Components\com.utility.comp.UtilityComp (utility is the name of the application)  folder and have specified the name of the jpg file in the source property of the Image UI element.
    I am able to see the image in NWDS but not in the SAP Netweaver client . There is an empty space instead of the image in the client .
    I have even set the visible property as visible.
    It would be nice if you get help me out in displaying the images.
    Thanks ,
    Madhu.

    I using local deployment. I deploy my application directly from NWDS to a Mobile Client running also locally in my machine. Maybe I'm wrong, but I think that Mobile Client look for resources in NWDS workspace.
    This is the dpi file located in the Mobile Client inbox folder when I perform the deployment.
    <?xml version="1.0" encoding="UTF-8"?>
    <deployment>
    <device>
    <repository>
    <mcd name="IrviaDemoApp" namespace="" version="1">
    <action type="install"/>
    <location type="local">
    <source path="C:\Documents and Settings\oloranube\workspace.sr5.jdi\LocalDevelopment\DCs\company.es\irvia_demo_app\_comp\MOBILE-INF\MCD.xml" property="mcd" type="file"/>
    <component name="hpcds.es~irvia_demo_app">
    <applications>
    <application deploy="true" name="IrviaDemoApp"/>
    </applications>
    <source path="C:\Documents and Settings\oloranube\workspace.sr5.jdi\LocalDevelopment\DCs\company.es\irvia_demo_app\_comp\bin" property="bin" type="dir"/>
    <source path="C:\Documents and Settings\oloranube\workspace.sr5.jdi\LocalDevelopment\DCs\company.es\irvia_demo_app\_comp\gen_wdp" property="gen_wdp" type="dir"/>
    <source path="C:\Documents and Settings\oloranube\workspace.sr5.jdi\LocalDevelopment\DCs\company.es\irvia_demo_app\_comp\src\mimes" property="mimes" type="dir"/>
    <source path="C:\Documents and Settings\oloranube\workspace.sr5.jdi\LocalDevelopment\DCs\company.es\irvia_demo_app\_comp\gen_wdp\application-j2ee-engine.xml" property="j2ee_xml" type="file"/>
    </component>
    </location>
    </mcd>
    </repository>
    </device>
    </deployment>
    There is a <source> entry for the mimes directory, where "Component images" are located.
    PD: Sorry about my poor english. I hope you to understand me.

  • How to put image file on client machine through JBOSS

    I need to imlement the functionality like google map on website, where my server is JBOSS
    server. We used the newest technology SVG(scalable vector graphics) which doesn't loose the
    image quaility on increasing the size of the image.
    we are doing backend processing of the image and throwing the png images on the client.
    machine. I already written a program which can be used at the time of zooming and panning
    of the image and can throw the image but that is all PC based. but when I am implementing
    on the server it is giving error because code is not getting any output directory to save
    the image on sever.
    Please tell me if that can be happen through caching or how can I save image on
    client machine without user authenication and can retrieve on the web page. so that my
    server doesn't have extra load.

    hi jagdish,
    Check this thread. discussed uploading file step by step
    Re: How to upload and search a document in KM
    Regards,
    Ganesh N

  • Interface to Client Tier

    Thank u Scott Orshan
    We use the "dispatcher" service because we wanted to supply a general interface
    to the Client Tier. Do you have some better suggestion?
    Is it nessary?
    or, We use a control class to tp_call the service?
    Scott Orshan <[email protected]> wrote:
    While it is more efficient to call the services directly, I have seen
    many
    applications implemented with such a "dispatcher" service.
    Your Entry service is not necessary for Tuxedo, but only you know if
    it is
    necessary for your application.
    Scott Orshan
    zhangjr wrote:
    Hi:
    I want some suggestion about how to deploy services in processes.
    we design a Entry Services, all client call the Entry Services, and the Entry
    Service dispatch requestion to appropriate 'real' services. is it correct design?
    thx

    Peter,
    Thank your reply.
    At our All client GUI(C++ Builder), we use an 'ID' Field in FML to identify the
    'real' services ,
    set all information /data inputted from the GUI to the FML,
    and then we call a general service,eg, service_dispather.
    I think it's not a good design.
    Peter Holditch <[email protected]> wrote:
    zhangjr,
    I am interested to know what you are looking for as a "general interface
    to the client tier" Can you give more detail as to ehat you're trying
    to build?
    From my point of view, if you choose a consistent set of FML field
    definitions and a set of meaningful service names for your application,
    then you have a general interface between the client and the server
    the client populates relavent fields into a buffer and invokes the
    required service (via tpcall) before processing its reply. The only
    coupling between client and server is the shared understanding of the
    buffers that pass between them - a good coarse grained, loosely coupled
    interface.
    It sometimes amuses me to note that this is how Tuxedo has worked since
    thye late 1980s. It is now being touted as the next great thing in
    software architecture under the name of "Service Oriented Architecture"
    in the context of Web Services... Plus ca change :-)
    Regards,
    Peter.
    zhangjr wrote:
    Thank u Scott Orshan
    We use the "dispatcher" service because we wanted to supply a generalinterface
    to the Client Tier. Do you have some better suggestion?
    Is it nessary?
    or, We use a control class to tp_call the service?

  • Please help to load image in the database

    Hi to all. ....
    I need to save image file in the database thru forms ...
    I have some image file in the application server and I need to load it in the database in a Blob col..
    Any help ... ??
    Thank's in advance

    Hi!
    Your forms version is very important.
    If you use forms 10g and you want to load the image on the client, you need webutil.
    If you use forms 6 or you want to load the image from the application server to
    a image item in your form, you can use the read_image_file forms build-in:
    read_image_file ( 'x:\path\image.jpg.', 'JPG', 'block.image_item' );On forms 10g this will be executed on the server and the filename and path has to be
    a physical place on your servers harddisk.
    The image item has to be an item of type image and must be assinged to a blob colum in your table.
    Regards

  • How to install only client tier on Client Machine

    Hi,
    Presently in Server the Hyperion is Installed, now i need to install Hyperion (Client machine ) & configure on Client machine and configure the Server database. while installing the hyperion on client machine should we select all the Services products check boxes (i.e) Client Tier, Web Server, Web Application Server & Service Tier --- or only the "Client Tier" products check boxes should be selected? and this client machine should be accessed by the onsite person.
    Please help on this!!!
    Waiting for your positive response....
    Thanks,
    Ravinder
    Edited by: 809788 on Dec 22, 2010 10:41 AM

    NielOlsson wrote:
    If you just need the Run Time Client for Essbase installed on a machine, the easiest and quickest way to get it done is by using the installation for the Excel Addin. It is a much smaller and will install more quickly.Depends on version, in version 11 the standalone excel addin does not include the client as part of the installation.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Controlling the client-side cache

    At the current stage on my project I'm finding that I'm changing my mapping definitions fairly frequently (because the country side is just the wrong shade of egg-shell). Clearing the server side cache is fairly easy to do, provided you remember to do it, but my problem is on the client side.
    Right now, the tiles are returned with a one week time to live. So if I change the mapping definitions it might not propagate through to all the clients until up to a week later. What I'd like to do, at least for now, is turn off storing of map tiles on the client-side. The easiest way to do that would be to specify the cache-control header but I can't seem to find a configuration option for that.
    Has anyone setup MapViewer to use a different cache-control?

    Hi Mark,
    You can specify the cache control statements for the page itself.
    If this does not help, try to set expires header for the images. ex for Apache see mod_expires for a directory/location setting
    regards, michael

  • Possible to delete Offline Files content for a specific user from the Client Side Cache (CSC) ?.

    Hello Everyone,
    We would like to implement a script to delete the offline files in the Client Side Cache (CSC) for a nominated user (on Windows 7 x64 enterprise).
    I am aware that;
    1. We can use a registry value to flush the entire CNC cache (for all users) next time the machine reboots.
    2. If we delete the user's local profile it appears that Windows 7 also removes their content from the local CSC.
    However, we would like to just delete the CSC content for a particular nominated user without having to delete their local user profile.
    In our environment we have many users that share workstations but only use them occasionally. We don't use roaming profile so we would like to retain all the users' local profiles but still delete the CSC content for any users that haven't
    logged on in a week.
    Any ideas or info would be appreciated !
    Thanks, Makes

    Hi,
    I don't think this is possible.
    If you want to achieve it via script, I suggest you post it in official script forum for more professional help:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?category=scripting
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Karen Hu
    TechNet Community Support

  • Using the Client Result Cache

    Hello everyone,
    I have a question regarding the use of the client result cache but first of all here are the informations about my database:
    SQL> SELECT * FROM v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0    Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    I have installed the Oracle Client Tools on my clientmachine. It has a tnsnames.ora like this:
    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = FEA11-119SRV)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = orcl.local)
    The Client Result Cache is configured in the sqlnet.ora.
    ADR_BASE = /u01/app/oracle
    OCI_RESULT_CACHE_MAX_SIZE= 2048000
    OCI_RESULT_CACHE_MAX_RSET_SIZE = 1024000
    NAMES.DIRECTORY_PATH = (EZCONNECT, TNSNAMES, HOSTNAME)
    The Databaseserver is configured like that:
    SQL> col name format a30
    SQL> col value format a30
    SQL> SELECT name, value
      2  FROM   v$system_parameter
      3  WHERE  name LIKE '%result_cache%';
    NAME                   VALUE
    result_cache_mode           MANUAL
    result_cache_max_size           0
    result_cache_max_result        5
    result_cache_remote_expiration 0
    client_result_cache_size       1073741824
    client_result_cache_lag        3000
    After configuring client an server I try the followign SQL-Statement on the clientmachine:
    sqlplus oracle/password@orcl
    set autotrace traceonly explain
    SELECT /*+ result_cache */ *
    FROM testtable;
    SQL
    The execution plan show two operations: "SELECT STATEMENT" and "TABLE ACCESS FULL" but no the "RESULT CACHE" operation.
    Did I miss something?
    Any help would be appreciated
    Florian W.

    result_cache_max_size           0
    That means the result cache is disabled. You need to set it to a non-zero value. That is the maximum ammount of memory, in bytes, the database will allocate on the shared pool to dedicate it to the result cache for all requests.
    By the way, OCI_RESULT_CACHE_MAX_SIZE is optional. By default the sessions will have the maximum size they can occupy on the cache determined by CLIENT_RESULT_CACHE parameter, the client (OCI) side parameters override that.
    result_cache_mode           MANUAL
    Another thing to consider is RESULT_CACHE_MODE in MANUAL, that will cause only the statements with the RESULT_CACHE hint on it to be cached on the result cache. You can also set result cache to mode FORCE on specific tables with alter table command.
    Regards

  • Using the client result cache without the query result cache

    I have constructed a client in C# using ODP.NET to connect to an Oracle database and want to perform client result caching for some of my queries.
    This is done using a result_cache hint in the query.
    select /*+ result_cache */ * from table
    As far as I can tell query result caching on the server is done using the same hint, so I was wondering if there was any way to differentiate between the two? I want the query results to be cached on the client, but not on the server.
    The only way I have found to do this is to disable all caching on the server, but I don't want to do this as I want to use the server cache for PL/SQL function results.
    Thanks.

    e3a934c9-c4c2-4c80-b032-d61d415efd4f wrote:
    I have constructed a client in C# using ODP.NET to connect to an Oracle database and want to perform client result caching for some of my queries.
    This is done using a result_cache hint in the query.
    select /*+ result_cache */ * from table 
    As far as I can tell query result caching on the server is done using the same hint, so I was wondering if there was any way to differentiate between the two? I want the query results to be cached on the client, but not on the server.
    The only way I have found to do this is to disable all caching on the server, but I don't want to do this as I want to use the server cache for PL/SQL function results.
    Thanks.
    You haven't provided ANY information about how you configured the result cache. Different parameters are used for configuring the client versus the server result cache so you need to post what, if anything, you configured.
    Post the code you executed when you set the 'client_result_cache_lag' and 'client_result_cache_size' parameters so we can see what values you used. Also post the results of querying those parameters after you set them that show that they really are set.
    You also need to post your app code that shows that you are using the OCI statements are used when you want to use client side result cacheing.
    See the OCI dev guide
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28395/oci10new.htm#sthref1491
    Statement Caching in OCI
    Statement caching refers to the feature that provides and manages a cache of statements for each session. In the server, it means that cursors are ready to be used without the need to parse the statement again. Statement caching can be used with connection pooling and with session pooling, and will improve performance and scalability. It can be used without session pooling as well. The OCI calls that implement statement caching are:
      OCIStmtPrepare2()
      OCIStmtRelease()

  • I want to share a folder of images with a client who is also using bridge. I want the client to be able to edit metadata and rate the image. How can I do this?

    I want to share a folder of images with a client who is also using bridge. I want the client to be able to edit metadata and rate the image. How can I do this?

    Metadata won't be a problem as long as you use Bridge to copy the file from within Bridge to whatever media (flash drive, CD/DVD. email, etc) you plan to use for the sharing.
    I'm not sure about the Label part.  Maybe it will travel along too.

  • Turn off library caching for a Mail client on the Mac?

    Hi..is it possible to turn off library caching for a Mail client on the Mac? At work I have outlook 2007. I setup Mail client to sync Mail,contacts and calendar. The cache is stored in the library hidden folders. Is it possible to permanently turn off caching?

    I am getting more and more bewildered.  I just looked at google mails settings to see if they do something different from the isp I use and there they say the following: if the sent messages aren't stored on the server, then where are they stored? What happens to them if I set my preferences this way?  I want to wail and tear my hair out. I feel so very stupid.
    http://mail.google.com/support/bin/answer.py?answer=78892#
    Recommended imap settings....
    Apple Mail
    From the Mail menu, click Preferences > Accounts > Mailbox Behaviors
    Drafts:
    Store draft messages on the server > do NOT check
    Sent:
    Store sent messages on the server > do NOT check
    Junk:
    Store junk messages on the server > checked
    Delete junk messages when > Never
    Trash:
    Move deleted messages to the Trash mailbox > do NOT check
    Store deleted messages on the server > do NOT check

Maybe you are looking for

  • Calling Report From Oracle Forms

    Hi I am calling this one report from oracle forms, I am using global temporary table to run that report. I am first inserting data into the temporary table through oracle form and then i am calling report in that form to view the data in that tempora

  • RUN SERVER SIDE OS COMMAND OR ANY EXECUTABLE FILE FROM CLIENT

    Would you provide a complete example regarding execution Server side OS command or program from ORACLE SQL CLIENT OR FORM. This client may be a remote client.

  • Selecting objects in multisim

    I was going along happliy creating a schematic but then after a couple of copy and pastes suddenly many of the components were being selected in a very strange way.  Instead of the usual blue box around the componment I just clicked on, I get a very

  • Setting up the look of your iTunes U "storefront"

    I realize that this is to be covered in documentation that is not here yet, but I just want to make sure that I'm seeing what everyone else is seeing after connecting to my institution's site: My authentication perl script sends no USER information.

  • Create Activity same as button Activity on TAB Activity of Service Call

    Anyone can lead me on the right track with the DI API to create an Activity which is the same as going in the Service Call , tab Activities and pressing the Activity button at the bottom ?