Issue in loading images from Apache webserver in JSF image tags

I am looking for a way to sever up images in my JSF App.
I wish to allow members to upload jpg files (I worked this out) and display them later.
I would like to store the uploaded jpgs in a dir outside of the war file...example c:\imagesUploaded
Any help out there ???
Thanks
Phil

Here is my problem.
The first example I use the h:graphicImage to display a jpg from a url. Works Fine.
<h:column>
<f:facet name="header">
<h:outputText value="" />
</f:facet>
<h:graphicImage url="http://www.me.com/test.JPG" height="75" width="75" />
</h:column>
Second example I use a gif in the images folder in a war file.
<h:column>
<f:facet name="header">
<t:commandSortHeader columnName="distance" arrow="false" immediate="false">
<f:facet name="ascending">
<t:graphicImage value="images/ascending-arrow.gif" rendered="true" border="0"/>
</f:facet>
<f:facet name="descending">
<t:graphicImage value="images/descending-arrow.gif" rendered="true" border="0"/>
</f:facet>
<h:outputText styleClass="dataTableCss" value="miles" />
</t:commandSortHeader>
</f:facet>
</h:column>
Third example. I would like to display images in a t:datatable.
These images are located outside of the war file. Lets say c:\images.
The location is stored in Oracle Table. Then location loaded in a bean.
<h:column>
<f:facet name="header">
<h:outputText value="" />
</f:facet>
-- this does not work since you cant call out of war file....--
<h:graphicImage value="c:\images\test.gif" height="75" width="75" />
-- this is what I want to work with a bean holding location....--
<h:graphicImage value="#{searchBean.gifLocation}" height="75" width="75" />
</h:column>
I have stored the name and address in an Oracle Table (test.gif = searchBean.gifLocation ).
The question is how do I get the jpg or gif to display?
Phil

