Something in correct with Image loading....

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

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

Similar Messages

  • Issue with Image Loader in 14.0

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

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

  • Interface frozen with images loaded with Loader()

    Hi all,
    I am trying to create a web app that allows the user to load an image from a local folder and process it with some image processing. I was able to do that with FileReference and Loader.
    I am using an asynchronous shader to process the image and it seems that when the image is loaded locally the interface is locked out for a second or so before showing the result. However, if the image is embedded this does not happen and the image is updated instantly with the result.
    I don't really understand why an image loaded with a loader has this lag and an embadded image does not... Can anyone help?
    Thanks.

    Everything was already done
    100 fullduplex autoneg to false :
    # for i in `ndd /dev/hme \? | grep "read and write" | awk '{print $1}' ` ; do
    echo $
    ndd /dev/hme ${i}
    done
    ipg1
    8
    ipg2
    4
    use_int_xcvr
    0
    pace_size
    0
    adv_autoneg_cap
    0
    adv_100T4_cap
    0
    adv_100fdx_cap
    1
    adv_100hdx_cap
    0
    adv_10fdx_cap
    0
    adv_10hdx_cap
    0
    instance
    0
    lance_mode
    1
    ipg0
    16
    $ netstat -k hme0
    hme0:
    ipackets 172970 ierrors 77 opackets 106192 oerrors 0 collisions 0
    defer 0 framing 36 crc 41 sqe 0 code_violations 0 len_errors 0
    ifspeed 100000000 buff 0 oflo 0 uflo 0 missed 0 tx_late_collisions 0
    retry_error 0 first_collisions 0 nocarrier 0 nocanput 0
    allocbfail 0 runt 0 jabber 0 babble 0 tmd_error 0 tx_late_error 0
    rx_late_error 0 slv_parity_error 0 tx_parity_error 0 rx_parity_error 0
    slv_error_ack 0 tx_error_ack 0 rx_error_ack 0 tx_tag_error 0
    rx_tag_error 0 eop_error 0 no_tmds 0 no_tbufs 0 no_rbufs 0
    rx_late_collisions 0 rbytes 199140046 obytes 6676272 multircv 231 multixmt 0
    brdcstrcv 1057 brdcstxmt 42 norcvbuf 0 noxmtbuf 0 newfree 0
    ipackets64 172970 opackets64 106192 rbytes64 199140046 obytes64 6676272 align_errors 36
    fcs_errors 41 sqe_errors 0 defer_xmts 0 ex_collisions 0
    macxmt_errors 0 carrier_errors 0 toolong_errors 0 macrcv_errors 0
    link_duplex 0 inits 5 rxinits 0 txinits 0 dmarh_inits 0
    dmaxh_inits 0 link_down_cnt 0 phy_failures 0 xcvr_vendor 24657
    asic_rev 193 link_up 1
    So what do you have any idea, about the problem?
    The router is 100 Full Duplex w/o autoneg
    the errors arrived only on the virtual interface hme0:1, and never on hme0
    Fred,

  • Problems with image loader 'swissarmy.js' in 7.0.1

    My Javascript image loader 'swissarmy.js' at www.sustainableaggregates.com loads images right justified in 7.0.1, in older versions of Firefox or all other current browsers it's OK.
    Is this a bug in Firefox 7.0.1 rendering engine or is it down to a bad piece of Javascript. Swissarmy.js is used a lot in many websites.
    Will a future imminent FF upgrade cure this or do I need to source a new image loader script?

    My Javascript image loader 'swissarmy.js' at www.sustainableaggregates.com loads images right justified in 7.0.1, in older versions of Firefox or all other current browsers it's OK.
    Is this a bug in Firefox 7.0.1 rendering engine or is it down to a bad piece of Javascript. Swissarmy.js is used a lot in many websites.
    Will a future imminent FF upgrade cure this or do I need to source a new image loader script?

  • Problem with Image loading when using ajax request

    Hi,
    I am uisng "https://ajax4jsf.dev.java.net/ajax" for ajax in my JSF
    and my JSP is:
    <a:outputPanel id="newsPanel">
    <div id="newsImage" class="myclass">
    <h:graphicImage id="img" url="#{mgr.path}" rendered ="#{(mgr.path != null)}"/>
    </div>
    <div class="myclass">
    <a:commandLink id ="update" action="#{mgr.image}" reRender="newsPanel">
    <h:graphicImage id="prevbtn" value="../assets/arrow_small_left.gif" />
    </a:commandLink>
    more stories
    <img src="../assets/arrow_small_right.gif" align="absmiddle" />
    </div>
    <div class="myclass">
    <h2>USA</h2>
    <div class="newsContent">abc.</div>
    </div>
    </a:outputPanel>
    mgr is alias name of my backing bean
    **my backing bean is:**
    public class LoginManager {
    private String path="D:/images/xyz.jpg";
    private String imgPath;
    public String getPath() {
              return path;
    public void setPath(String path) {
              this.path = path;
         public String getImgPath() {
              return imgPath;
         public void setImgPath(String imgPath) {
              this.imgPath=imgPath;
         public void image(){
              setImgPath("D:/images/abc.gif");
    First time image is loading properly.When i click on Previous button previous image is not loading and in console it is showing warning as
    Jun 5, 2008 9:29:55 AM com.sun.faces.taglib.jsf_core.ViewTag doStartTag
    WARNING: "JSF1062: WARNING! The response object returned by ExternalContext.getResponse() doesn't provide a method with signature 'public void flushContentToWrappedResponse()'. This method is necessary in order to provide content interweaving in a JSP environment. Because of this, content will not be displayed correctly.
    What might be the problem.
    Please help me out ASAP...
    Thanks in Advance,
    Narvish

    Have a look throughout the forum (and google), JWS retrieved url syntax changed in 5u16 (or 14 I can never remember).
    Otherwise keep waiting for some good samaritan, good luck with it, most people are sick tired of this topic.
    Bye.

  • Problem with Image Loading

    Hi,
    I am using JWS to launch my application. Earlier I was using jdk1.5.0_12 version and everything was working fine. But, one of our machines didnt had jdk1.5.0_12 but had jdk1.5.0_19 version. So, JWS uses "Java Web Start 1.5.0_19" version.
    In my code, I am loading images at two different places. At first place I am loading my images using ClassLoader cl = Thread.currentThread().getContextClassLoader();
    InputStream baseInputStream = cl.getResourceAsStream(value);
              if(baseInputStream != null){
                  ByteArrayOutputStream out = new ByteArrayOutputStream(1024);
                  byte[] buffer = new byte[1024];
                  int len;
                  while((len = baseInputStream.read(buffer)) >= 0)
                      out.write(buffer, 0, len);
                  baseInputStream.close();
                  out.close();
                  imageIcon = new ImageIcon(out.toByteArray());
              }This is working fine. But at the second place, I am setting the look and feel for my application using, SkinLookandFeel.loadDefaultThemePack() method. This method hangs permanently and my application fails to launch. When I debugged this method, I found the following:
    1. It goes to loadDefaultThemePack() method of SkinLookAndFeel class. (package: com.l2fprod.gui.plaf.skin)
    2. This in turn calls the loadThemePackDefinition((com.l2fprod.gui.plaf.skin.SkinLookAndFeel.class).getResource("/skinlf-themepack.xml")); of SkinLookAndFeel class.
    3. The XML file is loaded properly.
    4. In method loadThemePackDefinition(), the XML is parsed.
    5. This XML has a tag <icon name="InternalFrame.icon" value="icons/Window.gif" />.
    6. A URL is formed using URL iconURL = new URL(url, element.getProperty("VALUE"));7. This URL is also formed properly.
    8. Next, SkinUtils.loadImage(iconURL) is called.
    9. In this method, image is created using method: byte data[] = SkinLookAndFeel.getURLContent(url);
                img = Toolkit.getDefaultToolkit().createImage(data);10. The img variable created here has width and height = -1 with imagerep (consumer) as null, source (producer) as sun.awt.image.ByteAraryImageSource.
    11. Then, ImageUtils.transparent(img) method is called.
    12. In this method, toBufferedImage(image) method is clalled.
    13. in toBufferedImage(image) method, new image is created using image = (new ImageIcon(image)).getImage(); method.
    14. This new image created also has width and height = -1 with imagerep (consumer) as sun.awt.image.ImageRepresentation, source (producer) as ByteAraryImageSource.
    15. Now, new BufferedImage is created using BufferedImage bufferedImage = new BufferedImage(image.getWidth(null), image.getHeight(null), 2);16. In the constructor of BufferedImage, createCompatibleWritableRaster(width, height) method is called on DirectColorModel. This method throws exception, since width and height are -1.
    Points to note are:
    1. This is working fine with jdk1.5.0_12 but not with jdk1.5.0_19. I tried this with latest java 1.5 version, jdk1.5.0_21. The problem is still there.
    2. When I tried with jdk1.5.0_12, instead of DirectColorModel instance, createCompatibleWritableRaster() method in point 16 above was called on IndexColorModel. I am not creating or initializing any color model, so, I dont know, when does the instance of DirectColorModel or IndexColorModel is used and whether it has any thing to do with my problem.
    Can any one provide any pointers, what could be the issue with jdk1.5.0_19.

    Have a look throughout the forum (and google), JWS retrieved url syntax changed in 5u16 (or 14 I can never remember).
    Otherwise keep waiting for some good samaritan, good luck with it, most people are sick tired of this topic.
    Bye.

  • Problem with image loading in flex (with web dynpro ABAP integration)

    Hi,
    I am working with integration of flex and web dynpro abap. I am facing unusal problem while loading the images. I have the images in the MIME folder of web dynpro application. Since my swf file and all the images that I want to use are in the same folder(MIME), I am accessing them giving just the image name as source for the image in flex.
    By this method I get the images sometimes, but not everytime. So could anyone suggest me alternative method.
    Regards
    Prashant Chauhan
    Edited by: Prashant8809 on Jul 17, 2011 11:56 AM

    Hello Prashant,
    you need to mention the full path as source for the image in flex.
    ex. if your WD application name is Z_TEMP and image file name in mime folder is 'image.jpg' then you need mention the source in flex as
    http://servername:50001/sap/bc/webdynpro/sap/Z_TEMP/image.jpg
    Hope this solves your problem.
    BR, Saravanan

  • Problems with image loading

    is there any way to load an image to a Frame(not using applet).

    Yes, which way would you prefer?
    Swing has a component for showing images, ImageIcon.
    The Toolkit class of AWT has getImage methods that you can use to load GIF, JPEG and PNG images. See the docs/tutorial for specifics.
    If you have images of other file types, check out the new ImageIO API.

  • Rotating image loaded with CameraRoll

    I'm having trouble working out how to rotate an image loaded using CameraRoll on an AIR for iOS app.
    This code below works fine (displayImage() is called when CameraRolls media event returns completed, and imageArea is the scrollPane where the image is shown.
         function displayImage():void
         var image:Bitmap = Bitmap(imageLoader.content);
         imageArea.source = image;
    The image loads just fine untill I try to rotate it:
         function readMediaData():void
         var image:Bitmap = Bitmap(imageLoader.content);
         var imX:int = image.width;
         var imY:int = image.height;
              if (imX>imY)
                  image.rotation = 90;
         imageArea.source = image;
    With the second version the image seems to load because the scroll bars expand to the size of the image I choose, but I don't see anything on the stage.
    What am I doing wrong?
    Any suggestions would be really appreciated.

    I added the new width back to images x position but no joy; no matter what x & y I set the image to, it cannot be seen. The scroll bars expand exactly the right amount for the 'invisible' image, regardless of it's x & y positions as well (you'd think if the image was out of the scrollPane the bars wouldn't adjust like that. I'm not doing something right.
    I'm stumped on this but I'll keep trying things. Thanks for your help and the lead, I appreciate it and it may be part of the problem, but there seems to be a different problem as well.

  • I cant up load the correct size image for my cover

    I cant up load the correct size image for my cover...please help

    Hello tiffgill,
    I recommend reviewing the following guidelines for page images for iTunes U:
    When creating your provider art for your iTunes 11 and iOS 6 or later provider page, keep the following in mind:
    Only submit artwork you can legally share.
    Provider art must be JPEG or PNG with appropriate file extensions (.jpg, .png).
    iTunes U Public Site Manager only supports RGB color profiles.
    Artwork must be at least 3200 pixels in width and 600 pixels in height with a minimum resolution of 72 dpi, with a maximum file size of 5MB.
    You can upload a single piece of art that iTunes U Public Site Manager can use across all platforms and devices (see sample below). If you upload a single piece of art you must also:
    Make sure that any text or logo is in the center of the artwork, in the Text/Logo Safe Area.
    The Minimum View is 994 x 600 pixels. Texts or logos should not exceed the Minimum View of 994 pixels and should not exceed 400 pixels in height.
    Ensure that you do not include any text or logos in the Tag Area, as this area is needed for iTunes-related tags. The Tag Area is part of the Minimum View and 200 pixels in height from bottom of the artwork.
    For more information and the iTunes Design Specifications, see https://itunesconnect.apple.com/itc/docs/itunes-design-specs.html.
    You can find the full article here:
    Understanding provider page image guidelines
    http://sitemanager.itunes.apple.com/help/AboutYourProviderPage/chapter_5_section _3.html#//apple_ref/doc/uid/iTUPSM-CH5-SW2
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • My Mail application is rejecting my password even though I'm putting it in correctly. Mail is working fine on my iPad and iPhone but not my iMac so it must be something to do with the Mail settings on my desktop. My software is up to date.  Can you help?

    I have an iMac, operating system 10.7.4 with up to date software. My mail application is rejecting my password even though I know I am putting it in correctly. I have an ipad and iphone and the mail application is working fine on them. On my desktop however I cannot receive or send mail. I think it must be something to do with the settings but cannot work out what. I have contacted BT who provides my email and internet. As I have another email address with them that is working correctly they believe it is a problem with mail rather than with them. Please can you help?

    OK Vicky, good clues...
    See if this helps...
    Open Keychain Access in Utilities, use Keychain First Aid under the Keychain Menu item, then either check the Password under that item, change it, or delete it and start over. See if there are duplicates, should be one for Incoming & one for Outgoing.
    Resetting your keychain in Mac OS X...
    If Keychain First Aid finds an issue that it cannot repair, or if you do not know your keychain password, you may need to reset your keychain.
    http://support.apple.com/kb/TS1544

  • How to load folder with images php with oracle

    Hi i want to upload from my php form folder with images what should i fix in my php code for 1 image?
    <?php
    define("ORA_CON_UN", "obrazy");
    define("ORA_CON_PW", "miksas1");
    define("ORA_CON_DB", "//localhost/orcl");
    if (!isset($_FILES['lob_upload'])) {
    ?>
    <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"
    enctype="multipart/form-data">
    Image filename: <input type="file" name="lob_upload">
    <input type="submit" value="Upload">
    </form>
    <?php
    else {
    $conn = oci_connect(ORA_CON_UN, ORA_CON_PW, ORA_CON_DB);
    // Insert the BLOB from PHP's tempory upload area
    $lob = oci_new_descriptor($conn, OCI_D_LOB);
    $stmt = oci_parse($conn, 'INSERT INTO FOTKI (FOTKAID, FOTKA) '
    .'VALUES(:MYBLOBID, EMPTY_BLOB()) RETURNING FOTKA INTO :FOTKA');
    oci_bind_by_name($stmt, ':MYBLOBID', $myblobid);
    oci_bind_by_name($stmt, ':FOTKA', $lob, -1, OCI_B_BLOB);
    oci_execute($stmt, OCI_DEFAULT);
    // The function $lob->savefile(...) reads from the uploaded file.
    // If the data was already in a PHP variable $myv, the
    // $lob->save($myv) function could be used instead.
    if ($lob->savefile($_FILES['lob_upload']['tmp_name'])) {
    oci_commit($conn);
    echo '<p>Obrazek załadowano</p>';
    else {
    echo "Couldn't upload Blob\n";
    $lob->free();
    oci_free_statement($stmt);
    oci_close($conn); // log off
    ?>

    The first thing I'd suggest you fix is the forum to which you posted the question.
    The name of this forum is "Oracle Database General Questions." That is questions about the database ... not questions about PHP.
    Look further and you will find the correct forum.

  • Image loading via URL with resources in packages

    And another newbie-question:
    When I want to access local media-files (for example images) in a subdirectory, I can use a url to get a local path/filename. For example:
    url = getClass().getResource("/path/image-name.gif");
    image = getToolkit().getImage(url);
    Now I have packaged my classes including the subdirs containing the images in a jar file.
    package.jar
    |
    -- subdir (with images)
    |
    -- a.class
    |
    -- b.class
    |
    -- x.class
    Now the access via url doesn't seem to work any longer. When I subclass "a" outside the package (with correct import-statements, of course) and the constructor of "a" tries to access the images in "subdir" (invoking super()), it cannot find it and an exception occurs.
    Is this correct, or does the error lie maybe somewhere else?
    I had the impression that a jar-archive can be accessed like a directory? Have I to access the images in another way to get them working inside a package? When the classes and images are not packaged, all works fine.
    I work with Sun One, btw., and do mount the jar-archive as a filesystem...
    Any advise?
    Thanks in advance.
    Xanathon

    Am I on the right way when using an URLClassLoader instead of getClass()?

  • Pentax DSmobile 600 with Image Capture only sayd "No paper loaded..."

    I was using Paperless to scan documents, but Paperless is not fully working on Snow Leopard yet. I re-installed the Pentax DSmobile 600 TWAIN driver tonight, but I still cannot scan documents into my Mac.
    If I select "Flatbed" as the Scan Mode, I can get it to "Overview" a document quite nicely. But when I tried to scan it it doesn't go well. When I use "Document Feeder" as the Scan Mode, Image Capture just sits there saying "No paper loaded..."
    A workaround is to "Hide Details" at which point it seems to start allowing me to scan again.
    Is this a bug with Image Capture?
    To reproduce:
    * Open Image Capture
    * Choose Show Details
    * Select "Flatbed" as the scan mode
    * Select "Document Feeder" as the scan mode
    * "No paper loaded..." displays on the screen, Scan button disabled.
    * Click "Hide Details" and you can Scan again.

    daimoh wrote:
    I got in contact with Pentax/Brother about the DSmobile and they said:
    {quote}Unfortunately, there is now way to calibrate the scanner via Image
    Capture on Snow Leopard. Not sure why, but Apple has disabled this
    feature with the release of Snow Leopard. We are potentially going to
    release a solution for calibrating on Snow Leopard, but I'm not sure
    when this may happen. For now, you should be able to calibrate the
    scanner using a 30 day trial version of this software:
    http://www.marinersoftware.com/sitepage.php?page=152{quote}
    Does anyone happen to know if there are other SW packages that enable calibration of this scanner? I've already tried (and let expire) Paperless and currently have a brand new but useless dsmobile 600 sitting on my desk - which I ironically chose over other models because of the recommendation by Mariner software for this:
    from http://www.marinersoftware.com/sitepage.php?page=152:
    {quote}"Nearly any scanner will work with Paperless through the Image Capture method, however we strongly recommend using a TWAIN compliant scanner or Fujitsu ScanSnap S1500M, Fujitsu ScanSnap S300M or Pentax DS mobile 600. We have found that Fujitsu and Pentax have the best drivers on the market at this time; your results may vary using any other scanner. "{quote}

  • Multiple Images with a Loader

    I am trying to load and display multiples images with a Loader, one after another. The program only displays the last image to be loaded and added to the stage. What is wrong? Here is my code..
    ---START OF CODE---------------------------------------
    import flash.events.MouseEvent; //Package needed for mouse events
    btnGenerate.addEventListener(MouseEvent.MOUSE_DOWN, buttonPressed); //Button click listener
    chkSeal.addEventListener(MouseEvent.MOUSE_DOWN, chkTriggered); //Check box click listener
    //If the check box is toggled, switch to 8 or 9 max characters
    function chkTriggered(event:MouseEvent):void
         if (chkSeal.selected == false)
              txtInput.maxChars = 8;
         else
         txtInput.maxChars = 9;
    function buttonPressed(event:MouseEvent):void
         var pictureLoader:Loader = new Loader(); //Picture loading variable
         var plateText:String = txtInput.text; //Plate text string
         var filename:String; //Filename for each character's associated picture
         var currentX:int = 10; //Current x position
         var i:int; //Counter to use in for loop
         plateText = plateText.toUpperCase(); //Convert plate text to upper case
         //For every character in the sequence
         for(i = 0 ; i < txtInput.length ; i++)
              filename = "/Numbers and Letters/" + plateText.charAt(i) + ".png"; //Generate filename
              pictureLoader.load(new URLRequest(filename)); //Load the picture
              addChild(pictureLoader); //Add picture to the stage
              pictureLoader.x = currentX; //Move picture into position
              pictureLoader.y = 366; //Constant y position for all images
              currentX = currentX + 52; //Increase the current x (by the size of the images)
         txtInput.text = "Done!"; //Display done in the text box
    -------------END OF CODE----------------------------

    You appear to only have one Loader instance working for you.  A Loader can only hold one load at a time.  Try creating new Loaders within the loop.

Maybe you are looking for