Load local image file to database on web

Read_image_file works fine in client side. but it does not work on the web, can somebody find the way to save image from image file in client PC to Oracle database (or to webserver directory) when run on web.
Thanks
Frank
null

You may find the following articles useful for the JSP/Servlet part:
Uploading files: http://balusc.blogspot.com/2007/11/multipartfilter.html
Downloading files: http://balusc.blogspot.com/2007/07/fileservlet.html

Similar Messages

  • How can I allow a user (client) to choose a local image file (on his hard d

    How can I allow a user (client) to choose a local image file (on his hard drive) and modify it using an applet from his browser ? I am trying to develop a web page that enables the user to choose an Image file, manipulate the image using a java applet, and display the results.
    Using Java�s �JFileChooser� does not work when called from a browser, probably due to security privileges issues. On the other hand, I can choose and upload any file using a JavaScript form:
    <FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="process.asp">
    <INPUT TYPE=FILE NAME="file1"><BR>

    It seems that I can choose an image file with a Java script form and process an image with an applet. How can I choose a file AND process it locally ?
    (I do not wish to upload the file to the server using JavaScript form and then back to the client�s applet for processing since it will be a tremendous waste of resources).
    Will appreciate any solution.
    Thanks !
    ( my email is: [email protected] )

    "Using Java�s �JFileChooser� does not work when called from a browser, probably due to security privileges issues. "
    You can do this if you sign the applet...

  • Loading local swf files from Application Dir (ios)

    Hi Guys,
    I would like to load additional local swf files to my ios release build but I am confused a little bit because of the new API changes.
    As far as I know at the moment (from Air 3.7 or newer) it is allowed to load local swf files that contains compiled actionscript both from local folder and from a predefined remote host as well. 
    My assumption based on this article:
    http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios/
    I created the text file to include all of my local swf file names and created the following node in the application.xml:
    <iPhone>
           <externalSwfs>assets/SampleSWFInfoFile.txt</externalSwfs>
    </iPhone>
    When I compile the release build (ipa) using command line adt, it converts all of my local swfs into the stripped swfs which is perfect, but even though I include all the swfs in the compiler command, it puts only the SampleSWFInfoFile.txt file into the assets folder in the ipa but not the swf files.
    I assume, it thinks I will load these files from an external host, but I would like to include them in the app itself.
    I tried to copy the stripped swf files from the externalStrippedSwfs folder and comment the <externalSwfs>assets/SampleSWFInfoFile.txt</externalSwfs> node in the application.xml and compile it and this way it puts the swf files into the ipa, but when I try to install and launch the app it crashes and when I test it using Flash Builder it shows an error message
    "VerifyError: Error #1042: Not an ABC file."
    Do any of you guys know the  solution for this problem?
    Thank you for your help in advance!

    You're publishing in AOT mode as long as you use one of these:
    The AIR Developer Tool or ADT has targets that lets you package apps either for the AOT mode or Interpreter mode. The targets for packaging in AOT mode are ipa-app-store, ipa-ad-hoc, ipa-test and ipa-debug.
    Flash Pro CS6 and Flash Builder automate this process pretty well so it's invisible but the SWF loads and executes code just fine for me when directly published.
    If I take it to command line I can use this to compile successfully (iPad test app):
    adt -package -target ipa-ad-hoc -storetype pkcs12 -keystore my.p12 -provisioning-profile my.mobileprovision NameOfApp.ipa NameOfApp-app.xml NameOfApp.swf iTunesArtwork iTunesArtwork@2x AppIconsForPublish swfs/swfs.txt swfs/GenerateText.swf
    I at least include generic icons in there but I made a 'swfs' folder and placed 'swfs.txt' and 'GenerateText.swf' in there. The SWF uses code to randomly generate text and changes every second using a Timer. I load it in using the same code you do with the ApplicationDomain.currentDomain context. I see the SWF appear and text start randomly changing.
    As I compile there's a folder generated called 'externalStrippedSwfs' with the stripped SWF in there.
    One thing to note is I do not supply <externalSwfs>swfs/swfs.txt</externalSwfs> in my iPhone settings. If I do that it doesn't work. I supply the path to the text file containing the SWF I want to be stripped to adt itself along with the SWFs I want stripped and it takes care of the rest.

  • Load JP2 image file with GeoRasterLoader

    Hi to all,
    We are trying to set up Oracle GeoRaster tools (stand-alone client-side java Executables found in %ORACLE_HOME%\md\...) in order to view and load JP2 image files to Oracle.
    Our test environment has Oracle 11g r2 (11.2.0.3.0) EE with Spatial Option on Microsoft Windows XP Professional 2002 SP3.
    Following the instructions for loading JP2 we download and install jai_imageio-1_1-lib-windows-i586.exe from: http://download.java.net/media/jai-imageio/builds/release/1.1/
    1.     Please find an example of the command we use to invoke GeoRasterLoader from command line:
    java oracle.spatial.georaster.tools.GeoRasterLoader SE004 ORCL 1521 RD RD thin 32 T OKXE_ORTHOS GEORASTER "blocking=true blocksize=(256,256,3) spatialExtent=TRUE" "C:\Temp\0458041985\0458041985.jp2,1,OKXE_ORTHOS_RDT,C:\Temp\0458041985\0458041985.j2w,2100"
    Got connection
    Loading image: C:\Temp\0458041985\0458041985.jp2
    java.lang.NullPointerException
    at oracle.spatial.georaster.rasterio.JGeoRasterAdapter.setSRS(JGeoRasterAdapter.java:4509)
    at oracle.spatial.georaster.rasterio.JGeoRasterAdapter.setMetadataStream(JGeoRasterAdapter.java:4520)
    at oracle.spatial.georaster.rasterio.JGeoRasterAdapter.storeFromStream(JGeoRasterAdapter.java:4921)
    at oracle.spatial.georaster.rasterio.GeoRasterAdapter.doImport(GeoRasterAdapter.java:632)
    at oracle.spatial.georaster.rasterio.GeoRasterAdapter.loadFromFile(GeoRasterAdapter.java:1863)
    at oracle.spatial.georaster.tools.GeoRasterLoader.load(GeoRasterLoader.java:458)
    at oracle.spatial.georaster.tools.GeoRasterLoader.main(GeoRasterLoader.java:243)
    java.lang.NullPointerException: null
    The georaster object is not loaded correctly!!
    Loader Finished.
    2.     When using the GeoRaster Viewer for retrieving jp2 file from file we get an error message “ Can’t load Image” The error messages that appear in the command prompt are as follows:
    C:\Oracle\product\11.2.0\dbhome_1\md\demo\georaster\java>java -Xms128m -Xmx564m oracle.spatial.georaster.tools.GeoRasterTool
    java.lang.RuntimeException: - Unable to render RenderedOp for this operation.
    at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:827)
    at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
    at javax.media.jai.RenderedOp.getWidth(RenderedOp.java:2179)
    at oracle.spatial.georaster.tools.GeoRasterTool.actionPerformed(GeoRasterTool.java:1471)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)
    at java.awt.Component.processMouseEvent(Component.java:5517)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at java.awt.Component.processEvent(Component.java:5282)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3984)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1791)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    PS. He have no problems in viewing and loading other type of image files like tif
    TIA,
    George

    Hi Tomek,
    3 to 4 MB with the following image header. Anyway, we also tried jp2 image files from other sources
    Thanks,
    BR / George
    Output from Display Header
    File Name: I:\Okxe\Orthos_June\0438042165\0438042165.jp2
    File Information:
    Standard : : Jpeg 2000 File
    Format : Lossless JPEG 2000 compression
    Pixels per Line : 1600
    Number of Lines : 1200
    Samples per pixel : 3
    File bits per sample : 8
    Actual bits per sample : 8
    Untiled file
    Number of overviews : 5
    Overview sampling method: Gaussian
    Scanning device resolution : 84 : microns
    Orientation : 4 : Row major order, origin at top left
    NO scan line headers : non-scannable file
    Packet size (16-bit words) : 0
    Free vlt space (16-bit words) : 0
    Free packet space (16-bit words) : 0
    Raster to UOR matrix:
    Identity Matrix (ones on the diagonal, zero otherwise)
    Raster to World Matrix:
    Units: Unknown or Unspecified
    amx[ 0]= 0,25, amx[ 1]= 0, amx[ 2]= 438000
    amx[ 3]= 0, amx[ 4]= -0,25, amx[ 5]= 4216800
    438000 , 4216800
    438400 , 4216800
    438400 , 4216500
    438000 , 4216500
    Geotiff_Information:
    Version: 1
    Key_Revision: 1.0
    Tagged_Information:
    ModelTiepointTag (2,3):
    0 0 0
    438000 4216800 0
    ModelPixelScaleTag (1,3):
    0.25 0.25 0
    End_Of_Tags.
    Keyed_Information:
    GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
    End_Of_Keys.
    End_Of_Geotiff.
    Corner Coordinates:
    Upper Left ( 438000.000, 4216800.000)
    Lower Left ( 438000.000, 4216799.750)
    Upper Right ( 438000.250, 4216800.000)
    Lower Right ( 438000.250, 4216799.750)
    Center ( 438000.125, 4216799.875)

  • UIwebview load local html file problem

    Hi,
    load local html file into UIwebview the TD cell data can't display, as attached the "2817 MODEL" column data lost on screen:
    The local html file souce as:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html lang="en">
      <head>
        <title>IBM z196 zEnterprise 2817 Mainframe Reference - Technology News</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <meta http-equiv="Content-Style-Type" content="text/css">
        <meta name="robots" content="index,follow">
        <meta name="Author" content="Hesh Wiener">
        <meta name="Formatter" content="Heshomatic 6.2">
    <STYLE TYPE="text/css">
    <!--
    BODY
      font-family: Arial, Helvetica, sans-serif;
      font-size: 9pt;
    A:link{color:white}
    A:visited{color:yellow}
    -->
    </STYLE>
      </head>
      <body>
        <h2>
          IBM Mainframes:<br>
           IBM z196 zEnterprise 2817 Mainframe Reference
        </h2>
        <table border="1" style="border-collapse:collapse;" summary="2094 series economic specs">
          <tr>
            <th rowspan="2">
                2817  <br>
                 MODEL  
            </th>
            <th rowspan="2">
              FIRST<br>
               AVAIL
            </th>
            <th rowspan="2">EST  INIT<br>
            US PRICE  </th>
          <th rowspan="2"> EST INIT <br>
          MIN US MAINT</th>
            <th rowspan="2">
              APPROX MIPS
            </th>
            <th rowspan="2">
              SW PRICE<br>
               MSU
            </th>
            <th>
              LSPR RELATIVE PERFORMANCE
            </th>
          </tr>
          <tr>
            <th>
              MI z/OS 1.11
            </th>
          </tr>
      <tr>
        <td>2817-401</td>
        <td>3Q 10</td>
        <td>$975,000</td>
        <td>$6,280</td>
        <td>240</td>
        <td>30</td>
        <td>0.43</td>
      </tr>
      <tr>
        <td>2817-402</td>
        <td>3Q 10</td>
        <td>$1,187,000</td>
        <td>$6,729</td>
        <td>459</td>
        <td>58</td>
        <td>0.82</td>
      </tr>
      <tr>
        <td>2817-501</td>
        <td>3Q 10</td>
        <td>$1,244,000</td>
        <td>$7,524</td>
        <td>588</td>
        <td>74</td>
        <td>1.05</td>
      </tr>
      <tr>
        <td>2817-403</td>
        <td>3Q 10</td>
        <td>$1,385,000</td>
        <td>$8,346</td>
        <td>672</td>
        <td>85</td>
        <td>1.20</td>
      </tr>
      <tr>
        <td>2817-601</td>
        <td>3Q 10</td>
        <td>$1,423,000</td>
        <td>$9,434</td>
        <td>768</td>
        <td>97</td>
        <td>1.37</td>
      </tr>
      <tr>
        <td>2817-404</td>
        <td>3Q 10</td>
        <td>$1,570,000</td>
        <td>$10,665</td>
        <td>879</td>
        <td>110</td>
        <td>1.57</td>
      </tr>
      <tr>
        <td>2817-405</td>
        <td>3Q 10</td>
    </html>
    Please help. thanks
    Regards,
    HC

    add colspan into td tag and try it got same problem, I just discovered the td data is numeric it can't display, change td data to alphanumeric it workable to normal display.
    below td tag data is unworkable:
    <td>2817-401</td>
    <td>2817401</td>
    change to below is workable:
    <td>2817*401</td>
    <td>281740A</td>
    <td>2817-401A</td>

  • Why when i connect my phone to my laptop do my recent photos load as image files and not jpeg

    why is it that when i connect my phone to my laptop my recent photos load
    as image files and not jpeg as they used to.Is this another issue with ios 8

    Thank you. I did that and made sure my phone was open to the camera roll. I was able to locate the import command and the photos appeared. Thanks so much!

  • How to load huge size file in database

    Hi,
    I have a requirement to load files into database and download them as well. Can you tell me which is the best method to do on plsql.
    Thanks
    Sudhir

    The file upload will be a tad ugly.
    You need to create an upload form/page in Apex that allows the user to upload the file. The Apache location configuration for that Database Access Descriptor (DAD) will include a parameter called PlsqlDocumentTablename - and this parameter specifies the name of the Oracle (or Apex) table to use for uploads.
    The default document table is WWV_FLOW_FILE_OBJECTS$.
    The 150Mb file will thus be a LOB in a row in the document table.
    You can add a post PL/SQL process to that Apex upload page to process the uploaded document. Because of the size of the uploaded file, I suggest that you start a batch process (via the DBMS_JOB or DBMS_SCHEDULER interfaces) to process the upload file.
    Okay, now for the processing. This is the ugly part - as the file is a LOB column in the database and you want to use it via SQL*Loader as an external file or external table. You can write your own CSV parser in PL/SQL. But I do not recommend using this approach for large files - SQL*Loader and external tables are a lot more flexible. I have not yet seen a means to define an external table on a CLOB - so this means having to write code using UTL_FILE and unload the 150Mb LOB contents to an actual external file. Once that is done, you can then use an external table on the external file to load it.
    As for sending files to the client via Apex. This is done using the WPG_DOCLOAD.download_file() call to stream the LOB to the client browser. E.g. basic example:
    --// URL example: http://my-server.my-domain.com/MyDAD/MySchemaName.StreamFile?fileID=1234
    create or replace procedure StreamFile( fileID number ) AUTHID DEFINER is
            mimeType        varchar2(48);
            fileName        varchar2(400);
            lobContent      BLOB;
    begin
            --// read the LOB from a table (or dynamically create it)
            select
                    f.filename,
                    f.mime_type,
                    f.blob_content
                            into
                    fileName,
                    mimeType,
                    lobContent
            from    FLOWS_FILES.WWV_FLOW_FILE_OBJECTS$ f
            where   f.id = fileID;
            --// format a basic HTTP header that describes the file stream send
            OWA_UTIL.mime_header( mimeType, FALSE );        -- e.g. text/csv text/plain text/html image/gif
            HTP.p( 'Content-Disposition: attachment; filename='||fileName );
            HTP.p( 'Content-Length: ' || DBMS_LOB.GetLength(lobContent) );
            OWA_UTIL.http_header_close;
            --// now write the BLOB as a mime stream using the Web Procedural Gateway's
            --// doc load API
            WPG_DOCLOAD.download_file( lobContent );
    exception when OTHERS then
            --// Decide what HTML to generate (if at all) if there is a failure
            HTP.prn( 'StreamFile() failed with '||SQLERRM(SQLCODE) );
    end;
    /

  • Best way to load messages - properties file or database?

    Hi Guys,
    I have a debate with my colleague about best way to load/keep GUI messages.
    As we known, all those messages are in properties file, web tier will handle the messages loading to GUI.
    However, my colleague suggested, we could save all the messages in a database table, when application starts up, it will load all the messages from database.
    Please help me figure out pros/cons for both ways? What's the best to deal with message loading?
    Thanks

    allemande wrote:
    Please help me figure out pros/cons for both ways?There is no big difference with regard to performance and memory use. Both are after all cached in memory at any way. I wouldn't worry about it.
    The biggest difference is in the maintainability and reusability. Propertiesfiles are just textbased files. You can just edit the messages using any text editor. It is only a bit harder to wrap it in a UI like thing, but you can achieve a lot using java.util.Properties API with its load() and store() methods. Another concern is that it cannot be used anymore if you switch from platform language (e.g. Java --> C# or so) without writing some custom tool to read Java style properties files at any way. Databases, on the other hand, require SQL knowledge or some UI tool to edit the contents. So you have to create a UI like thing at any way if you want to let someone with less knowledge edit the messages. This is more time consuming. But it can universally be used by any application/platform by just using SQL standard.

  • Error loading local CSV file into external table

    Hello,
    I am trying to load a CSV file located on my C:\ drive on a WIndows XP system into an 'external table'. Everyting used to work correctly when using Oracle XE (iinstalled also locally on my WIndows system).
    However, once I am trynig to load the same file into a Oracle 11g R2 database on UNIX, I get the following errr:
    ORA-29913: Error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    error opening file ...\...\...nnnnn.log
    Please let me know if I can achieve the same functionality I had with Oracle XP.
    (Note: I cannot use SQL*Loader approach, I am invoking Oracle stored procedures from VB.Net that are attempting to load data into external tables).
    Regards,
    M.R.

    user7047382 wrote:
    Hello,
    I am trying to load a CSV file located on my C:\ drive on a WIndows XP system into an 'external table'. Everyting used to work correctly when using Oracle XE (iinstalled also locally on my WIndows system).
    However, once I am trynig to load the same file into a Oracle 11g R2 database on UNIX, I get the following errr:
    ORA-29913: Error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    error opening file ...\...\...nnnnn.log
    Please let me know if I can achieve the same functionality I had with Oracle XP.
    (Note: I cannot use SQL*Loader approach, I am invoking Oracle stored procedures from VB.Net that are attempting to load data into external tables).
    Regards,
    M.R.So your database is on a unix box, but the file is on your Windows desktop machine? So .... how is it you are making your file (on your desktop) visible to your database (on a unix box)???????

  • Loading an Image to the Database

    Hello
    I have a requirement to load 1000's of images to a database.
    In the pass we have successfully loaded images from a screen using
    select blob_content, id into image, apex_id from apex_application_files where name = :P120_LOAD for update;
    I now tried to use apex_application_file to do the same in a background PL/SQL procedure
    COMPANY_ID_FILE:= 'E:\' || COMAPANY_ID || '.jpg';
    select blob_content, id into image, apex_id from apex_application_files where name = COMPANY_ID_FILE for update;
    This does not seam to work!?
    I believe apex_application_files is not the right function to used in this case
    Any comments or recommendation very welcome
    Thanks
    Pete

    Hello
    I pleased to report it is all working now.
    My thanks to the people above, Harm ten Hapel from Oracle support and the link below
    http://www.psoug.org/reference/dbms_lob.html
    This is what I did:
    Created a directory within Oracle which linked the directory on the Oracle server. It does not create a directory on the server. This need to done manually.
    create directory data as 'c:\data';
    To show that you created the directory correctly
    select directory_path from all_directories;
    To delete a directory
    drop directory data;
    The code I used is
    begin
    TEMP:= data ||'.jpg'; -- file name on the server
    dbms_lob.createtemporary(l_blob,true); -- initialise the Blob field
    l_bfile := BFILENAME('HOTEL',TEMP); -- Assigns file
    DBMS_LOB.fileopen (l_bfile, DBMS_LOB.file_readonly); -- open file
    lgh_file := dbms_lob.getlength(l_bfile); -- collects file length
    dbms_lob.loadfromfile(l_blob, l_bfile, lgh_file); -- reads file
    DBMS_LOB.fileclose (l_bfile); -- closes file
    --- Extracts the information about the blob data
    DBMS_LOB.CREATETEMPORARY(attributes, TRUE, DBMS_LOB.CALL);
    ORDSYS.ORDImage.getProperties(l_blob,
    attributes,
    img_mimeType,
    img_width,
    img_height,
    fileFormat,
    compressionFormat,
    contentFormat,
    img_contentLength);
    image:= l_blob;
    RECORD_FOUND:= 0;
    --- This is important as the system will only let you open a small number of file at open. If the file open fails it still counts as an open file and find the load programming failing with too many file open error
    EXCEPTION
    WHEN OTHERS THEN -- catches all 'no data found' errors
    DBMS_OUTPUT.PUT_LINE('DATA_FOUND - file = ' || TEMP);
    DBMS_LOB.fileclose (l_bfile);
    record_found:= 1;
    end;
    I hope it is of help
    Thanks to all
    Pete

  • Loading local images into HTML component

    I need to intermix text and images for a project I'm working
    on, and using htmlText seems the best way to do it. However, I
    can't get it to work when the images are loaded from the local file
    system.
    It seems to work fine with remote images:
    <mx:HTML x="480" y="191" width="256" height="315">
    <mx:htmlText>
    <![CDATA[
    <p>Image: <img src='
    http://knight.fb.hive7.com/res/img/ico/x32/coin.gif'
    ></p>
    ]]>
    </mx:htmlText>
    </mx:HTML>
    But not with local images:
    <mx:HTML x="480" y="191" width="256" height="315">
    <mx:htmlText>
    <![CDATA[
    <p>Image: <img src='../assets/coin.gif'
    ></p>
    ]]>
    </mx:htmlText>
    </mx:HTML>
    Anybody have any ideas or workarounds?

    Hi,
    I tried your solution, it did not worked, it gave me following error -
    ==========
    ReferenceError: Error #1056: Cannot create property placeLoadStringContentInApplicationSandbox on mx.core.FlexHTMLLoader.
        at com.exa.view::TestView/changeEvt()[/home/sachin/workspace/newed/src/com/exa/view/TestView .mxml:70]
        at com.exa.view::TestView/__toctree_change()[/home/sachin/workspace/newed/src/com/exa/view/T estView.mxml:89]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.3.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9308]
        at mx.controls.listClasses::ListBase/mouseUpHandler()[C:\autobuild\3.3.0\frameworks\projects \framework\src\mx\controls\listClasses\ListBase.as:8989]
        at mx.controls::List/mouseUpHandler()[C:\autobuild\3.3.0\frameworks\projects\framework\src\m x\controls\List.as:2279]
        at mx.controls::Tree/mouseUpHandler()[C:\autobuild\3.3.0\frameworks\projects\framework\src\m x\controls\Tree.as:2952]
    ===========
    Here is the code, the function gets called on change event of a tree component(not shown in code here)
    ===============
    <mx:Panel width= "70%" height="100%" id="cpanel" paddingBottom="10" paddingLeft="20" paddingTop ="20">
            <mx:HTML id="htmlc" width="100%" height = "100%">
            </mx:HTML>
        </mx:Panel>
    <mx:Script>
        <![CDATA[
              public function changeEvt(event:Event):void{
                   htmlc.htmlLoader.placeLoadStringContentInApplicationSandbox = true;
                   htmlc.htmlLoader.loadString(rh.content.replace(/src="\/images/mg,'src="assets'));
        ]]>
    </mx:Script>
    ================
    It would be helpful if you give more insight on your html component.
    Adobe air -version - 1.5
    Thanks

  • Load local image display in air app

    I am trying to load an image from the local file system, then diplay it in my air window. I don't have any problems getting the file reference from the open file dialog, problem is that I don't know what to do then. Somebody on another forum suggested using Loader.load to open the file using file.url as the URLRequest. This hasn't worked for me at all and I can't find any place online that explains how to do this. Thanks for the help

    Try this:
    var loader:Loader;
    var file:File = new File();
    var imagesFilter:FileFilter = new FileFilter("Images", "*.jpg;*.jpeg;*.gif;*.png");
    file.browseForOpen("Open file", [imagesFilter]);
    file.addEventListener(Event.SELECT, imgSelected);
    function imgSelected(event:Event):void
        loader = new Loader();
        var urlReq:URLRequest = new URLRequest(file.url);
        loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imgLoaded);
        loader.load(urlReq);
    function imgLoaded(event:Event):void
        var bmp:Bitmap = new Bitmap();
        bmp = loader.content as Bitmap;
        addChild(bmp);

  • Problem while loading a jar file into database

    Hi All,
    We are using Oracle 8.1.5 in Solaris. When I try to load a jar file into the database by using loadjava it gives the following error
    Error while processing jar cryptix32.jar
    Exception java.io.IOException: Load Java is unable to handle compressed entries: cryptix/provider/Cryptix.class
    loadjava: 1 errors
    Can anybody suggest anything to overcome this. Thanks in advance.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by John Emmer ([email protected]):
    I presume you've tried creating the jar w/o compressing it? If not, and even if you didn't create the jar, then first unpack the jar into a directory and re-jar it without using compression.<HR></BLOCKQUOTE>
    Hi John,
    Thanks for your help. I unpacked the jar and rhen re-jared it with -0 (uncompress ) option. The above error is gone. But I am getting another problem. I am getting the following error for all the classes except the property files.
    Error while resolving class cryptix/cryptix/provider/cipher/Rijndael
    ORA-04043: object cryptix/cryptix/provider/cipher/Rijndael does not exist
    But the class is there in the jar. I am able to load single individual classes. Can anybody help me in this matter. Thanks in advance.

  • OutofMemory Error while sending file to database using Web services

    I have a file of 30MB to be written to the MySQL database. I am doing this in Axis web services and it gives me the following error:
    (I am using Tomcat as the application server and Apache as the web server, Axis 1.3 and MySQL standard 5.0.21 version. I have set the minimum and maximum heap size and it works well without using the web service (just uploading and downloading from the database using a simple java program). Another thing to notice is that I can send a file of almost 10MB size to the database using web service without any problem. But it doesn't work with the 30 MB .)
    java.lang.OutOfMemoryError: Java heap space; nested exception is:
         java.lang.OutOfMemoryError: Java heap space
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
    faultSubcode:
    faultString: java.lang.OutOfMemoryError: Java heap space; nested exception is:
         java.lang.OutOfMemoryError: Java heap space
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}hostname:dbr221d.dbr.louisville.edu
    java.lang.OutOfMemoryError: Java heap space; nested exception is:
         java.lang.OutOfMemoryError: Java heap space
         at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
         at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at edu.louisville.bcc_ma.ws.lab.LabServiceSoapBindingStub.storeGZIPFile(LabServiceSoapBindingStub.java:472)
         at edu.louisville.bcc_ma.lims.labclient.container.SendGZIPFile.sendFile(SendGZIPFile.java:69)
         at edu.louisville.bcc_ma.lims.labclient.container.LoginContainer.login(LoginContainer.java:58)
         at edu.louisville.bcc_ma.lims.labclient.container.LoginContainer.main(LoginContainer.java:44)

    Sorry for the delayed response here, forget to add it to my watchlist. I didn't catch if you were using Java 1.5 or not. Prior to 1.5 the default maximum heap space was 64MB which with the overhead of the appserver might be your problem.
    Take a look at http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html and the java -Xmx <size> command line option to change the default (I believe the size argument is in bytes, but don't hold me to that). I think you can pass that as a command line option to the startup script, but you should check the doco to see if it needs to be wrapped in some other arg etc.,
    I seem to recall running into this same problem a few years back when I had a servlet doing some intense graphics processing on the fly and setting this option fixed the problem.

  • How to remove flickering in a animation done by loading different image files

    Hello Everyone,
    I have done a character animation by loading multiple images one after another at runtime or dynamically by accessing files from there path directly.
    But the problem I am facing is, I am getting a white bg or delay when the images change, it kind of feels like the images are flickering. How can I get rid of this flicker.
    Thank you.
    Iceheros

    When loading images from a server during runtime you can never be sure that there will be no delay.
    What you could do is write a function, that checks with a progress Event how much of the next picture is loaded and base the percentage of the current pictures alpha channel on this figure.
    Say the progressEvent from your Loader returns a number like 0.1....1.0 (10%...100% of the next picture are loaded)
    Then in an eneterframe you could use that number to modify the current Pictures alpha (like img.alpha = 1.0- progress);
    A clear disadvantage is, that the tweens will always be different (depending on picture size/network traffic)

Maybe you are looking for

  • Error in starting application server SAP Netweaver ABAP Trial version

    After starting the application server on my Windows Vista system, i'm getting next error : =================================================== ============== Starting System NSP ================ =================================================== ===

  • One read_only snapshot can not be refreshed?

    Hi, I have created a read_only snapshot in the snapshot site(Oracle 8.1.6). The master table is a view table in the master site( Oracle 7.3.4).The master site has install the replication option and the snapshot site doesn't install the replication op

  • Will having one apple id on 2 devices cause problems

    i have an ipod and will soon be getting an ipad. i want to share apple id's but dont know if doing that will cause anything deletd from yhe ipad to delete off my ipod or if downloading wil download on everything please help p.s they are running diffe

  • Assigning a value to two variables

    I need to assign the same value to two variables is there a way to do this like in some other languages. e.g. I have the following currently: l_test := 'valval' l_counter := 'valval' I want to condense this down into something simpler such as: l_test

  • Takes up to 20 times to connect to Firefox and then Crashes up to 20 times in yahoo email a day.

    I have been in dialog with "Just Answer" the past two weeks 60 times over this issue. This has been an issue for several months. Just today I tried 18 times "Sever not Found" "Try again" before accessing Firefox. Yesterday Firefox crashed in Yahoo em