Similar Messages

  • Issue in loading images from Apache webserver in JSF image tags on WLS 10

    I have configured the apache webserver2.0 for passing on the request to weblogic 10.0. I have images in apache webserver. In my application on weblogic i am using JSF f. In JSF for <h:graphics> tag i am not able to load images from apache webserver. issue we found out that it prepend a context url on it.
              pls provide if u have any solution for it.
              Edited by neerajr at 11/16/2007 3:33 PM

    Hi, Neeraj,
              Are you actually telling <h:graphicImage>? As per html_basic.tld, the "uri" attribute is context-relative.
              Using "value" attribute instead of "url" attribute may be helpful. Something like
              <h:graphicImage id="fooImage" value="http://www.foosite.com/image/foo.jpg"/>
              This should work on WLS10.0 if you are using the JSF library bundled in it.
              Thanks,
              -Fred.

  • Special character issue while loading data from SAP HR through VDS

    Hello,
    We have a special character issue, while loading data from SAP HR to IdM, using a VDS and following the standard documentation: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e09fa547-f7c9-2b10-3d9e-da93fd15dca1?quicklink=index&overridelayout=true
    French accent like (é,à,è,ù), are correctly loaded but Turkish special ones (like : Ş, İ, ł ) are transformed into u201C#u201D in Idm.
    The question is : does someone know any special setting to do in the VDS or in IdM for special characters to solve this issue??
    Our SAP HR version is ECC6.0 (ABA/BASIS7.0 SP21, SAP_HR6.0 SP54) and we are using a VDS 7.1 SP5 and SAP NW IdM 7.1 SP5 Patch1 on oracle 10.2.
    Thanks

    We are importing directly to the HR staging area, using the transactions/programs "HRLDAP_MAP", "LDAP" and "/RPLDAP_EXTRACT", then we have a job which extract data from the staging area to a CSV file.
    So before the import, the character appears correctly in SAP HR, but by the time it comes through the VDS to the IDM's temporary table, it becomes "#".
    Yes, our data is coming from a Unicode system.
    So, could it be a java parameter to change / add in the VDS??
    Regards.

  • Issues with Loading Images from a Jar File

    This code snippet basically loops through a jar of gifs and loads them into a hashmap to be used later. The images all load into the HashMap just fine, I tested and made sure their widths and heights were changing as well as the buffer size from gif to gif. The problem comes in when some of the images are loaded to be painted they are incomplete it looks as though part of the image came through but not all of it, while other images look just fine. The old way in which we loaded the graphics didn't involve getting them from a jar file. My question is, is this a common problem with loading images from a jar from an applet? For a while I had tried to approach the problem by getting the URL of the image in a jar and passing that into the toolkit and creating the image that way, I was unsuccessful in getting that to work.
    //app is the Japplet
    MediaTracker tracker = new MediaTracker(app);
    //jf represents the jar file obj, enum for looping through jar entries
    Enumeration e = jf.entries();
    Toolkit toolkit = Toolkit.getDefaultToolkit();
    //buffer for reading image stream
    byte buffer [];
    while(e.hasMoreElements())
    fileName = e.nextElement().toString();
    InputStream inputstream = jf.getInputStream(jf.getEntry(fileName));
    buffer = new byte[inputstream.available()];
    inputstream.read(buffer);
    currentIm = toolkit.createImage(buffer);
    tracker.addImage(currentIm, 0);
    tracker.waitForAll();
    images.put(fileName.substring(0, fileName.indexOf(".")), currentIm);
    } //while
    }//try
    catch(Exception e)
    e.printStackTrace();
    }

    compressed files are not the problem. It is just the problem of the read not returning all the bytes. Here is a working implementation:
    InputStream is = jar.getInputStream(entry);
    ByteArrayOutputStream os = new ByteArrayOutputStream(1024);
    try{
    byte[] buf = new byte[1024];
    int read;
    while((read = is.read(buf)) > 0) {
    os.write(buf, 0, read);
    catch(Exception e){
         e.printStackTrace();
         return null;
    image = Toolkit.getDefaultToolkit().createImage(os.toByteArray());
    This works but I think you end up opening the jar a second time and downloading it from the server again. Another way of getting the images is using the class loader:
    InputStream is = MyApplet.class.getResourceAsStream(strImageName);
    In this case, the image file needs to be at the same level than MyApplet.class but you don't get the benefit of enumerating of the images available in the jar.

  • Issue to load data from database to XML file. error: ODI-40768

    Hi,
    While I am trying to load data from database to XML following error is appearing.
    ODI-1228: Task TEST_XML_DATA (Integration) fails on the target XML connection MyLOCALXSD.
    Caused By: java.sql.SQLException: ODI-40768: Could not save the file <default>:C:\DATA_FILE\www.xml because a class java.io.IOException occurred and said: The filename, directory name, or volume label syntax is incorrect
         at com.sunopsis.jdbc.driver.xml.SnpsXmlFile.writeToFile(SnpsXmlFile.java:751)
         at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.internalExecute(SnpsXmlConnection.java:769)
         at com.sunopsis.jdbc.driver.xml.SnpsXmlPreparedStatement.execute(SnpsXmlPreparedStatement.java:46)
         at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:166)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
         at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:540)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
         at java.lang.Thread.run(Thread.java:662)
    jdbc url: jdbc:snps:xml?d=C:\test_xsd.xsd&s=TESTSQL&re=employeesX&ro=true
    physical schema: TESTSQL
    Knowledge modules are:
    LKM: LKM SQL to SQL
    IKM: IKM XML Control Append
    CKM: CKM SQL
    Parameters set are:
    CREATE_XML_FILE: true
    XML_PATH:<default>:C:\DATA_FILE\www.xml
    I have tried to change the directory path but error is still there.
    Could some one please help me to resolve the issue?
    Regards,
    user1672911

    Hi,
    The trouble in "<default>:"  - if you set XML_PATH as C:\DATA_FILE\www.xml instead  <default>:C:\DATA_FILE\www.xml- it will work correctly.
    Greetings,
    Eugene

  • Issue while loading data from DSO to Cube

    Gurus,
    I'm facing a typical problem while loading Cube from a DSO. The load is based upon certain conditions.
    Though the data in DSO satisfies those condition, but the Cube is still not being loaded.
    All the loads are managed through Process Chains.
    Would there be any reason in specific/particular for this type of problem?
    Any pointers would be of greatest help !
    Regards,
    Yaseen & Soujanya

    Yaseen & Soujanya,
    It is very hard to guess the problem with the amount of information you have provided.
    - What do you mean by cube is not being loaded? No records are extracted from DSO? Is the load completing with 0 records?
    - How is data loaded from DSO to InfoCube? Full? Are you first loading to PSA or not?
    - Is there data already in the InfoCube?
    - Is there change log data for DSO or did someone delete all the PSA data?
    Sincere there are so many reasons for the behavior you are witnessing, your best option is to approach your resident expert.
    Good luck.
    Sudhi Karkada
    <a href="http://main.nationalmssociety.org/site/TR/Bike/TXHBikeEvents?px=5888378&pg=personal&fr_id=10222">Biking for MS Relief</a>

  • Issue in loading data from data mart

    Actual load is from APO to BW is happening, but load gets failed when it is loaded from base cube to target cube (data mart), this flow is in 3.5.
    Attached document contains the system msg.

    Your load is still in process.
    Where load failure mesasge?
    Try to activate source 8DSO/Cube and later actiavte update rules thru prorgams.
    Can you check your job details from SM37.
    From info pack monitor, copy request id.
    Go SM37,Job name - <enter copied request id>.
    Use job status - Active/cancel/finished.
    Use proper data ranges.
    User - *

  • Semantic Partitioning Delta issue while load data from DSO to Cube -BW 7.3

    Hi All,
    We have created the semantic partion with the help of BADI to perform Partitions. Everthing looks good,
    first time i have loaded the data it is full update.
    Second time i init the data load. I pulled the delta  from DSO to Cube . DSO is standard where as Cube is partition with the help of semantic partition. What i can see is the records which are updated in Latest delta are shown into the report rest all are ignored by the system.
    I tried compression but still it did not worked.
    Can some has face this kind
    Thanks

    Yaseen & Soujanya,
    It is very hard to guess the problem with the amount of information you have provided.
    - What do you mean by cube is not being loaded? No records are extracted from DSO? Is the load completing with 0 records?
    - How is data loaded from DSO to InfoCube? Full? Are you first loading to PSA or not?
    - Is there data already in the InfoCube?
    - Is there change log data for DSO or did someone delete all the PSA data?
    Sincere there are so many reasons for the behavior you are witnessing, your best option is to approach your resident expert.
    Good luck.
    Sudhi Karkada
    <a href="http://main.nationalmssociety.org/site/TR/Bike/TXHBikeEvents?px=5888378&pg=personal&fr_id=10222">Biking for MS Relief</a>

  • After upgrade to BI NW4.0S issue in loading cube from ODS

    Hi,
      I have an SAP delivered ODS(0CRM_OPPT_H) which I was loading for some time. The cube 0CRM_C04 was loaded from the ODS a couple of times. I have now deleted all the data from the cube and want to load the data from the cube to ODS, In between our BW was upgrade frpm 3.5 to BI NW0S..
      I have done all prerequisite , replicated the 80 datsource , deleted and re activated the update rule and transfer rule again.. and then tried to load the Cube from ODS.. however everytime I am getting the following error
    DataSource 80CRM_OPPI does not have the same status as the source system in the Business Information Warehouse.
    The time stamp in the source system is 12/23/2005 10:09:36.
    The time stamp in the BW system is 11/09/2005 13:02:29.
    Is it due to the upgrade?? I have done everything so that this dosen't happen, still could not resolve..
    Thanks

    Are you sure you've replicated the DataSource 80CRM_OPPI? Try replicating it individually again. If that doesn't help, have you tried reactivating the ODS Object itself?
    Regards, Klaus

  • Apache webserver can't find tomcat - mod_jk problem?

    Hi
    I have recently upgraded HP-UX apache software
    FROM
    Apache webserver: 2.0.55
    Apache tomcat : 5.5.9
    TO
    Apache webserver: 2.0.55
    Apache tomcat : 5.5.9
    I have 2 tomcats running, one JVM for a daytime service and another for a nighttime service.
    So while 1 tomcat is down, the other is up, apache always running.
    However, since I have upgraded, I see the following error messages in jk.log:
    [Mon Nov 20 07:00:41 2006] [error] ajp_connection_tcp_get_message::jk_ajp_common
    .c (949): ERROR: can't receive the response message from tomcat, network problems or tomcat is down (127.0.0.1:8059), err=-232
    The tomcat in question is up - and the messages returned are 500 responses - server configuration issue.
    Get several a day.
    Basically using mod_jk to bind the tomcat installations to apache webserver.
    What is new though in mod_jk 1.2.10 is that a shared memory file is specified. I am wondering what happens to this memory that is used to load balance the workers when tomcats are bounced.
    Issues go away after a bounce of apache - but after each tomcat has been stopped once - messages start to fail intermittently after that.
    Done some googling but do not see any solutions - so here's hoping!
    Thanks.

    Noticed my deliberate mistake!
    From
    Apache 2.0.32
    Tomcat 3
    Still no joy with with this in terms of finding a solution to why the newer version of apache cannot find tomcat after it has been bounced.
    mod_jk.so version 1.2.9 introduced the shared memory for the workers, which as far as I can is the main config change in the 2 versions of apache that came from HP.
    So rolled back to the old version of apache with the new version of tomcat - and everything works fine!

  • Problem in loading images in JSP

    Hi
    My JSP page is loading few gif images.
    I am running tomcat 4 connected to apache 1.3.22 using MOD_WEBAPP connector.
    My JSP file loads perfectly alright when I load it directly from tomcat server that is port 8080.
    But when I load it from apache that is port 80, it is taking very long time and not loading images.
    Does anybody has (or had ) the similar problem?
    Please help me
    Thanks
    Raji

    I'm having the same problem displaying images when I call a jspt hrough Apache 2.0.39 from Tomcat 4.1.3.
    I am using mod_jk as my connector through Apache.
    Did you come up with a solution to displaying images when calling your JSP app through Apache?
    Thanks
    Lenny Sorey

  • Adobe Air HTML & JS Developing - Slow on massive Image-Tags

    Hello,
    I want to share a problem i noticed while developing an application with adobe air, based on the HTML & JS Stack, which uses multiple image-tags at the same time. I already mailed a bug but unfortunately did not get a bug number responded to refer to hit here. This post is started because i wanted to share a simple example which exhibits the problem.
    The Bug Report i mailed:
    ******BUG******
    Concise problem statement: Performance Issues with massive Image-Tags (scaled)
    Steps to reproduce bug:
    1. Create a simple Air-Application. No need for any Air-specific library we just want the Air-Webkit to render a HTML-Page
    2.  Load ~130 Pictures with a dimension of approximately 1024 x 768 pixels.  Render each of them as a scaled Image-Tag with the dimension 100x60  pixels.
    3. Load the Page in the Air/Safari/Firefox/IE Environment (Versions: Air 2.5, Safari 5.0.2 (Win XP), FF 3.6.10, IE7)
    4. Try scrolling down/left/right/up and resizing the respective stage
    Results: The Air Environment performs worst among those 4. It reacts unacceptably slow while trying to resize and to scroll.
    Expected results: similar performance to Webkit-Engine in Safari.
    I know of one other discussion which seems to be related to a similar thing (http://forums.adobe.com/message/44913).
    The Page i used to compare the Adobe-Air rendering & scroll behaviour against the behaviour of Safari, FF and IE is posted beneath (pretty long due to the excerpt of 131 pictures taken of flicker web service).
    with best regards
    Robert
    <html>
        <head>
            <title>Mass Img Tags</title>
            <script language="JavaScript">
                var data = [{
                    "Title": "landscape216 jpg",
                    "Summary": "",
                    "Url": "http://xemanhdep.com/gallery/landscape2/landscape216.jpg",
                    "ClickUrl": "http://xemanhdep.com/gallery/landscape2/landscape216.jpg",
                    "RefererUrl": "http://gallery.xemanhdep.com/2008/10/beautiful-landscape-photos-2",
                    "FileSize": 114688,
                    "FileFormat": "jpeg",
                    "Height": "525",
                    "Width": "700",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/f5f58ee2c6a04bfa",
                        "Height": "112",
                        "Width": "150"
                    "Title": "Landscape Bora Bora Lagoon with Catamaran French Polynesia jpg",
                    "Summary": "11 12 13 14 15 16 17 18",
                    "Url": "http://www.bergoiata.org/fe/landscapes2/Landscape%20-%20Bora%20Bora%20Lagoon%20with%20Catamaran%20-%20French%20Polynesia.jpg",
                    "ClickUrl": "http://www.bergoiata.org/fe/landscapes2/Landscape%20-%20Bora%20Bora%20Lagoon%20with%20Catamaran%20-%20French%20Polynesia.jpg",
                    "RefererUrl": "http://www.nitilurus.blogspot.com/",
                    "FileSize": 102604,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/8673e2bc14b343d0",
                        "Height": "120",
                        "Width": "160"
                    "Title": "Landscape Mount Tombstone Upper North jpg",
                    "Summary": "Landscape Flowers &gt; 02 Sep 2005 22 56 156k Fractal Roiling Vo &gt; 02 Sep 2005 22 56 157k Landscape Mount To &gt; 02 Sep 2005 22 56 172k Landscape Southern &gt; 02 Sep 2005 22 56 200k",
                    "Url": "http://www.bergoiata.org/fe/divers47/Landscape%20-%20Mount%20Tombstone,%20Upper%20North.jpg",
                    "ClickUrl": "http://www.bergoiata.org/fe/divers47/Landscape%20-%20Mount%20Tombstone,%20Upper%20North.jpg",
                    "RefererUrl": "http://www.bergoiata.org/fe/divers47?S=A",
                    "FileSize": 176537,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/cab907cfa143c5a2",
                        "Height": "120",
                        "Width": "160"
                    "Title": "Landscape",
                    "Summary": "",
                    "Url": "http://media-content.flixya.com.s3.amazonaws.com/files/bxj1986530672.jpg?AWSAccessKeyId=1TKE66PETJJHG8051M02&Expires=2114092205&Signature=1m7fiT7SAIe8HgLiPtae0%2FL62ho%3D",
                    "ClickUrl": "http://media-content.flixya.com.s3.amazonaws.com/files/bxj1986530672.jpg?AWSAccessKeyId=1TKE66PETJJHG8051M02&Expires=2114092205&Signature=1m7fiT7SAIe8HgLiPtae0%2FL62ho%3D",
                    "RefererUrl": "http://www.flixya.com/photo/530672/Landscape",
                    "FileSize": 253644,
                    "FileFormat": "jpeg",
                    "Height": "375",
                    "Width": "500",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/6ca09130080fe348",
                        "Height": "108",
                        "Width": "145"
                    "Title": "purple landscape jpg",
                    "Summary": "Purple Landscape Róbert Štefanka 10 srpen 2006",
                    "Url": "http://www.lightharmony.com/admin/ext/purple-landscape.jpg",
                    "ClickUrl": "http://www.lightharmony.com/admin/ext/purple-landscape.jpg",
                    "RefererUrl": "http://www.lightharmony.com/fotografie/160/cz/author/8/0/purple-landscape",
                    "FileSize": 323686,
                    "FileFormat": "jpeg",
                    "Height": "463",
                    "Width": "700",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/a4609865c6a4cd22",
                        "Height": "99",
                        "Width": "150"
                    "Title": "Landscape Matterhorn Lake jpg",
                    "Summary": "Nature Rainy Lands &gt; 02 Sep 2005 22 50 58k Landscape Mountain &gt; 02 Sep 2005 22 49 89k Landscape Matterho &gt; 02 Sep 2005 22 49 198k Landscape Lighthou &gt; 02 Sep 2005 22 49 177k",
                    "Url": "http://www.bergoiata.org/fe/divers44/Landscape%20-%20Matterhorn%20Lake.jpg",
                    "ClickUrl": "http://www.bergoiata.org/fe/divers44/Landscape%20-%20Matterhorn%20Lake.jpg",
                    "RefererUrl": "http://www.bergoiata.org/fe/divers44?N=D",
                    "FileSize": 202547,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/0203edf764b1c67c",
                        "Height": "120",
                        "Width": "160"
                    "Title": "landscape",
                    "Summary": "LandScape LandScape 2",
                    "Url": "http://www.smashingdownloads.com/wp-content/uploads/2009/06/landscape.jpg",
                    "ClickUrl": "http://www.smashingdownloads.com/wp-content/uploads/2009/06/landscape.jpg",
                    "RefererUrl": "http://www.smashingdownloads.com/2009/06/04/27-brilliant-examples-of-landscape-photography",
                    "FileSize": 99635,
                    "FileFormat": "jpeg",
                    "Height": "399",
                    "Width": "600",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/fe217612dffd3c10",
                        "Height": "96",
                        "Width": "145"
                    "Title": "landscape3 jpg",
                    "Summary": "its own If you re a fan of the handiwork of Mother Nature and you d like to get a glimpse of the diversity of the world check out this photostream featuring gorgeous landscape photography",
                    "Url": "http://www.dirjournal.com/info/wp-content/uploads/2009/12/landscape3.jpg",
                    "ClickUrl": "http://www.dirjournal.com/info/wp-content/uploads/2009/12/landscape3.jpg",
                    "RefererUrl": "http://www.dirjournal.com/info/the-magnificent-beauty-of-natures-landscapes",
                    "FileSize": 169164,
                    "FileFormat": "jpeg",
                    "Height": "483",
                    "Width": "700",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/0b807ce0d282bfc2",
                        "Height": "103",
                        "Width": "150"
                    "Title": "sm landscape syracuse label jpg",
                    "Summary": "sports video game Stevensgraph of Columbus landing artwork including nice small o b horses and children sheep painting V Perrin small landscape etc Gone with the wind Lamp very nice quality 4 pc leather parlor set barely used 2 canes one w sterling top ca 1879 French Gras Bayonet several nice mirrors great",
                    "Url": "http://www.coylesauction.com/images/Year2005/083005/sm%20landscape%20syracuse%20label.jpg",
                    "ClickUrl": "http://www.coylesauction.com/images/Year2005/083005/sm%20landscape%20syracuse%20label.jpg",
                    "RefererUrl": "http://www.coylesauction.com/AuctionPreview/Year2005/ap083005.htm",
                    "FileSize": 67481,
                    "FileFormat": "jpeg",
                    "Height": "486",
                    "Width": "650",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/dcccdb9e4e66c4e2",
                        "Height": "112",
                        "Width": "150"
                    "Title": "post5 landscape jpg",
                    "Summary": "a little boost to the colour All in all a 20 to 30 minute job Was it worth You decide In my opinion it won the right to have its own place in the sorted folders Landscape Before After",
                    "Url": "http://www.chromystic.com/blog/goncalofigueiredo/resource/img/post5_landscape.jpg",
                    "ClickUrl": "http://www.chromystic.com/blog/goncalofigueiredo/resource/img/post5_landscape.jpg",
                    "RefererUrl": "http://www.chromystic.com/blog/goncalofigueiredo/entry/there-is-still-a-chance",
                    "FileSize": 188108,
                    "FileFormat": "jpeg",
                    "Height": "332",
                    "Width": "500",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/dbb4f27647c5952e",
                        "Height": "96",
                        "Width": "145"
                    "Title": "Landscape thumb jpg",
                    "Summary": "In this tutorial you will learn how to create a fantasy landscape using some simple and easy techniques Create Smoke Effect on Grungy Wallpaper",
                    "Url": "http://ntt.cc/wp-content/uploads/2009/10/Landscape_thumb.jpg",
                    "ClickUrl": "http://ntt.cc/wp-content/uploads/2009/10/Landscape_thumb.jpg",
                    "RefererUrl": "http://ntt.cc/2009/10/16/30-excellent-high-quality-adobe-photoshop-tutorials-new.html",
                    "FileSize": 84377,
                    "FileFormat": "jpeg",
                    "Height": "569",
                    "Width": "484",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/7a3616914ed77cf4",
                        "Height": "145",
                        "Width": "123"
                    "Title": "landscape 1024 30 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1024-30.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1024-30.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-2.html?id=30",
                    "FileSize": 271155,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/401d2cdfaab693a2",
                        "Height": "120",
                        "Width": "160"
                    "Title": "landscape 800 18 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-800-18.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-800-18.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-1.html?id=18",
                    "FileSize": 69120,
                    "FileFormat": "jpeg",
                    "Height": "600",
                    "Width": "800",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/cb5db7a20c94d0c8",
                        "Height": "116",
                        "Width": "155"
                    "Title": "landscape 1200 18 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1200-18.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1200-18.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-3.html?id=18",
                    "FileSize": 145920,
                    "FileFormat": "jpeg",
                    "Height": "900",
                    "Width": "1200",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/6e966655546f4d28",
                        "Height": "123",
                        "Width": "165"
                    "Title": "landscape 1200 13 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1200-13.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1200-13.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-3.html?id=13",
                    "FileSize": 280268,
                    "FileFormat": "jpeg",
                    "Height": "900",
                    "Width": "1200",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/2c7eb863b672ec92",
                        "Height": "123",
                        "Width": "165"
                    "Title": "landscape 800 35 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-800-35.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-800-35.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-1.html?id=35",
                    "FileSize": 101478,
                    "FileFormat": "jpeg",
                    "Height": "600",
                    "Width": "800",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/8efaed051155f5c4",
                        "Height": "116",
                        "Width": "155"
                    "Title": "landscape 1024 23 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1024-23.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1024-23.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-2.html?id=23",
                    "FileSize": 72704,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/8e632c62ce6398a8",
                        "Height": "120",
                        "Width": "160"
                    "Title": "landscape 800 30 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-800-30.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-800-30.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-1.html?id=30",
                    "FileSize": 169164,
                    "FileFormat": "jpeg",
                    "Height": "600",
                    "Width": "800",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/7868fafbafeba600",
                        "Height": "116",
                        "Width": "155"
                    "Title": "landscape 1200 28 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1200-28.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1200-28.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-3.html?id=28",
                    "FileSize": 452096,
                    "FileFormat": "jpeg",
                    "Height": "900",
                    "Width": "1200",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/c42bc3d01efd78e2",
                        "Height": "123",
                        "Width": "165"
                    "Title": "landscape 1024 35 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1024-35.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1024-35.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-2.html?id=35",
                    "FileSize": 161382,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/1852e4fc7a9aefa6",
                        "Height": "120",
                        "Width": "160"
                    "Title": "landscape 1024 31 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1024-31.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1024-31.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-2.html?id=31",
                    "FileSize": 364032,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/0e613977e04c4882",
                        "Height": "120",
                        "Width": "160"
                    "Title": "landscape 1200 35 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1200-35.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1200-35.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-3.html?id=35",
                    "FileSize": 220979,
                    "FileFormat": "jpeg",
                    "Height": "900",
                    "Width": "1200",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/c5c69d3a273d0880",
                        "Height": "123",
                        "Width": "165"
                    "Title": "landscape 1200 27 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1200-27.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1200-27.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-3.html?id=27",
                    "FileSize": 384204,
                    "FileFormat": "jpeg",
                    "Height": "900",
                    "Width": "1200",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/04c55aa75582b4c2",
                        "Height": "123",
                        "Width": "165"
                    "Title": "landscape 1024 33 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1024-33.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1024-33.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-2.html?id=33",
                    "FileSize": 349491,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/81646c732fd68452",
                        "Height": "120",
                        "Width": "160"
                    "Title": "landscape 1024 26 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1024-26.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1024-26.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-2.html?id=26",
                    "FileSize": 297062,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/60c7e1a5b87dca0a",
                        "Height": "120",
                        "Width": "160"
                    "Title": "landscapeStream jpg",
                    "Summary": "pastoral painting in gold frame hollyhock painting rose painting in gold frame Madonna and child oil on canvas as is landscape with stream large European scene painting and much more",
                    "Url": "http://www.coylesauction.com/img/img2009/img033109/landscapeStream.jpg",
                    "ClickUrl": "http://www.coylesauction.com/img/img2009/img033109/landscapeStream.jpg",
                    "RefererUrl": "http://www.coylesauction.com/AucPreview/AP2009/ap033109.htm",
                    "FileSize": 49459,
                    "FileFormat": "jpeg",
                    "Height": "344",
                    "Width": "450",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/934090dff7521230",
                        "Height": "107",
                        "Width": "140"
                    "Title": "DCWP 406 038 Landscape Picture jpg",
                    "Summary": "Landscape Picture 1 I took this landscape picture from a speed boat on the Okavango Delta late one afternoon It shows one of the channels in the Okavango Delta when it is in full flow The delta is one of the",
                    "Url": "http://www.africa-nature-photography.com/images/DCWP_406_038-Landscape-Picture.jpg",
                    "ClickUrl": "http://www.africa-nature-photography.com/images/DCWP_406_038-Landscape-Picture.jpg",
                    "RefererUrl": "http://www.africa-nature-photography.com/landscape-picture.html",
                    "FileSize": 60211,
                    "FileFormat": "jpeg",
                    "Height": "322",
                    "Width": "480",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/b524a62e8458d358",
                        "Height": "93",
                        "Width": "140"
                    "Title": "DCWP 406 019 Landscape Picture jpg",
                    "Summary": "Landscape Picture 7 This landscape picture of moring mist over the Kavango River in Namibia was taken just after sunrise one morning Our tent was less that ten metres from where I stood We were camping at",
                    "Url": "http://www.africa-nature-photography.com/images/DCWP_406_019-Landscape-Picture.jpg",
                    "ClickUrl": "http://www.africa-nature-photography.com/images/DCWP_406_019-Landscape-Picture.jpg",
                    "RefererUrl": "http://www.africa-nature-photography.com/landscape-picture-7.html",
                    "FileSize": 83558,
                    "FileFormat": "jpeg",
                    "Height": "322",
                    "Width": "480",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/27ef2bd37acfbb80",
                        "Height": "93",
                        "Width": "140"
                    "Title": "DCWP 506 023 Landscape Picture jpg",
                    "Summary": "Landscape Picture 5 The large Leadwood trees in this landscape picture are what caught my eye They are quite prevalent in the Moremi Game Reserve of Botswana escpecially near the North Gate campsite where",
                    "Url": "http://www.africa-nature-photography.com/images/DCWP_506_023-Landscape-Picture.jpg",
                    "ClickUrl": "http://www.africa-nature-photography.com/images/DCWP_506_023-Landscape-Picture.jpg",
                    "RefererUrl": "http://www.africa-nature-photography.com/landscape-picture-5.html",
                    "FileSize": 99532,
                    "FileFormat": "jpeg",
                    "Height": "322",
                    "Width": "480",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/17c1a79f67065d90",
                        "Height": "93",
                        "Width": "140"
                    "Title": "DCWP 506 024 Landscape Picture jpg",
                    "Summary": "Landscape Picture 6 The large Leadwood tree in this landscape picture is what caught my eye They are quite prevalent in the Moremi Game Reserve of Botswana escpecially near the North Gate campsite where this",
                    "Url": "http://www.africa-nature-photography.com/images/DCWP_506_024-Landscape-Picture.jpg",
                    "ClickUrl": "http://www.africa-nature-photography.com/images/DCWP_506_024-Landscape-Picture.jpg",
                    "RefererUrl": "http://www.africa-nature-photography.com/landscape-picture-6.html",
                    "FileSize": 93286,
                    "FileFormat": "jpeg",
                    "Height": "480",
                    "Width": "322",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/5b363b95bb9168b2",
                        "Height": "140",
                        "Width": "93"
                    "Title": "DCWP 506 005 Landscape Picture jpg",
                    "Summary": "Landscape Picture 4 I took this landscape picture depicting a large Baobab tree on Kubu Island on the Makgadikgadi Pans Botswana during June 2005 A picture utilising good light is always always better than",
                    "Url": "http://www.africa-nature-photography.com/images/DCWP_506_005-Landscape-Picture.jpg",
                    "ClickUrl": "http://www.africa-nature-photography.com/images/DCWP_506_005-Landscape-Picture.jpg",
                    "RefererUrl": "http://www.africa-nature-photography.com/landscape-picture-4.html",
                    "FileSize": 84172,
                    "FileFormat": "jpeg",
                    "Height": "322",
                    "Width": "480",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/5477f6c511630438",
                        "Height": "93",
                        "Width": "140"
                    "Title": "DCWP 410 001 Landscape Picture jpg",
                    "Summary": "Landscape Picture 2 I took this landscape picture near Grabouw on my way to the De Hoop Nature Reserve in South Africa s Western Cape I just had to stop for it Cloud formations in this part of the country can",
                    "Url": "http://www.africa-nature-photography.com/images/DCWP_410_001-Landscape-Picture.jpg",
                    "ClickUrl": "http://www.africa-nature-photography.com/images/DCWP_410_001-Landscape-Picture.jpg",
                    "RefererUrl": "http://www.africa-nature-photography.com/landscape-picture-2.html",
                    "FileSize": 77414,
                    "FileFormat": "jpeg",
                    "Height": "322",
                    "Width": "480",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/4f07caae67d26392",
                        "Height": "93",
                        "Width": "140"
                    "Title": "about landscape yard jpg",
                    "Summary": "philosophy is that the final scaled landscape plan you receive should convey your landscape ideas in a road map that will be used to transform your house and yard into your home After our design meets your expectations we will submit our bid prices to implement the design and work on packaging and phasing options We use the same bidding process whether",
                    "Url": "http://www.envconst.com/Images/about_landscape_yard.jpg",
                    "ClickUrl": "http://www.envconst.com/Images/about_landscape_yard.jpg",
                    "RefererUrl": "http://www.envconst.com/about/landscape",
                    "FileSize": 39116,
                    "FileFormat": "jpeg",
                    "Height": "315",
                    "Width": "485",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/07706b565b3f956a",
                        "Height": "94",
                        "Width": "145"
                    "Title": "landscape02 JPG",
                    "Summary": "and Monet landscapes but with an Impressionistic approach I still want to re do the water reflections from the buildings and light but for now this will have to do Landscape Landscape close up Another example of the Virtual 3 D work I have been doing is",
                    "Url": "http://www.dustinhetrick.com/art/landscape02.JPG",
                    "ClickUrl": "http://www.dustinhetrick.com/art/landscape02.JPG",
                    "RefererUrl": "http://www.dustinhetrick.com/art.htm",
                    "FileSize": 475136,
                    "FileFormat": "jpeg",
                    "Height": "960",
                    "Width": "1280",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/99ff10027365797a",
                        "Height": "123",
                        "Width": "165"
                    "Title": "landscape 800 2 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-800-2.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-800-2.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-1.html?id=2",
                    "FileSize": 42291,
                    "FileFormat": "jpeg",
                    "Height": "600",
                    "Width": "800",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/0609a5f1103b8ee4",
                        "Height": "116",
                        "Width": "155"
                    "Title": "landscape 800 1 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-800-1.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-800-1.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-1.html?id=1",
                    "FileSize": 129843,
                    "FileFormat": "jpeg",
                    "Height": "600",
                    "Width": "800",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/755ad7377c2f381c",
                        "Height": "116",
                        "Width": "155"
                    "Title": "landscape 1024 9 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1024-9.jpg",
      

    Hi,
    Thank you for reporting this. The internal bug number for the issue is #2740755. The issue is currently under review and will be investigated by one of AIR team members.
    Regards,
    Catalin

  • How to writing an image from my applet to my apache webserver

    hi everyone,
    i have a big problem, writing an image from my applet to my apache
    webserver. i tried three way's of writing that file. every way was
    described in forums to solve this problem, but non of them worked and
    i don't know why. i'll give you the code of my writing-methods and
    describe, what happen when i test them, in order someone of you can
    give me an usefull tip, where the problem is.
    as inputparameter i give my method a new URL referring to
    http://localhost/test.jpg (this is the same directory, where my applet
    is loaded from, so i should have reading and writing permission,
    havn't i? while i'm developing, my applet runs on the same pc as my
    webserver, just in case you're wondering about localhost) and a
    selfmade BufferedImage (i already testet if it is not null and shows
    the correct things ... all ok).
    1. try:
    private void writeImageToServer(URL fileURL,BufferedImage img){
    try {
    URLConnection urlConnection = fileURL.openConnection();
    urlConnection.setDoOutput(true);
    OutputStream urlout = urlConnection.getOutputStream();
    BufferedOutputStream out = new BufferedOutputStream(urlout);
    ImageIO.write(img,"jpg",out);
    out.close(); // i also tried without this line -> same result
    // additionally a question: do i need
    out.close()?
    catch( IOException e ){
    e.printStackTrace();
    result:
    test.jpg doesn't appear in the webroot. but some very strange messages
    in the error.log of my apacheserver:
    [Tue Jun 08 11:40:22 2004] [error] [client 127.0.0.1] File does not
    exist: c:/programme/apache
    group/apache/htdocs/meta-inf/services/javax.imageio.spi.ImageOutputStreamSpi
    [Tue Jun 08 11:40:22 2004] [error] [client 127.0.0.1] File does not
    exist: c:/programme/apache
    group/apache/htdocs/meta-inf/services/javax.imageio.spi.ImageReaderSpi
    [Tue Jun 08 11:40:22 2004] [error] [client 127.0.0.1] File does not
    exist: c:/programme/apache
    group/apache/htdocs/meta-inf/services/javax.imageio.spi.ImageInputStreamSpi
    [Tue Jun 08 11:40:22 2004] [error] [client 127.0.0.1] File does not
    exist: c:/programme/apache
    group/apache/htdocs/meta-inf/services/javax.imageio.spi.ImageWriterSpi
    [Tue Jun 08 11:40:22 2004] [error] [client 127.0.0.1] File does not
    exist: c:/programme/apache
    group/apache/htdocs/meta-inf/services/javax.imageio.spi.ImageTranscoderSpi
    i cannot explain this lines to myself, because my apache should have
    nothing to do with java. all my javacode is executed on the client
    side in the browser. do this messages mean i have to add the ImageIO
    package from the sdk to my jar-applet. the jre, used by my iexplorer,
    doesn't contain this files in the meta-inf/services directory of
    rt.jar, but that's version 1.4.2_03, the same as my sdk, and the
    rt.jar contains the corresponding classfiles at javax.imageio.spi. so
    i'm realy confused by this messages.
    2. try:
    private void writeImageToServer(URL fileURL,BufferedImage img){
    try {
    URLConnection urlConnection = fileURL.openConnection();
    urlConnection.setDoOutput(true);
    OutputStream urlout = urlConnection.getOutputStream();
    BufferedOutputStream out = new BufferedOutputStream(urlout);
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    encoder.encode(img);
    out.close(); // same comments as above
    catch( IOException e ){
    e.printStackTrace();
    result:
    nothing. no error-messages in the error.log, no exceptions in the
    java-console and no test.jpg in the webroot. i searched my whole
    harddrives for it: nothing. isn't this the way, the JPEGImageEncoder
    works?
    3. try:
    private void writeImageToServer(URL fileURL,BufferedImage img){
    try {
    File file = new File(fileURL.toString);
    file.createNewFile();
    BufferedOutputStream out = new BufferedOutputStream(new
    FileOutputStream(file));
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    encoder.encode(img);
    out.close(); // same comments as above
    catch( Exception e ){
    e.printStackTrace();
    result:
    the SecurityManager denies this action with "access denied" while
    calling createNewFile(). well, this way was dedicated to run from an
    application, not from an applet. i'd have to sign my applet to get the
    rights to do this, or i can edit java.policy on my client, what i
    don't want, because i cannot do this on every client, the applet will
    run, when i'm finished with it. this brings me to the question: does
    anybody know's how to sign my applet and give it full access to the
    harddrive and the webserver without paying 400$ to VeriSign for a
    commercial CA? i want to do this by myself, without paying anything
    and without giving a lot of information to another company.
    i would realy appreciate, if someone could give me a hint where i am
    wrong or how to do this correct.
    thank you very much
    [email protected]

    You hold several misconceptions. The first is that an applet can write to a server without help from the server. That will never work on a real server (though it might work in testing, if the server is on the same PC as the applet). Applets cannot get a File object that points to any place on the server.
    If you write a servlet designed for accepting image uploads, the applet can communicate back to that servlet and feed it the bytes of the image. There are other technologies that can replace the servlet, of course (PHP, ASP..) but I mention that because you say you are running Apache - and that is very Java oriented.
    For more help on servlets, try the [Web Tier APIs - Java Servlet|http://forums.sun.com/forum.jspa?forumID=33] forum.

  • How to load images from css file in JavaFX 8

    I have this css file which loads images in JavaFX 8 application:
    #pill-left {
        -fx-padding: 5;
         -fx-border-image-source: url("/com/dx57dc/images/left-btn.png");
        -fx-border-image-slice: 4 4 4 4 fill;
        -fx-border-image-width: 4 4 4 4;
        -fx-border-image-insets: 0;
        -fx-border-image-repeat: stretch;
         -fx-background-color: null !important;
    #pill-left:selected { -fx-border-image-source: url("/com/dx57dc/images/left-btn-selected.png"); }
    #pill-left .label {
        -fx-text-fill: #d3d3d3;
        -fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 , -1 );
    #pill-left:selected .label {
        /* -fx-text-fill: black; */
        -fx-text-fill: white;
        -fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
    #pill-center {
        -fx-padding: 5;
         -fx-border-image-source: url("/com/dx57dc/images/center-btn.png");
        -fx-border-image-slice: 4 4 4 4 fill;
        -fx-border-image-width: 4 4 4 4;
        -fx-border-image-insets: 0;
        -fx-border-image-repeat: stretch;
         -fx-background-color: null !important;
    #pill-center:selected { -fx-border-image-source: url("/com/dx57dc/images/center-btn-selected.png"); }
    #pill-center .label {
        -fx-text-fill: #d3d3d3;
         -fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 , -1 );
    #pill-center:selected .label {
        -fx-text-fill: black;
        -fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
    #pill-right {
        -fx-padding: 5;
        -fx-border-image-source: url("/com/dx57dc/images/right-btn.png");
        -fx-border-image-slice: 4 4 4 4 fill;
        -fx-border-image-width: 4 4 4 4;
        -fx-border-image-insets: 0;
         -fx-border-image-repeat: stretch;
        -fx-background-color: null !important;
    #pill-right:selected { -fx-border-image-source: url("/com/dx57dc/images/right-btn-selected.png"); }
    #pill-right .label {
         -fx-text-fill: #d3d3d3;
        -fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 , -1 );
    #pill-right:selected .label {
        -fx-text-fill: black;
        -fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
    The images are located at the Java package com.dx57dc.images
    In Java 7_25 this code works as expected but in JavaFX 8 b99 I get this error:
    ava.lang.NullPointerException
    at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1129)
    at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)
    at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
    at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:233)
    at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:199)
    at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1249)
    at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)
    at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
    at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:233)
    at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:199)
    at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1249)
    at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)
    at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
    at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:99)
    at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:210)
    at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
    at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
    at java.lang.Thread.run(Thread.java:724)
    D3D Vram Pool: 13,331,480 used (5.0%), 13,331,480 managed (5.0%), 268,435,456 total
    20 total resources being managed
    4 permanent resources (20.0%)
    1 resources locked (5.0%)
    7 resources contain interesting data (35.0%)
    0 resources disappeared (0.0%)
    D3D Vram Pool: 13,331,480 used (5.0%), 13,331,480 managed (5.0%), 268,435,456 total
    20 total resources being managed
    4 permanent resources (20.0%)
    1 resources locked (5.0%)
    7 resources contain interesting data (35.0%)
    0 resources disappeared (0.0%)
    D3D Vram Pool: 13,331,480 used (5.0%), 13,331,480 managed (5.0%), 268,435,456 total
    20 total resources being managed
    4 permanent resources (20.0%)
    1 resources locked (5.0%)
    7 resources contain interesting data (35.0%)
    0 resources disappeared (0.0%)
    What is the proper way to load images from css in Java 8?
    Ref
    How to load images from css file in JavaFX 8 - Stack Overflow

    There is nothing special to do - you execute the statement from your program just like any other SQL statement.  The only thing to be aware of are the privilege/permission issues:
    When loading from a file on a client computer:
    READ CLIENT FILE privilege is also required for the database user.
    Read privileges are required on the directory being read from.
    The allow_read_client_file database option must be enabled.
    The read_client_file secure feature must be enabled.
    Revoking these privileges is also the only way you can prevent a user from executing the statement.

  • Does iPhone Packager CS 5.5 support camera access and LOADING images from the camera roll?

    Flash CS 5 only supports SAVING to the camera roll, not loading image from it. And it has no access to the camera to take pictures and access the image within the app.
    Does Flash CS 5.5 do these things? There's no point in upgrading if it doesn't support these core feature that I need.

    Hi.
    Just got an app  rejected because the popover to select the pics from the camera roll on  the iPad always appears on to-left corner, and the arrow doesn't point  anywere, and should be pointing to the button which activated it. That  "does not comply with the Apple iOS Human Interface Guidelines, as  required...". On the iPhone there's no issue because it takes over the  whole screen. More from the apple rejection message:
    "Specifically,  we noticed your app contained popover elements that didn't  point to  the element that revealed them. To avoid user confusion, a  popover  element's arrow should point to the element that revealed it."
    So, thanks for including the CameraRoll functionality, but it will be useless in the iPad apparently
    Any workaround to make it appear at a specific place when calling myCameraRoll.browseForImage() ?
    Fernando

