JNI Image Rendering

I have a problem regarding Java and C++. I want to write a Java application that can display the livestream of PTZ cameras and network cameras. It currently works but the algorithm is not very efficient. I have written a C++ library (compiled with Visual Studio 2005) that writes the image data of the cameras in BGR format into a shared memory in RAM. I think that there is a big overhead when trying to move this "unsinged char*" array into Java using "NewDirectByteBuffer".
My questions is now: Is it efficient to use JNI for such a realtime application? Would it be possible that too many JNI calls will slow down my application? The problem is that I will have to call JNI functions more than 25 times per second (because of an frame rate around of 25 FPS).
Thanks for any advices.

I have a problem regarding Java and C++. I want to
write a Java application that can display the
livestream of PTZ cameras and network cameras. It
currently works but the algorithm is not very
efficient. I have written a C++ library (compiled
with Visual Studio 2005) that writes the image data
of the cameras in BGR format into a shared memory in
RAM. I think that there is a big overhead when trying
to move this "unsinged char*" array into Java using
"NewDirectByteBuffer".
My questions is now: Is it efficient to use JNI for
such a realtime application? Would it be possible
that too many JNI calls will slow down my
application? The problem is that I will have to call
JNI functions more than 25 times per second (because
of an frame rate around of 25 FPS).
Thanks for any advices.Have you considered using the AWT Native Interface?
http://java.sun.com/j2se/1.5.0/docs/guide/awt/1.3/AWT_Native_Interface.html
Native painting on a Java application.
Incidentally, I used exactly this method for exactly the same purpose (4-up PTZ camera displays).
Jim S.

