Image loading speed: DB vs File?

Hi, everyone:
i have made a program which need to load several images into memory in the same time.
i want to know which will be faster:
1. use a loop to read them directly from files according to the filepaths (use the ImageIO.read meathod)
2. pre-store them in a db, and then read them from the db. Not count the time used for pre-store. just count the time for loadint images from the database.
thank you!

The only valid answer sill be the result you get from a test.

Similar Messages

  • Slow loading speed for static files

    We are running an azure website on a S2 hostingplan and have a bundled and minified javascript file that is 1.6MB large. The load times of this file are sometimes 600ms and other times it suddenly jumps up to 4 seconds or even higher.
    To improve the loading times we tried creating an azure cdn endpoint that loads the files from the azure websites and now we sometimes see loading times of around 200ms. But sometimes it still jumps up to 4 seconds or higher.
    Can anyone give me an idea what is going on, I assume the larger loading times are due to disk access and figured that adding an cdn would fix this problem but as it turns out it didn't.
    What is going on here?

    To isolate and help us investigate, can you try the following:
    create a dummy site in the same web hosting plan as the site at stake. e.g. give it some random test name.
    Drop that javascript file in the wwwroot folder of that site
    Do you see the same slowness? If so, can you share the name of this dummy site to help us investigate?

  • Same image, loaded multiple times: speeding up load time?

    I wrote this message before thinking about embedding the
    image... I was thinking that putting a relative path automatically
    embedded the image, but in retrospect I was wrong, and that will
    probably solve my problem. I'll just leave the question here anyway
    though:
    I'm using image components in my application loaded from a
    relative path. The problem is, I have many copies (30+) of the same
    image, essentially 30+ identical image components which need to be
    loaded/unloaded at different intervals, and they are not loading
    fast enough for me. Would it be more effective to duplicate an
    existing "master" Image to improve load time instead of explicitly
    setting "image.source=" each time? Is there any better solution for
    improving image load speed?
    Best of all would be some way to pre-cache or buffer images,
    so that I can be guaranteed that they will load as quickly as
    possible when I bind them to an Image component.
    Cheers!

    JPGS are much better for photos.  PNGs are good when you need transparency.
    Instead of Image Swapping, why don't you use a photo gallery?
    FancyBox is nice..  It supports real text captions/descriptions, too.
    http://fancybox.net/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Images load really slow after using Reduce File Size...

    After using the "Reduce File Size..." feature in Acrobat 9 on Windows Vista, some of the images load really slow as I page through the document. Is there some kind of compression setting that I should look for to prevent the images from be affected by this?
    For some of my documents it will take 30 to 60 seconds to load an image. Sometimes I can't do anything with the document until the graphic loads entirely.

    Can you post an example of a file that has this issue? Personally, I recommend using the PDF optimizer, it gives better control of the final pdf file.

  • Spaces in file path preventing image load

    Hi all,
    I've got a problem: after installing Java 1.4 on Windows 2000, some of my image loading code stopped working--but only under very specific conditions (the code in question follows the post).
    If you run an applet locally, AND the applet is accessing the class files in an archive (a ZIP file, in my case), AND the path to the html file that references the applet contains spaces, the Java plug-in can't find any images (using the default Toolkit's 'getImage' method).
    For example, if I launch "c:/projects/slide_test/slide.htm", everything works great, but if I launch "c:/projects/slide test/slide.htm", the images won't load (assuming the .class files exist in an archive in both cases).
    Similarly, if I launch "c:/projects/slide test/slide.htm" but leave the .class files unzipped and in the "slide test" directory, everything works fine.
    The code works great using the Microsoft JVM and worked well under JRE 1.3_0x.
    Has anyone else encountered and/or solved this problem?
    Thanks in advance for any help or comments.
    Here's the image loading code, though I stress it's been working great up to Java 1.4:
    try {
        this.image = Toolkit.getDefaultToolkit().getImage(imageURL);
        try {
            tracker = new MediaTracker(parentApplet);
            tracker.addImage(this.image, 0);
            try {
                tracker.waitForID(0);
                this.iWidth = this.image.getWidth(null);
                this.iHeight = this.image.getHeight(null);
            catch (Exception e) {
                System.out.print("Failed to track image.\n");
        catch (Exception e) {
            System.out.print("applet not yet initialized.\n");
    catch(Exception e) {
        System.out.print("Failed to data for bitmap " + imageURL.toString() + "\n");

    Hey Safir,
    Thanks for the post. Unfortunately, that didn't fix the problem. I tried reforming the URL using "\ " and " " (in place of the '%20' that Java automatically substitutes), but the problem persists.
    Given that the code works as is until you try to access the class files from an archive, I think there's something deeper at work.
    Thanks again.
    Kreitler

  • Images won't appear when file is loaded

    I currently have a PC at home and I started a project there with images imported from an illustrator file.
    It worked fine at home until I brought it to school and loaded it on a Mac. All my images are blank, however there is still a bounding box around them but there's nothing inside. Even the files in the project panel don't show up when I drag it to another composition. I tried to import the illustrator file again and when I did, the images worked, but that would mean I would have to redo the whole project when I've already finished it.
    When I took the file and loaded it at home again, it worked fine. It seems like I need to update my files for it to show, but I'm not exactly sure how. Does anyone know how I can fix this error and get the images loading? It would be greatly appreciated, thanks!

    Check whether the machine at school has correctly been updated to A§ 8.0.2. Several not so minor bugs were fixed with the updates. also check your files on Illustrator (Mac) and if necessary, re-save them from there.
    Mylenium

  • Slow scrolling after large image loaded

    Hi all,
    Im trying to load a large Jpeg image (11mb, 4096*4096) into a bufferedimage object and draw this on a scrollable panel. However, the load time and scrolling once it has loaded is very slow. Here is the code I use to load the image and draw it
    try {
    File f = new File(mapName_);
    map_ = ImageIO.read(f);
    } catch (Exception e) {}
    public void paintComponent(Graphics g){
    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D)g;
    if(map_ != null){
    g.drawImage(map_,0,0,this);
    Also, when I run the program I increase the heap size with the command "java -Xmx128M -jar imap.jar" to avoid out of memory errors.
    Any ideas on how to improve the loading time and scroll speed?
    Thanks

    I have a 9800pro, AMD XP3200 and 1gig pc3200.

  • Main image loads slowly on website

    How do I fix the fact that the main image on my web pages loads slowly on any web browser?  I created each main image in Photoshop and made sure each was 72 dpi and was its layers were flattened.  Is there some kind of code I need to add?  I heard something about adding java script.
    Please let me know.
    -Erica

    LOL comment is from a Spam Bot.  Just ignore it.
    Images should be resized to the size required on your web page(s).  Save for Web as optimized JPGs.  The smaller the file size, the faster your page load speed. 
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How can i control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?

    Sup buddies,
    How can I control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?
    As the project grows in size the load time increases. How does one control not loading all images ,divs,elements etc. until they're
    needed on the timeline? For example some sections are off and only become visible when recalled. My projects slowly grow in size so loading
    all images , is counter productive . My other option would be to create separate htmls but that breaks the seamless user experience .
    TY...Over N Out... 

    hello, kiwi
    quote: "Is there an easy way to burn a completed project to DVD, but keep only the (lo res, lo size) previews on my hard drive?"
    yes.
    maybe,...
    1. you might think of making DVD backups first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    or,
    2. bring in the photographs to hard drive first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    the low rez Previews will stay in Aperture but the high quality Versions will be exported onto DVDs and gone from the hard drive (if you delete the originals).
    another way would be to export small about 50-70 pixel wide high quality jpegs to a folder on your Desktop and import & keep these in Aperture Library as a reference. make metadata to show where the original Project DVDs are stored and DVD filing system used.
    victor

  • Any Way I Can Make My Page's Images Load One At a Time?

    Hi folks,
    I have a page with a stack of large images. It takes several seconds for them all to load, but I was wondering if there's any way I could dictate the order in which all of these images load? This way, the top image would load first, then the the next one down, and so on, leaving little perceivable page load time for visitors.
    It seems like this would be a common necessity for a web page, does anyone know an easy (because I know very little about this) way to do this?
    Thanks!

    One major problem, is that you have scaled the images in DW, and not in a graphics program.   I have your page open in the background and it's been a while loading and it's still not finished  :-)
    eg:  the following images has properties of:
    http://www.selfeffacingtheories.com/web-content/pictures/picpics/holes.jpg
    933px × 699px  but you have scaled it to:  615px × 458px
    Trying to put your page through the Web Optimiser - doesn't show a very good result - it couldn't be tested because it exceed the size requirement.
    http://www.websiteoptimization.com/services/analyze/
    The size of this web page (4264698 bytes) has exceeded the maximum size of 3000000 bytes.
    This is just way too big a file size and seriously needs to be optimised.  The only way to do this is to scale down the images in either Photoshop or Fireworks.
    Why not use a lightbox effect, where you show a much smaller size of the image and then when someone clicks on it they see a much larger version of the image:
    My small demo here: (using the Dreamweaver Lightbox Extension)
    http://dreamweaverresources.com/tutorials/dreamweaver-lightbox/

  • Remote location, 7kbs d'load speed, 10 days to d'load Lion, only software updates are through the App Store. Why can't we d'load and install outside the Cloud anymore? Some of us can't use the cloud.

    Remote location, 7kbs d'load speed, 10 days to d'load Lion, only software updates are through the App Store. Why can't we d'load and install outside the Cloud anymore? Some of us can't use the cloud and never will be able to.

    That is true - I apologize for not being specific - what I was mainly referring to is iLife applications. I have a notice on the App Store that says 3 apps need updates, I look at the apps and they are huge so since my connection is so slow I use my work connection and d'load the files from support to my Windows machine and carry them home, once d'loaded my MacAir states it cannot install, the update must come from the App Store.
    I do the same thing for large Leopard and Lion files and I can install them without error, it is just the App Store files that the system stops.

  • XML scrolling thumbnail, image loader, & Buttons [halfway works]

    Intro:
    I started a flash-based website a few years ago. Back in 2006 I was able to get a xml scrolling thumbnail, image loader to work without a glitch.
    For numerous reasons I had to put the project on hold until now. [one was that my 30 day trial of flash expired and only recently was I able to purchase the Adobe Web Suite CS4 as well as a new computer which could run the apps.]
    Last Friday saw a bump in the road in the development of my site as two, rather straightforward task, turned into something short of a nightmare as I have been unable to get past these two, seemingly, relatively simple task.
    I have posted in 4 other flash forums the issues, in detail, that I am facing - and have quite a bit of interest/views in the topic as the numbers suggest - yet no response/answer as of yet. [Which confirms other messages I have seen which seem to state that working with buttons has become increasingly difficult with the newer version of flash - something Im a bit surprised with actually from Adobe. - I would have thought there would be a palette where you could set parameters...]
    Screenshot of Site/Timeline:
    Before getting into the two questions I have, I would like to post an image of the site as it looks whenever an swf file is saved out, as well as a piece of the timeline in the back for reference.
    Issue #1
    As of now when the swf file is saved out you get exactly what you see above:
    a: A scrolling thumbnail
    b: ...which loads a large image when clicked on it - PEFECT...
    BUT...
    1a: I need for the buttons to load in this action, not for it to just load on its own.
    [i.e., the silk_paintings gallery is what is open, so I need the "silk_paintings" button to call up this action]
    note: Initially I had attacked this problem by taking out the actions layer you see above and applying it directly to the individual buttons with some crude MouseEvent Listener/Handerls... that did not work - at all.
    Im sure it may be "easier" to make an array out of it, but with my coding level it may be "easier" to apply it to the buttons.
    1b: How I currently see it, I would take the xml-list and duplicate it for the number of galleries I have.
    [I would then re-name the xml-list to reflect the name of the galleries they are to represent, i.e. "silk_paintings"]
    [also, I would have to rename the folders to "thumbnails1,2,3, etc., & "images 1,2,3, etc"
    From there I would duplicate the actions and paste it into the buttons, changing the xml-list name to that of "silk_paintings", etc., as well as write in the MouseEvent listener Handler to make it work. [ah, ha, but what is that magic phrase, I have tried to implement various code from other tutorials, and all in vein.]
    Issue #2
    At this point I would be tickled pink just to get this to basic function to work.
    However, once the buttons are working and calling up the xml, etc., then I need the buttons to stay on the semi-transparent blue color it is whenever in the 'hit' state. [note: NOT pictured above.]
    With the way the buttons are currently set up, and with wanting to use scripting to get them to interact with the thumbnail gallery, it will have to be some miraculous code to tell that button what color to stay as whenever its clicked, and of course it going back to white when another button is clicked.
    Conclusion:
    Since this is an Adobe Forum I would like to make a few additional statements in hopes that the developers, etc. may take heed.
    Adobes products are not cheap, and when I went to purchase the websuite I went in as a designer needing a program as not to need to program.
    I understand the flexibility that coding gives, but something as simple as linking buttons should not be in the realms of rocket science. [yes, for many its not...but my brain just does not operate that route despite all the tutorials thrown at me.]
    Again, it would seem that there would be a button panel where you could drag options like scrolling thumbnail slider, loader, and then parameters would come up. [much like Apples iWeb. - but before the argument of one being pro and the other for non-pros, I see it differently. Software should not be the limiting factor in how flexible you can design, or rather ones lack of programming shouldnt be. With all the talented, and I say this in all humility and honesty, programmers working for Adobe, Im sure something could be programmed like what Im asking for.]
    note: Director is a good example, back in 1997 I knew nothing of multimedia and in one week I had assembled a portfolio, clicking buttons, speech, movies, and all. - and no, I dont have the money to buy more software!
    At this moment I am at the mercy of someone who reads code like its a nighttime tale they are telling their kids, and who can see the exact issue I have and can share the appropriate, correct code. [as I have noticed, it has to be on target - naturally - but this target changes with just a slight change in the design.]
    Thank you,
    peace
    Dalen
    p.s.
    The actionscript: [note: This is only the current working/good code that Im trying to get the buttons to call up.]
    stop();
    fscommand("allowscale", false);//keep SWF display at 100%
    var x:XML = new XML ();//Define XML Object
    x.ignoreWhite = true;
    var fullURL:Array = new Array;//Array of full size image urls
    var thumbURL:Array = new Array;//Array of thumbnail urls
    var thumbX:Number = 25;//Initial offset of _x for first thumbnail
    x.onLoad = function(){ //Function runs after XML is loaded
        var photos:Array = this.firstChild.childNodes;//Defines variable for length of XML file
         for (i=0;i<photos.length;i++) {//For loop to step through all entry lines of XML file
              fullURL.push(photos[i].attributes.urls);//Each loop, adds URL for full sized image to Array fullURL
              thumbURL.push(photos[i].attributes.thumbs);//Each loop, adds URL for thumbnails to Array thumbURL
              trace(i+". Full Image = "+fullURL[i]+"  Thumb Image = "+thumbURL[i]);         
              var t = panel.attachMovie("b","b"+i,i);//Each loop, Define local variable 't' as a new instance of 'b' movie clip, given unique instance name of 'b' plus the index number of the For loop
              t.img.loadMovie(thumbURL[i]);// Each loop, load thumbnail image from XML data into variable movie clip
              t._y = 0;//Set Y coordinate of variable movie clip
              t._x = thumbX;//Set X coordinate of variable movie clip based on variable thumbX
              t.numb = i;//Set sub-variable 'numb' inside variable t to hold index number
              t._alpha = 75;//Set the Alpha value of the variable movie clip to 75% - for onRollOver highlight action
              thumbX += 55;//Increment thumbX value so next thumbnail is placed 125 pixels to the right of the one before
              t.onRollOver = function () {//define onRollOver event of the variable movie clip
                   this._alpha = 100;//Set thumbnail alpha to 100% for highlight
              t.onRollOut = function () {//define onRollOut event of the variable movie clip
                   this._alpha = 75;//Reset thumbnail alpha to 75%
              t.onPress = function () {//define onPress event of the variable movie clip
                   this._rotation += 3;//rotates thumbnail 3 degrees to indicate it's been pressed
                   this._x += 3;//Offset X coordinate by 3 pixels to keep clip centered during rotation
                   this._y -= 3;//Offset Y coordinate by 3 pixels to keep clip centered during rotation
              t.onReleaseOutside = function () {//define onRelease event of the variable movie clip
                   this._rotation -= 3;//rotate thumbnail back 3 degrees
                   this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during rotation
                   this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during rotation
                   this._alpha = 75;//Reset thumbnail alpha to 75%
              t.onRelease  = function () {//define onRelease function to load full sized image
                   this._rotation -= 3;//rotate thumbnail back 3 degrees
                   this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during
                   this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during
                   this._alpha = 75;//Reset thumbnail alpha to 75%
                   holder.loadMovie(fullURL[this.numb]);//Load full sized image into holder clip based on sub-variable t.numb, referenced by 'this'
         holder.loadMovie(fullURL[0]);//Initially load first full size image into holder clip
    x.load ("silk_paintings.xml");// path to XML file
    panel.onRollOver = panelOver;
    function panelOver() {
         this.onEnterFrame = scrollPanel;
         delete this.onRollOver;
    var b = stroke.getBounds(_root);
    function scrollPanel() {
         if (_xmouse<b.xMin||_xmouse>b.xMax||_ymouse<b.yMin||_ymouse>b.yMax) {
         this.onRollOver = panelOver;
         delete this.onEnterFrame;
         if (panel._x >= 740) {
         panel._x = 740;
    if(panel._x <= (thumbX-10))  {
              panel._x = (thumbX-10)
         var xdist = _xmouse - 830;
         panel._x += -xdist / 7;
    The xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <slideshow>
    <photo thumbs="thumbnails/i_brown_fairy.jpg"  urls="images/brown_fairy.jpg"  />
    <photo thumbs="thumbnails/i_blonde_fairy.jpg"  urls="images/blonde_fairy.jpg"  />
    <photo thumbs="thumbnails/i_flower_fairy.jpg"  urls="images/flower_fairy.jpg"  />
    <photo thumbs="thumbnails/i_red_fairy.jpg"  urls="images/red-fairy.jpg"  />
    </slideshow>
    Attached is a link to the file I made named "index".
    https://rcpt.yousendit.com/706233226/5e7b4fe0973dacf090b5cbae32c47398
    I would have liked to have included the following files but was limited due to "you-send-it" not uploading folders.  Files not included: [but functioning] : xml list - images [folder] - thumbnails [folder]
    Again, Thank you
    Dalen

    The issues with the buttons calling up the scrolling thumbnail panel have been resolved, as well as keeping the buttons in their hit state once clicked, thanks to Rob.
    Those that have been following this thread, or stumble upon it in their searches later, may appreciate to see the final solution to this particular issue.
    [Hopefully I will be able to update this thread with a url in the future to show the site in operation, which may help somebody with their project in the future if its set up similarly.]
    Alas, it would be nice if future versions of flash had a more direct, flexible, user friendly method for creating navigation.
    [We may see development beyond the flash ads which everyone seems to loathe... and more creativity with flash in terms of games, web interactivity, &  animation.
    Below are 2 sets of code:
    a] the first is located within the first frame of the first button, and has some extra variables in it that the additional buttons call upon...
    b] the second is the code applied to every other button.
    stop();
    fscommand("allowscale", false);//keep SWF display at 100%
    var x:XML = new XML();//Define XML Object
    x.ignoreWhite = true;
    var fullURL:Array = new Array();//Array of full size image urls
    var thumbURL:Array = new Array();//Array of thumbnail urls
    //  .......  CHANGE
    var thumbX:Number;// = 25;//Initial offset of _x for first thumbnail
    // make an array of all of the instance names of each button object...
    // only do this once
    var buttonsList:Array = new Array(shadesOfGrey, silkPaintings);
    shadesOfGrey.isLatched = false;
    // the rollover function... repeat for each button
    shadesOfGrey.onRollOver = shadesOfGrey.onDragOver=function ():Void {
         if (!this.isLatched) {
              this.gotoAndStop(2);
    // the rolloff function... repeat for each button
    shadesOfGrey.onRollOut = shadesOfGrey.onDragOut=shadesOfGrey.onReleaseOutside=function ():Void {
         if (!this.isLatched) {
              this.gotoAndStop(1);
    // the mouse press function... repeat for each button
    shadesOfGrey.onPress = function():Void  {
         resetAllButtons();
         this.isLatched = true;
         this.gotoAndStop(3);
    shadesOfGrey.onRelease = function():Void  {
         x.load("shadesOfGrey.xml");// path to XML file
         thumbX = 25;
    function resetAllButtons():Void {
         for (b in buttonsList) {
              buttonsList[b].isLatched = false;
              buttonsList[b].gotoAndStop(1);
    x.onLoad = function() {//Function runs after XML is loaded
         //  resets the position of the panel on each new load
         panel._x = 740;
         //  .......  CHANGE  removes the existing movieclips from the panel before any new load...
         for (c in panel) {
              if (typeof (panel[c]) == "movieclip") {
                   removeMovieClip(panel[c]);
         var photos:Array = this.firstChild.childNodes;//Defines variable for length of XML file
         for (i=0; i<photos.length; i++) {//For loop to step through all entry lines of XML file
              fullURL.push(photos[i].attributes.urls);//Each loop, adds URL for full sized image to Array fullURL
              thumbURL.push(photos[i].attributes.thumbs);//Each loop, adds URL for thumbnails to Array thumbURL
              //trace(i+". Full Image = "+fullURL[i]+"  Thumb Image = "+thumbURL[i]);
              var t = panel.attachMovie("b", "b"+i, i);//Each loop, Define local variable 't' as a new instance of 'b' movie clip, given unique instance name of 'b' plus the index number of the For loop
              t.img.loadMovie(thumbURL[i]);// Each loop, load thumbnail image from XML data into variable movie clip
              t._y = 0;//Set Y coordinate of variable movie clip
              t._x = thumbX;//Set X coordinate of variable movie clip based on variable thumbX
              t.numb = i;//Set sub-variable 'numb' inside variable t to hold index number
              t._alpha = 75;//Set the Alpha value of the variable movie clip to 75% - for onRollOver highlight action
              thumbX += 55;//Increment thumbX value so next thumbnail is placed 125 pixels to the right of the one before
              t.onRollOver = function() {//define onRollOver event of the variable movie clip
                   this._alpha = 100;//Set thumbnail alpha to 100% for highlight
              t.onRollOut = function() {//define onRollOut event of the variable movie clip
                   this._alpha = 75;//Reset thumbnail alpha to 75%
              t.onPress = function() {//define onPress event of the variable movie clip
                   this._rotation += 3;//rotates thumbnail 3 degrees to indicate it's been pressed
                   this._x += 3;//Offset X coordinate by 3 pixels to keep clip centered during rotation
                   this._y -= 3;//Offset Y coordinate by 3 pixels to keep clip centered during rotation
              t.onReleaseOutside = function() {//define onRelease event of the variable movie clip
                   this._rotation -= 3;//rotate thumbnail back 3 degrees
                   this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during rotation
                   this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during rotation
                   this._alpha = 75;//Reset thumbnail alpha to 75%
              t.onRelease = function() {//define onRelease function to load full sized image
                   this._rotation -= 3;//rotate thumbnail back 3 degrees
                   this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during
                   this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during
                   this._alpha = 75;//Reset thumbnail alpha to 75%
                   holder.loadMovie(fullURL[this.numb]);//Load full sized image into holder clip based on sub-variable t.numb, referenced by 'this'
         holder.loadMovie(fullURL[0]);//Initially load first full size image into holder clip
    // this one function scrolls the panel for all of the buttons, it gets the
    // size of the panel when the images are loaded by any given button...
    stroke.onEnterFrame = function() {
         if (this.hitTest(_xmouse, _ymouse, false)) {
              if (panel._x>=740) {
                   panel._x = 740;
              if (panel._x<=740-panel._width+mask._width) {
                   panel._x = 740-panel._width+mask._width;
              if ((panel._x<=740) && (panel._x>=740-panel._width+mask._width)) {
                   var xdist = _xmouse-830;
                   panel._x += -xdist/7;
    Of note is the change to how the movie clips are measured... this change in and of itself has really helped to make the thumbnail panels operation more efficient.
    Below is the script for each additional button: [Having issues with the forums not letting me post additional code, so I will put the remaining code in a reply below.]
    cont.

  • Issue with Image Loader in 14.0

    Hi All,
    In our application, we have a custom function module in ECC, which is passing the URL of an image uploaded on the content management server(KPRO). Custom FM calls 'SDOK_PHIO_GET_URL_FOR_GET' to get the URL of the image.
    When we execute the FM in ECC, we get the URL as:
    http://gbswidkprodb01.global.rexam.net:81/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=YA&docId=001F296E9EB61ED3B6F490000438C20C&compId=TJ12A.jpg&accessMode=r&authId=CN%3DBC3,OU%3DI0520020335,OU%3DSAPWebAS,O%3DSAPTrustCommunity,C%3DDE&expirat
    when I use this URL in the browser the image gets loaded in browser.
    When I capture the output of JCO call in write file URL returned from FM is:
    http://<server>:81/ContentServer/ContentServer.dll?get&amp;pVersion=0046&amp;contRep=YA&amp;docId=001F296E9EB61ED3B6F490000438C20C&amp;compId=TJ12A.jpg&amp;accessMode=r&amp;authId=CN%3DBC3,OU%3DI0520020335,OU%3DSAPWebAS,O%3DSAPTrustCommunity,C%3DDE&amp;expiration=20140617181313&amp;secKey=MIIBUgYJKoZIhvcNAQcCoIIBQzCCAT8CAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGCAR4wggEaAgEBMG8wZDELMAkGA1UEBhMCREUxHDAaBgNVBAoTE1NBUCBUcnVzdCBDb21tdW5pdHkxEzARBgNVBAsTClNBUCBXZWIgQVMxFDASBgNVBAsTC0kwNTIwMDIwMzM1MQwwCgYDVQQDEwNCQzMCByASCCcTUiEwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE0MDYxNzE2MTMxM1owIwYJKoZIhvcNAQkEMRYEFM%2FKd4MzWL0y1KfF58AHNg9PYqOlMAkGByqGSM44BAMELzAtAhUAtqASnXbD3E2ZM8EhG%2FLxgJhKCs0CFH0qFlBxzWlzS8kjeFw3kad63SHW
    when I use this URL in the browser I get 'HTTP 400' error.
    Using either of the two URL's in the image loader I get the error:
    [WARN] [ImageLoader_0]ImageLoader_0 Status: 400 - (bad request)
    We are currently on SAP MII 14.0 SP05(patch 3).
    Thanks in advance for your help.
    Regards,
    Darshan

    Sam,
    I tried logging in to ECC with the same user as the one that is making the Jco connection and it is giving the same URL which i was getting earlier when i was executing the FM with my user id. I am testing the FM through SE37.
    There is no logic in the custom BAPI to replace the <server> keyword. Based on the image name, it gives the URL of where the image is stored on the KPRO server.
    Could not find URL Decode function in the MII link editor, i believe it is the decode function which you are referring to. Even that is not working. If it is something other than this, do let me know.
    PS: This works fine in the 11.5 system from which we have upgraded to 14.0.
    regards,
    darshan

  • Image not found in fxz  file produce by ""

    Hi
    I created a SVG file using inkscape called image.svg. I pasted a small image into inkscape and save it as image.svg.
    Converted it to image.image.fxz using "JavaFX Production Suite".
    When I view image.fxz using JavaFX View, it has an error
    "Loading graphics from file://C:\temp\image.fzx failed. Reason: "java.lang.RutimeException: Image creation failed: The entry 'file:c///C:/temp/IMG_2921_t.jpg" not found in file C:\temp\image.fxz"
    The IMG_2921_t.jpg was in c:\temp\
    image.svg as below. Please help.
    Thanks
    Cheers
    fire-fly
    ========== image.svg starts===============
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!-- Created with Inkscape (http://www.inkscape.org/) -->
    <svg
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:cc="http://creativecommons.org/ns#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:svg="http://www.w3.org/2000/svg"
    xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    width="744.09448819"
    height="1052.3622047"
    id="svg2"
    version="1.1"
    inkscape:version="0.47 r22583"
    sodipodi:docname="New document 1">
    <defs
    id="defs4">
    <inkscape:perspective
    sodipodi:type="inkscape:persp3d"
    inkscape:vp_x="0 : 526.18109 : 1"
    inkscape:vp_y="0 : 1000 : 0"
    inkscape:vp_z="744.09448 : 526.18109 : 1"
    inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
    id="perspective10" />
    <inkscape:perspective
    id="perspective2824"
    inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
    inkscape:vp_z="1 : 0.5 : 1"
    inkscape:vp_y="0 : 1000 : 0"
    inkscape:vp_x="0 : 0.5 : 1"
    sodipodi:type="inkscape:persp3d" />
    </defs>
    <sodipodi:namedview
    id="base"
    pagecolor="#ffffff"
    bordercolor="#666666"
    borderopacity="1.0"
    inkscape:pageopacity="0.0"
    inkscape:pageshadow="2"
    inkscape:zoom="0.22425739"
    inkscape:cx="372.04724"
    inkscape:cy="526.18109"
    inkscape:document-units="px"
    inkscape:current-layer="layer1"
    showgrid="false"
    inkscape:window-width="550"
    inkscape:window-height="483"
    inkscape:window-x="115"
    inkscape:window-y="115"
    inkscape:window-maximized="0" />
    <metadata
    id="metadata7">
    <rdf:RDF>
    <cc:Work
    rdf:about="">
    <dc:format>image/svg+xml</dc:format>
    <dc:type
    rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
    <dc:title></dc:title>
    </cc:Work>
    </rdf:RDF>
    </metadata>
    <g
    inkscape:label="Layer 1"
    inkscape:groupmode="layer"
    id="layer1">
    <image
    y="422.67114"
    x="288.8963"
    id="jfx:image2826"
    height="100"
    width="100"
    xlink:href="file:///C:/temp/IMG_2921_t.jpg"
    inkscape:label="#image2826" />
    </g>
    </svg>
    ==========image.svg ends ===============

    Hi,
    it is indeed bug in SVG Converter from Production Suite. The correct behavior is to add the referenced image into fxz archive, so that the file is self contained and does not depend on other files somewhere on a file system. I filed [http://javafx-jira.kenai.com/browse/RT-8794|http://javafx-jira.kenai.com/browse/RT-8794]
    As a workaround you may insert the file IMG_2921_t.jpg manually into the fxz archive and change the url in the content.fxd entry so that is will look like this: image: Image { url: "IMG_2921_t.jpg" } . The fxz files are normal zip files, just with different extension.
    Sorry for inconvenience and thanks for finding this issue.
    Regards,
    Pavel

  • Something in correct with Image loading....

    Hi All,
    I have created a very simple form to load image into a form.
    Using forms 10g dev suite on win XP.
    I load two images for two image items.
    for IMAGE1 I have written the below code in its when-image-pressed trigger and this Image loading WORKS FILE...
    i get the desired image loaded
    DECLARE
         tiff_image_dir VARCHAR2(80) := 'C:\DevSuiteHome_1\forms\111.gif';
         photo_filename VARCHAR2(80);
    BEGIN
         :System.Message_Level := '25';
         photo_filename := tiff_image_dir ;
         READ_IMAGE_FILE(photo_filename, 'GIF', 'emp.my_test_button');
         READ_IMAGE_FILE(photo_filename, 'GIF', 'emp.my_test_button');
         IF NOT FORM_SUCCESS THEN MESSAGE('This employee does not have a photo on file.');END IF;
         :SYSTEM.MESSAGE_LEVEL := '0';
         END;
    the problem is with Image two...it laods some incorrect image .....as i am trying to USE JAR file
    the trigger code is below
    DECLARE
         photo_filename VARCHAR2(80);
    BEGIN
         :System.Message_Level := '25';
         READ_IMAGE_FILE('111.gif', 'URL', 'emp.image_item');
         IF NOT FORM_SUCCESS THEN MESSAGE('This employee does not have a photo on file.');END IF;
         :SYSTEM.MESSAGE_LEVEL := '0';
    END;
    below is the entry for my formsweb.cfg
    I have placed my
    [my_app]
    width=675
    height=480
    separateFrame=false
    splashScreen=no
    lookAndFeel=oracle
    colorScheme=blue
    background=/forms/formsdemo/images/blue.gif
    logo=/forms/formsdemo/images/bannerlogo.gif
    baseHTMLjinitiator=demobasejini.html
    baseHTMLjpi=demobase.htm
    baseHTML=demobase.html
    baseHTMLie=demobaseie.html
    envFile=formsdemo.env
    archive_jini=frmall_jinit.jar,AppIcons.jar
    #archive=frmall_jinit.jar
    pageTitle=Oracle Forms - My Application
    form=my_test_button.fmx
    imagebase=codebase
    userid=scott1/tiger@ora11g
    My classpath entry in ENV file is
    CLASSPATH=C:\DevSuiteHome_1\jlib\debugger.jar;C:\DevSuiteHome_1\forms\demos\my_app\AppIcons.jar;C:\DevSuiteHome_1\forms\demos\jars\uploadserver.jar;C:\DevSuiteHome_1\forms\demos\jars\demowebserviceclientside.jar;C:\DevSuiteHome_1\jdk\jre\lib\rt.jar;C:\DevSuiteHome_1\forms\demos\jars\javamailintegration.jar;C:\DevSuiteHome_1\forms\demos\jars\mail.jar;C:\DevSuiteHome_1\forms\demos\jars\activation.jar
    What mistake am i doing?
    rgds,
    s

    Slava ,Magoo and S@r@h....
    I have done the following,still no respite..
    step 1) Create the jar file
    C:\myapp>jar cvf AppIcons.jar *.gif
    added manifest
    adding: 111.GIF(in = 28895) (out= 28675)(deflated 0%)
    adding: 222.GIF(in = 28895) (out= 28675)(deflated 0%)
    adding: name_gif.GIF(in = 28903) (out= 28681)(deflated 0%)
    step 2) move the AppIcons.jar in the ClassPATH specified by env file(envFile=formsdemo.env)
    in my case the classpath looks like below
    and I have moved the AppIcons.jar to C:\DevSuiteHome_1\forms\demos\my_app
    CLASSPATH=C:\DevSuiteHome_1\jlib\debugger.jar;C:\DevSuiteHome_1\forms\demos\my_app\AppIcons.jar;C:\DevSuiteHome_1\forms\demos\jars\uploadserver.jar;C:\DevSuiteHome_1\forms\demos\jars\demowebserviceclientside.jar;C:\DevSuiteHome_1\jdk\jre\lib\rt.jar;C:\DevSuiteHome_1\forms\demos\jars\javamailintegration.jar;C:\DevSuiteHome_1\forms\demos\jars\mail.jar;C:\DevSuiteHome_1\forms\demos\jars\activation.jar
    step 3) shutdown and restart the OC4J
    To Answer Slava's question:
    2. Check Jinitiator console and see if AppIcons.jar is loaded.
    You should see :
    Loading http://host:port/forms/java/AppIcons.jar from JAR cache
    YES its loading prefectly.
    To answer Magoo's questions:
    q)What is the incorrect image look like? Somehting like a broken link image?
    Yes,the image is a small page icon which is broken like a torn page(and has three small solid figures in it)
    q)Do you get there a message like Unable to load image 111.gif for Image Item ?
    No I do not get any error message.
    What next ?
    rgds
    s

Maybe you are looking for

  • Advise on DB links in APEX

    Hi, I have installed apex on my test system in the same database where my original data resides and application is working fine. Now for production my org dont want to install apex on the same db(server 1). They want me to install apex on separate db

  • What is the cracking sound when I open my MacBook Pro lid?

    When opening and closing MacBook Pro lid, it makes a cracking sound. Does anyone have an idea what it could be? It's not the hard drive because Geek Squad ran a test and everything passed.

  • MouseListener event and ComboBox actionlistener event problem

    Hi Guys, I use combo box to get diffrent tables from microsoft access database. The table will allow user to click on the cell and the data in the cell will be puting into a text field. My problem now is when i refresh the table to get another table,

  • How to turn off IDOC ALEAUD01?

    Hi, I'm using R/3 -> XI -> Third-Party scenario. Whenever, R/3 sends IDoc to XI via Sender IDoc adapter, XI sends IDOC ALEAUD01 as a receipt acknowledgment. Is there any way we can turn this feature off so that XI will not send IDOC ALEAUD01 to R/3 s

  • Pcr in MSS are giving error

    Hi gurus, The problem is we are getting this error when a PCR is submitted by the manager in MSS. Service key not existing in the backend - no parameters can be added to the service key link! We are using the MSS 1.0 version and ECC 6.0 backend . Can