Maybe you are looking for

  • With iCloud activated on iOS devices, how do I manage syncing with iTunes?

    Guess it's time to take a class at the Apple Store (there's an app for that) Two Questions: Question 1 I have turned on iCloud in my iPad and iPhone5 for contacts, calendars, reminders, Safari, Passbook (iPhone only), and Find my iPhone/iPad.  I am n

  • Unusual problem with N95

    Hello guys, as title says i have an unusual problem with my Nokia n95. Friend gave me few days ago and I wanted to update software at it, i did it few HRs ago (from 21.x to 31.0.017) and now I have problem. The thing is from when i did the update the

  • Would love a bumper case that can stay on the phone

    It appears there is an overwhelming number of people who would love a bumper case that can stay on the phone when docking it in a speaker dock, a clock dock etc etc.   Is there such a beast and if so who makes it and who sells it?

  • Errors:"Could not find Web Ser"- "Failed to Lunch E1 menu on HTML Engine"

    Hi all I am trying to install JD Edwards EnterpriseOne and I am using two different machines. First machine: Installed Enterprise and Database Server Second Machine: Installed Deployment Server. Installed Oracle Application Server. Installed Server M

  • VBS Script to validate RDP Connection

    I am working on a VBS script to confirm if RDP Connection is working on remote servers. I know some server administrators check it via Telnet on default RDP port 3389. But, it is not completely reliable. I need to open an RDP Connection to a server,