Similar Messages

  • Datagrid Image Renderer Broken in CS SDK but not Flex project

    Within a Photoshop Extension, I have a DataGrid which has an inline custom image renderer whose dataprovider is an ArrayCollection called "photos"  representing a list of photos and some metadata properties.  One of the properties "fileName" is concatenated with a path to a thumbnail image such as source="{'LR_AUTO/imported/thumbs/' + data.fileName}".
    The dataprovider is bound to a LCDS DataService. When the extension is first launched, the dataservice initializes the dataprovider with the existing values for the "photos" arraycollection.  The thumbnail images are correctly shown.
    However, when the DataService receives a new row and updates the photos dataprovider, the datagrid's new row shows a broken image for the thumbnail even though the path is correct.  I have dumped the photos dataprovider and verified that all information is correct.  When I close Photoshop and relaunch it from Flash Builder, once again LCDS initializes the photos ArrayCollection and THEN the thumbnail that previously showed as broken show up correctly.
    I have a ColdFusion Directory Watcher Gateway that watches a directory where Lightroom auto-imports images from a tethered capture session.  When the camera sends Lightroom a new image, the new image is processed by Lightroom and moved to a target directory, and since ColdFusion's Directory Watcher is watching that targeted directory, ColdFusion will create a thumbnail image in a subfolder and notifiy LCDS that of the new image and related metadata.
    *** This is the interesting part *** When Lightroom places new images in the target directory, this is propogated to the Photoshop Extension's datagrid, and the new row shows up as described earlier, showing a broken image for the thumbnail.  BUT, instead of Lightroom, if I manually copy images to the folder where ColdFusion is watching, then exact same code path is exectuted and in the Photoshop Datagrid the new row appears and THE THUMBNAIL IMAGE shows up correctly.
    The difference seems to be only in how the images are put in the original target location.  The problem is when Lightroom puts them there, but it works when I put them there as a user.
    *** More Interesting Info *** I have the Flex code for the Photoshop Extension duplicated in a standalone, non-CSSDK project using Flex 3.4 which I launch in a browser.  I have mirrored the code in the Photoshop extension, but in this manner, the problem does not exist.  With plain Flex 3.4 in a browser, whenever LCDS notifies the datagrid of a new photo record, the datagrid's new row ALWAYS shows the thumbnail correctly.
    A primary difference in how the thumbnail image is rendered is that in a browser, the Flex 3.4 project accesses the image assets over the network, however, in the Photoshop Extension, the image asset WITH THE SAME RELATIVE PATH is accessed over the local file system.
    source="{'LR_AUTO/imported/thumbs/' + data.fileName}"
    So in the case of the browser, this path is a relative URL and the image is retrieved over HTTP, however, in the PS Extension, the same path represents a file system path relative to the project folder.
    Unfortunately, because the Flash Player (including APE) cannot access BOTH the network and the local filesystem, so I cannot change the Extension to use network access.
    ** The important part to remember is that when I stop the Flash Builder debug session and close Photoshop, then relaunch the debug with Photoshop, then all the images show up correctly in the Extension.
    Your advice is appreciated.
    Thank you!
    Steve
    ====================================================
    Environment
    ====================================================
    Photoshop CS5 Extended 12.01 x32
    Flash Builder 4
    CS SDK 1.02
    Extension Builder SDK 3.4
    MacBook Pro / OS X 10.5 / Intel Core 2 Duo 2.66 GHz / Procs: 1 / Cores: 2 / Memory: 8 GB
    App configured for Photoshop CS5 and Photoshop CS5 Extended
    ====================================================
    NewsAgencyPhotoshop.mxml
    ====================================================
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="com.stevenerat.news.*"
                    horizontalScrollPolicy="off" verticalScrollPolicy="off" verticalGap="0"
                    layout="vertical" horizontalAlign="left"  backgroundColor="#353535"
                    historyManagementEnabled="false"
                    creationComplete="init();">
        <mx:Script>
                public function handlePhotoClick(data:Object):void {
                    this.PreviewImageWindow = PreviewImage(PopUpManager.createPopUp(this,PreviewImage,true));
                    var filePath:String = data.dirPath + data.fileName;
                    PreviewImageWindow.addEventListener("imageOpenEvent",imageOpenListener);
                    PreviewImageWindow.addEventListener("imageCloseEvent",imageCloseListener);
                    PreviewImageWindow.addEventListener("imageSavedEvent",imageSaveListener);
                    PreviewImageWindow.setFileName(data.fileName);
                    PreviewImageWindow.setFilePath(filePath);
                    PreviewImageWindow.y = 0;
                    PreviewImageWindow.x = 0;
            ]]>
        </mx:Script>
        <mx:ArrayCollection id="photos"/>
        <NewsPhoto/>
        <mx:DataService id="ds" destination="NewsAgencyPhotos" autoSyncEnabled="true" autoCommit="true" conflict="conflictHandler(event)"/>
        <mx:Label text="News Agency Photos" fontSize="20" paddingBottom="30"/>
        <mx:Label text="Available Images" fontSize="15"/>
        <mx:DataGrid id="photoIPTC" dataProvider="{photos}" editable="true" width="220" rowCount="5" rowHeight="75" wordWrap="true">
            <mx:columns>
                <mx:DataGridColumn headerText="id" dataField="fileName" width="40" editable="false" sortDescending="true"/>
                <mx:DataGridColumn dataField="psLock" width="65" headerText="Status" editable="false" editorDataField="value">
                    <mx:itemEditor>
                        <mx:Component>
                            <mx:ComboBox editable="false">
                                <mx:dataProvider>
                                    <mx:String>New</mx:String>
                                    <mx:String>Open</mx:String>
                                    <mx:String>Edited</mx:String>
                                </mx:dataProvider>
                            </mx:ComboBox>
                        </mx:Component>
                    </mx:itemEditor>
                </mx:DataGridColumn>
                <mx:DataGridColumn headerText="Photo" dataField="fileName" width="80" editable="false">
                    <mx:itemRenderer>
                        <mx:Component>
                            <mx:HBox horizontalAlign="center" horizontalScrollPolicy="off" verticalScrollPolicy="off">
                                <mx:Image click="outerDocument.handlePhotoClick(data);" source="{'LR_AUTO/imported/thumbs/' + data.fileName}" width="75" height="75"/>
                            </mx:HBox>
                        </mx:Component>
                    </mx:itemRenderer>
                </mx:DataGridColumn>
            </mx:columns>
        </mx:DataGrid>
    </mx:Application>
    ====================================================
    A DUMP OF THE DATAPROVIDER
    in this case, one array item existed when launched, then a second was added
    while running.  The first has its thumbnail show, the second item has broken image
    ====================================================
    ------------------DUMP----------------------------
    (mx.collections::ArrayCollection)#0
      filterFunction = (null)
      length = 2
      list = (mx.data::DataList)#1
        fillParameters = (Array)#2
        length = 2
        localItems = (Array)#3
          [0] (com.stevenerat.news::NewsPhoto)#4
            aperture = "F10"
            cameraLens = "EF24-70mm f/2.8L USM"
            cameraModel = "Canon EOS 7D"
            city = ""
            copyrightNotice = "¬© Steven Erat 2011"
            country = ""
            creator = "Steven Erat"
            description = ""
            dirPath = "/Users/stevenerat/LR_AUTO/imported/"
            fileName = "ERAT_STEVEN_20110122_162.jpg"
            focalLen = "42.0 mm"
            headline = ""
            id = 1
            iso = "100"
            keywords = "Alt, Dramatic, Fashion, Girl, Glamorous, Glamour, Inked, Model, Portrait, SOPHA"
            psLock = "New"
            shutterSpeed = "1/128 sec"
            state = ""
          [1] (com.stevenerat.news::NewsPhoto)#5
            aperture = "F10"
            cameraLens = "EF24-70mm f/2.8L USM"
            cameraModel = "Canon EOS 7D"
            city = ""
            copyrightNotice = "¬© Steven Erat 2011"
            country = ""
            creator = "Steven Erat"
            description = ""
            dirPath = "/Users/stevenerat/LR_AUTO/imported/"
            fileName = "ERAT_STEVEN_20110122_163.jpg"
            focalLen = "42.0 mm"
            headline = ""
            id = 2
            iso = "100"
            keywords = "Alt, Dramatic, Fashion, Girl, Glamorous, Glamour, Inked, Model, Portrait, SOPHA"
            psLock = "New"
            shutterSpeed = "1/128 sec"
            state = ""
        uid = "8BAC025E-60D1-11F1-3654-44BDB0D218CE"
        view = (mx.collections::ArrayCollection)#6
          filterFunction = (null)
          length = 2
          list = (mx.data::DataList)#1
          sort = (null)
          source = (null)
      sort = (null)
      source = (null)
    ------------------END_DUMP------------------------

    I expected that if my extension uses the local filesystem AND the network that I would get a Security Sandbox Exception as I recently described in this thread:
    http://forums.adobe.com/thread/791918?tstart=0
    However, I just tried changing my datagrid image renderer to access the thumbnail via HTTP and the thumbnail issue after Lightroom export does not happen.
                <mx:DataGridColumn headerText="Photo" dataField="fileName" width="80" editable="false">
                    <mx:itemRenderer>
                        <mx:Component>
                            <mx:HBox horizontalAlign="center" horizontalScrollPolicy="off" verticalScrollPolicy="off">
                                <mx:Image click="outerDocument.handlePhotoClick(data);" source="{'http://localhost:8500/LR_AUTO/imported/thumbs/' + data.fileName}" width="75" height="75"/>
                            </mx:HBox>
                        </mx:Component>
                    </mx:itemRenderer>
                </mx:DataGridColumn>
    Furthermore, I can also open the image via the Photoshop DOM, and it does open correctly.  It seems that I do have a solution now, although I'm not certain as to why I'm not getting a Security Sandbox Exception as I described in the other post.
    Thanks for reading.

  • My PrE 11 App Crashes during DVD Burn at ~72% thru Encoding Media - image renderer dll

    This error occurs consistently with a project I just started.  Project was initially created under PrE 2 then Copied via Archive and continued under Pre 11.  I'm a new user and I need some of your expert help to resolve this.  Windows 7 event viewer signature is as follows:   Hope you can help me with this I've spent 2 days working this so far.
    oops - don't know how to insert text (.doc) file here. Will add in later post. Thanks for your interest.

    Reporting progress this AM:
    Windows updates are installed and current in both HP (Win 7 64) and Dell (XP 32).  It appears anti-virus does not have any involvement in either case.  Last set of trials had Norton on and active and had predictable outcomes (more later).  Based on this mornings test cases it could be that Win 7 PrE 11 64 bit DVD Burn process (Sysinternals has PrE burn.exe running at 32 bits) is more sensitve to bad scene clips than the Win XP PrE 11 32 bit DVD Burn process.
    Test cases performed today...Methodology -- since my detailed examination of the Project timeline did not turn up any answers I proceeded with a set of Tests to remove major scenes from the offending project stating from the END and working forward performing a project save and PrE restart after each scene removal. 
    Test case A - removed last scene, reduced timeline total from 01:00:18:00 h to 00:58:00:16. The resulting autoplay DVD burn on HP Appcrashed at 74% thru 'Encoding Media'.  Last result prior to this was Appcrash at 71%.  I then tested this Project case A against the Dell autoplay DVD burn which was good as expected.
    Test case B - also removed the next to last scene, reduced timeline total to 00:54:07:28.  The resulting autoplay DVD burn on HP Appcrashed at 80% thru 'Encoding Media'.  Spotting a trend, I calculated the offending timeline event to be approximately 00:42:45:27 to 00:43:20:15.  Going to this point in the Project timeline I once more looked for any artifacts or gaps. Finding none I also removed the continuous sub-scene starting at 00:42:45:26 ending at 00:43:45:08. 
    Test Case C - Removing the sub-scene along with last 2 scenes reduced the Project total timeline to 00:53:13:18.  The resulting autoplay DVD Burn on HP Appcrashed this time at 82% thru "Encoding Media'. So...examining the total timeline scene at around 00:43:00:00 I find 13 more sub-scenes that are derived from a set of old 8mm film conversions to .avi files.  The sub-scenes are moderately adjusted for lightness and color and are a little out of sequence from the original .avi files.  So lets remove them all.
    Test Case D1 - Removing the last 2 scenes and the 4th scene from last, reduced the Project total timeline to 00:50:42:00. The resulting autoplay DVD Burn on HP was successful!  I then prepared a Travel-Menu-based DVD Burn on the HP with 3 scene markers and it also was successful.  So I believe the Project may be OK under HP Win 7 64 PrE 11 by removing or perhaps re-editing the 4th from last Scene.  To test this conclusion I will add the last 2 scenes back into the Project and try a Menu-Based Burn on both the HP and Dell platforms.  I believe it will work .. will report back.
    This conclusion does not explain the root cause(s) for the ProblemSignature 'Image Renderer dll Appcrash' but may establish a workaround for this project.  For the 4 Test cases iterated here I used the referenced Process Explorer Sysinternals to look into potential process conflicts.  After Test Case B the Sysinternals was used to examine the 'Adobe Premiere DVD burn.exe' thread (TID 4948, CPU 0.05).  Message reads " Dbghelp.dll Configured does not support the Microsoft Symbol Server. Please download & install the Microsoft Debugging Tools for Windows to get a version that works."  This action is way beyond my experience level.  I will await overwatch input and continue with workaround analysis.
    Apologies for tedious details...but, making progress. Thanks for listening & guidance. rdub

  • The issue is related to firefox 3.5 but is also seen in firefox 3.6 the images rendered like a curtain effect if they are not preloaded and the page builds up in part rather than building all at once and showing

    When we traverse from one page to the other and this is not different php pages, its the same html page only dom manipulation. to show different gui one after the other. Now on these screens there are some images that are preloaded like loaded upfront and some are pulled at run time when user visits that screen. All images that are pulled on run time show a curtain effect. This is problem number 1, we cannot preload these images since the systems are having only 250mb ram.
    Now the other problem is that when the user goes from one screen to the other the entire screen builds up in one shot on ff 1.0.8 but on ff 3.5 or 3.6 it builds up in parts
    Do we need to change some configuration in firefox so that the curtain effect is eliminated, Is there a setting in firefox 3.5 that can make the rendering more like ff 1.0.8 or ff 2.
    Is there any different that you suggest we do our dom manipulations or some ways that we should not do if that is the cause of the issue. This is very urgent since we are loosing users due to performance problems

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Problem with image rendering program

    I am trying to use a 3D image segmentation program called "ITK-SNAP" on Mac Mini (2013). However, when I loaded the image, half of the image is not showing. I have tried the program on OSX 10.8.5 and OSX 10.9.1 (same computer, just upgraded yesteday), and both OS gave me the same problem. I have also tried different versions of "ITK-SNAP", and that did not seem to help either. The specs for the Mac Mini is the following:
    Processor: 2.5 Hz Intel Core i5
    Memory 4GB 1600 MHz DDR3
    Graphics: Intel HD Graphics 4000 1024MB
    Software OSX 10.9.1 (13B42)
    I was able to use this program without a problem on an older Macbook Pro laptop (2009, with OSX 10.8.5). The specs for the laptop is the following:
    Porcessor: 2.4 Hz Intel Core 2 Duo
    Memory: 3GB 1067MHZ DDR3
    Graphics: NVIDIA GeForce 9400M 256MB
    Software OSX 10.8.5 (12F45)
    Does anyone have any suggestions on how to fix this? Is it necessary to reinstall some drivers?
    Thanks in advance.
    Edward

    The Nvidia GeForce GPU in the MacBook can handle the 3d. The HD4000 Intel in the Mini can't UNLESS you bump up your system RAM to 8Gb or 16Gb.
    Here's why. The Nvidia is a dedicated chip, and it doesn't rely solely on system RAM to operate. The Intel HD4000 does. The MORE system RAM you have, the MORE video RAM you'll have with the Intel chip. I have 16Gb and my VRAM is 1024Mb. I use Photoshop CS5 and CS6. With 4Gb RAM, I don't have enough VRAM for either to enable 3D drawing. With 512Mb VRAM (8Gb system RAM), CS5 would allow 3D, but only with software rendering, and CS6 wouldn't allow it at all. Once I put 16Gb in the Mini, BOTH allow 3D rendering with hardware.

  • Custom Image Renderer

    I've created my own loader to load a raster file containing temperatures.
    The values are in the range of 260 to 300. I've also stored these numbers as 64 bit reals.
    When I use GeoRasterViewer and normalise the data I can see the map of the world.
    When I use MapViewer, the image is all blurred on a gray scale.
    Am I not seeing the image correctly because of the temperature range and the way it is stored?
    My map request is below.
    <?xml version="1.0" standalone="yes"?>
    <map_request title="GeoRaster" datasource="geotest"
    width="500" height="500"
    imagescaling="false" antialiasing="false"
    srid="8307" format="GIF_STREAM">
    <themes>
    <theme name="georaster_theme">
    <jdbc_georaster_query
    georaster_table="temperature" georaster_column="geo_field"
    raster_table="rasterstorage" raster_id="1"
    srid="8307" datasource="geotest" asis="false">
    </jdbc_georaster_query>
    </theme>
    </themes>
    </map_request>

    Currently MapViewer does not normalize rasters cell values and that is probably why they are not rendered properly by mapviewer. We will implement this enhancement in a future version.

  • ImageIO image renders slow in scroll pane

    Hello all, I need some help understanding the behavior of BufferedImage(s)
    retrieved from ImageIO.read(). The problem I am having is weird .. I load
    a PNG image via ImageIO.read(), I use it to construct an ImageIcon which
    is later used in a JLabel/JScrollPane for rendering. When I attempt
    to scroll the image in the scroll pane, it is very chunky and slow.
    If I load the same image with ImageIcon(byte[]), there is no problem. The
    image on disk is 186k, when loaded from ImageIcon(), it consumes about
    10M, when loaded with ImageIO about 5M is consumed ... when I scroll,
    the memory usage increase about 9 MB, which can be collected immediatly
    to return to 5M.
    Is ImageIO doing some fancy optimization to preserve memory, if so ... how
    can I alter the settings or turn it off completly. I tried setting
    ImageIO.setUseCache(false); that did nothing as far as I can tell.
    The code to load the image is as follows, I am just using the default right now.
          // perform base64 decoding from buffer
          ByteArrayInputStream bos = new ByteArrayInputStream(decoded);
          try
             image = ImageIO.read(bos);
          catch (IOException ioe)
          }Any help would be greatly appreciated!!!
    Cheers,
    Jody

    I'm not sure if this is exactly what you are looking for but, here's code that works well for me:
    private class MyJLabel extends JLabel {
        public void paintComponent(Graphics g) {
          super.paintComponent(g);
          Graphics2D g2d = (Graphics2D)g;
          URL imageLocation = MyJPanel.class.getResource("myImage.jpg");
          Image myImage = Toolkit.getDefaultToolkit().getImage (imageLocation);
          MediaTracker tracker = new MediaTracker (this);
          tracker.addImage(myImage, 0);
          try { tracker.waitForID(0); } catch (InterruptedException exception) { System.out.println("Image myImage.jpg wasn't loaded!"); }
          g2d.drawImage(myImage, 0, 0, getWidth(), getHeight, this);
    }Once I reload images using the above method, image repainting is very quick. Extend the JLabel (MyJLabel) to overwrite the paint method as above. Should work fast when you do so. You can move the image retrieving code out of the paint method and into the 'MyJLabel' constructor.
    How are you painting the icon and where are you retrieving the image? Can you post more code?
    Regards,
    Devyn

  • Image rendered in HTML region on same page

    I am using the Oracle OBE tutorial below to insert and manage a photo associate with an employee record. Howerver, clinking on the download link renders the image in a separte browser window. Is there any way to render the photo from the report and/or form in an HTML region on the same page? The report and form appear on the same page as well. Specific code or reference to such would be greatly appreciated.

    Andy, I do appreciate you responding so quickly. The scenario I am trying to accomplish is the following: I have a table as follows:
    Name Null? Type
    SIA_ID NOT NULL NUMBER(20)
    LOGIN_ID VARCHAR2(20)
    LAST_NAME VARCHAR2(60)
    FIRST_NAME VARCHAR2(60)
    EMAIL VARCHAR2(40)
    MENTOR VARCHAR2(1)
    PHOTO BLOB
    FILENAME VARCHAR2(255)
    MIMETYPE VARCHAR2(255)
    LAST_UPDATE_DATE DATE
    I have a Form with report that allows me to upload photos in the form and show the PHOTO column as a DOWNLOAD link in the report. I also have the ID column as a link to the form so I can edit details of that record. Is there any way with this scenario to simply allow the PHOTO (blob) to be shown in a small HTML region on the same page as this report and form? I'm thinking that I might be able to use an IMG tag in the HTML region but I'm not sure how to format it. So I guess I'd like to see the details for the record from the report in the form other than the photo which would show up in a separate region on the same page.
    Thanks again.

  • Image rendering in flash

    We are building a flash based product where we need to create icons for various modules. we are having challenges in look and feel of the icons- what looks really good on Adobe Illustrator/ Photoshop looks jagged on flashPlayer. A challenge we have is that the overall screen aspect ratio, and hence aspect for the icons which are relatively-sized, can change.
    We were told in discussions with some adobe folks that
    (a) we need to build icons which are square,
    (b)in multiples of 32 pixels.
    (c) use a png format
    As per them, this way the pixelation is reduced and diagonal lines won't appear jagged- we still have an issue on rendering in flash player
    Any ideas/ guidance on how to approach this?

    You need to activate smoothing (bilinear filtering) which in Flash Professional is done via a checkbox.
    In Flex:
    If you target Flash Player 9, use the Smooth Image component:
    http://cookbooks.adobe.com/post_Smooth_Image-4001.html
    If you target Flash Player 10, the Image control has a new property smooth. Just set it to true.

  • TIFF Images Rendering

    I imported a TIFF image into an FCE project. The image has text in it (as in drawings of texts). Using the Motion tab, I have the image moving in a of scrolling manner. However, even when this project is rendered and exported to decent quality, the text in the image is very jittery like and not smooth at all. I don't have the scrolling really moving all that fast at all.
    I used TIFF because it is Apple native. Should there be another image type I use? When I made the TIFF image I saved it with no compression and the layers of the image project were 'merged' rather than 'flattened'.
    Anyone else experience this issue or know the solution.
    Thanks

    Why don't you use Title Crawl in FCE?
    Please give exact details of the image, its size, resolution, color space, also the contents, colors, fonts, sizes, anything else. Maybe a screen shot of possible.

  • Issues with Image rendering from Database

    Maestros,
    I have an issue here that I working but can hardly find a plausible solution and would like some help from the community. I'll do my best to explain the my issue in detail that way those of you who are savvy in this domain can jump on it right away.
    I am in the process of implementing a shopping grid where products are shown as items on the grid. Each grid contains a custom product tag that contains a product image thumbnail, the description and price. All picture images are stored in a postgres sql database as byte arrays. I retrieve and rendered them on the product grid using a servlet that calls my product service.
    The problem I am having is that when products are rendered not all the images are rendered even though they are present. One a refresh is done, some of the ones that previously did not render on renders and some that did go missing. I am using jsf and it looks like the application reaches the render response phase before the images are completely retrieved. I am also implement hibernate ehcache to see if that can help solve the problem, to no avail.
    Is my approach the right approach? I know some of you would want to ask why I save images in a database and if you really want to know, the reason is because products are loaded dynamically and one product can have as many images as the e-shop manager wants. If please have another way to solve this problem please feel free to let me know. I am sure there is a better way of retrieving those images and render them without any issues and if you have done anything like that before feel free to send me some directions.
    Thanks
    Edited by: user10444142 on Oct 7, 2010 5:55 AM

    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first. Networks that have inherent issues can be seen to work differently with different versions of the same software. You might also try moving the Apple TV away from other electrical equipment.

  • Image rendering

    I don't understand how rendering works with an image
    that is partially visible on screen. Let's say for
    example, I have a sprite that is half off screen. In
    the rendering method, when I say
    g2D.drawImage(sprite.getImage(), sprite.getX(), sprite.getY(), imObsrvr);
    What exactly happens? Is time wasted trying to draw
    the pixels that are not on the screen? Please ask me
    to specify if any other information is needed. Thanks
    in advance.
    Here are the specs that may be useful:
    - uses BuffereStrategy (3 buffers)
    - undecorated 'Frame' at fullscreen exclusive mode (640 x 480)

    don't worry about it, the image drawing is clipped.

  • Images rendered without dimensions. How to fix?

    Here is how a page with images displays in Design view...I don't mind that I can't actually see the image as it is on another server - but before just a few hours ago, they were at least rendering at the defined widths and height.
    Here is the code for the images on this page:
        <tr>
            <td valign="top" colspan="2" style="padding-top:24px;"><img src="/sites/switchpress/images/freebies.png" width="179" height="26" /></td>
        </tr>
        <tr>
            <td valign="top" width="50%"><img src="/sites/switchpress/images/cord-upper-left.png" width="269" height="47" alt="upper left cord" /></td>
            <td align="right" valign="top" width="50%"><img src="/sites/switchpress/images/cord-upper-right.png" width="269" height="48" alt="upper right cord" /></td>
        </tr>
        <tr>
            <td align="center" valign="top" width="50%"><a href="/sites/switchpress/html/freebies-fb-friends-ferrets-contest.html"><img src="/sites/switchpress/images/fb-friends-ferrets.png" width="376" height="225" border="0" /></a></td>
            <td align="center" valign="top" width="50%" ><a href="/sites/switchpress/html/freebies-isobel-journal-contest.html"><img src="/sites/switchpress/images/win-isobel-journal.png" width="331" height="213" border="0" /></a></td>
        </tr>
        <tr>
            <td align="center" valign="top" colspan="2"><img src="/sites/switchpress/images/SP_WireBackground_Bottom_1000.jpg" width="1000" height="35" /></td>
        </tr>
    I've shut it down and re-launched it but that does not seem to help.
    Yes, on the web it renders just fine, but this just doesn't seem right to me.
    Any help is most appreciated!

    DW works best with local images.  If you must use remote images in layouts, you'll need to ignore what you see in DW's Design View.  Use Preview in Browsers to test your work.
    Nancy O.

  • TreeNode Image rendering in IE

    hi,
    I would just like to ask if any of you had a problem with using TreeNode's setImageURL method in IE.
    With Firefox, it was rendered well. But with IE, it seems that it could not find the image.
    thanks.

    By the way...
    I would just like to add that I'm trying to add .ico files... which can be rendered using firefox... but not with IE...
    I just don't know if it's an IE problem.
    thanks.

  • Still images rendering black

    I have been trying to import a still image with ken burns effect. It is coming into the program and then rendering and going black with no photo. I have tried Jpeg, Tiff what can I do????

    *Not knowing the origin to Your problem - General approach when in trouble is as follows.*
    • Free space on internal (start-up) hard disk if it is less than 10Gb should rather have 25Gb
    • Delete iMovie pref file - or rather start a new user/account - log into this and re-try
    iMovie pref file resides.
    Mac Hard Disk (start-up HD)/Users/"Your account"/Library/Preferences
    and is named. *com.apple.iMovie.plist *
    While iMovie is NOT RUNNING - move this file out to desk-top.
    Now restart iMovie.
    • Hard disk is untidy. Repair Permissions, Repair Hard disk (Apple Disc Util tool)
    • Garageband-fix. Start it, Play a note and Close it. Re-try (Corrects an audio problem that hinders iMovie)
    • Screen must be set to Million-colors
    • Third party plug-ins that doesn't work OK (not relevant for iMovie’08 or 09)
    iMovie updated ?
    QuickTime updated ?
    Mac OS version ?
    • Program miss-match. iMovie 5.0.2, up to Mac OS X.4.11 AND QuickTime 7.4.1 - is OK
    • Program miss-match. iMovie 6.0.3 or 6.0.4, Mac OS X.4.11 AND QuickTime 7.4.1 - is OK (might work under Leopard)
    • Program miss-match. iMovie’08 v. 7.0.1, Mac OS X.4.11 AND QuickTime 7.4.1 - is OK (might work under Leopard)
    From LKN 1935. (in this case = iMovie HD (5), I tried it all, but nothing worked.
    Your answer (above) has been helpfull insofar as all the different trials led to the conclusion that
    there was something wrong with my iMovie software. I therefore threw everything away and reinstalled
    iMovie from the HD. After that the exportation of DV videos (there has not been any problem with HDV videos)
    to my Sony camcorders worked properly as it did before.
    Lennart Thelander
    I run "Cache Out X", clear out all caches and restarts the Mac.
    Yours Bengt W

Maybe you are looking for