Cap file Components size limit ( ? )

Hello,
I'm wondering if there is a limitation on the Cap file internal components size.
as specified in the JVM Spec from SUN, a cap file consists on several elements (byte sequences) : Header.cap , Class.cap, StaticField.cap, etc.
Does a component have a size limit ?
I'm asking this question because I'm facing serious problem when loading Applets on Gemplus SIM cards(GemWpressoV3 ) : the load process interrupts sudenly and the card responds with 6F00 !!
For info, the Method.cap components is 11748 bytes !!
Thank you for your Help and Info
Kartagos

here is a complete description of the Cap I can't load :
    Header.cap (29 Bytes)
    Directory.cap (34 Bytes)
    Import.cap (62 Bytes)
    Applet.cap (23 Bytes)
    Class.cap (94 Bytes)
    Method.cap (8484 Bytes)
    StaticField.cap (6312 Bytes)
    ConstantPool.cap (925 Bytes)
    RefLocation.cap (1411 Bytes)
    Descriptor.cap (2340 Bytes)

Similar Messages

  • JCOP and CAP file components

    Hi,
    I'm trying to reproduce the APDU install (for load) and load (CAP file) commands the JCOP shell executes when you run an applet whith JCOP 3.1.
    I noticed that the JCOP shell executes as many load commands as the CAP file size requires since the max datafield size of an APDU command is 255 bytes. But when I add the size of of the commands, I get 793 bytes when the CAP file size is 4695 bytes.
    I found in the JavaCard JCVM specification, which describes the CAP file format that a CAP file is divided in several CAP files. So It seems to me that JCOP parse the "global" CAP file and only load parts of it in the emulated card.
    The question is, which "little" CAP files are required to load the applet correctly and how could you know how the CAP file is actually structured in order to parse it correctly ?

    Hi,
    the CAP-File is a special and very complex format and the result of the JCOP build process for a package (all applets of this package).
    Loading an applet from a CAP-File via the JCShell "upload" command consists of 2 steps:
    - first: send the upload initialization command
    - second: send the code for this applet in (n) max. 255-byte blocks
    Every code block has 6 leading command bytes.
    The byte stream to send to the card or emulation depends on some requirements like header, code, debug-info, description...
    So it cannot have the same size like your CAP-file!!

  • Execute a xquery in XML file ith Size Limit.

    Hi there,
    I have the following XML file:
    <Fuzzy>
    <Rule>
    <rule_ID>1</rule_ID>
    <event>insert</event>
    <happen>after</happen>
    <condaction>collection('test.dbxml')/Bookstore/Book</condaction>
    </Rule>
    </Fuzzy>
    I use the following code to execute the xquery in the TAG <condaction>:
    String Query = "collection('test.dbxml')/Fuzzy/Rule/condaction/text()";
    XmlQueryExpression ue = myManager.prepare(Query, context);
    XmlResults results = ue.execute(context);
    while(results.hasNext()) {
    System.out.println("==================================");
    String test = results.next().asString();
    System.out.println(test);
    XmlQueryExpression e = myManager.prepare(test, context);
    XmlResults results1 = e.execute(context);
    while(results1.hasNext()) {
    System.out.println("==================================");
    System.out.println(results1.next().asString());
    The above execute the xquery and provides me the result. But the same code has problems when I use the below Xquery which has a longer Xquery length. Is there any limit on the size of xquery ?
    <Fuzzy>
    <Rule>
    <rule_ID>1</rule_ID>
    <event>insert</event>
    <happen>af ter</happen>
    <condaction>if(collection('test.dbxml')/Bookstore/Book/book_ID gt 0 and collection('test.dbxml')/Bookstore/Book/price lt 20) then insert nodes <b4>inserted child</b4> after
    collection('test.dbxml')/Bookstore/Book/title else insert nodes <b4>inserted child</b4> after collection('test.dbxml')/Bookstore/Book</condaction>
    </Rule>
    </Fuzzy>
    The problem I identify is that the 'test' variable only prints the part of the xquery present in the tag:
    ================================
    if(collection('test.dbxml')/Bookstore/Book/book_ID gt 0 and collection('test.dbxml')/Bookstore/Book/price lt 20) then insert nodes
    Please help me to identify if I am wrong or if there are any limitations that is causing this problem.
    Thanks.

    FYI..
    XML has a special set of characters that cannot be used in normal XML strings. These characters are:
    <ol><li>& - &amp; </li>
    <li>&lt; - &lt; </li>
    <li>&gt; - &gt; </li>
    <li>" - " </li>
    <li>' - ' </li>
    </ol>
    I replaced the above ones in my XML Tag that has xquery and it worked !!

  • File import size limit - increased for LR 3+?

    I've been using LR 1.4 for years, but lately I've been working on larger files and I'm getting "Files too large" to import... most recently with a 729.3 MB TIF. Has LR 3+ raised that limit?

    Kenschuster wrote:
    Most of my images now are at least 512 MP.
    Ken,
    Are you sure? 512MP means 512'000'000 piexels, wich results in a 1.5 GB uncompressed 8bit image. We're not talking about 512 Megabytes ....
    Beat Gossweiler
    Switzerland

  • File download size limit - 2 GB?

    I have CE560 content engines running ACNS 5.3.1. Users trying to download files over 2GB via a browser get only about 2GB of the download. There are no errors. Is there some limit? Setting I can change?

    Allan wrote:
    > I want to stream data to disk for a long period, in the format waveform data
    > type - my problem is that the data files tends to reach the limit of 2 GB.
    >
    > Is it possible to make files in LabVIEW greater than 2 GB ?
    >
    > My OS is Windows XP and the disk is NTFS formatted.
    >
    > I really appreciate your help on this one!
    If you do the writing of files yourself, e.g. using the Write File node,
    then you can go to www.openg.org and checkout the OpenG Toolkit. There
    should be a link from
    http://www.openg.org/tiki/tiki-index.php?page=OpenG+Toolkit to the
    sourceforge page where you can download the entire Toolkit or portions
    thereof. You are interested in the Large File IO libarary which access
    the Win32 API to handle files bigger than 2GB.
    Rol
    f Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • 3d files/ size limit in CS5?

    Anyone know if theres a 3d file quantity / size limit within a photoshop document? What would any limit be dependant on, e.g, VRAM?
    Running Photoshop 64bit Cs5 Extended, all updates, on a dual xeon, 12gb ram, 64bit win 7, NVidia Quadro FX 3800 (1gb), Raptor scratch disk with 50gb space, used as a dedicated scratch disk. PS settings are set to alocate over 9gb ram to PS, GPU Open GL settings enabled and set to Normal, 3d settings allocate 100% VRAM (990mb) and rendering set to Open GL. You'd expect this to perform admirably and handle most tasks.
    Background:
    Creating a PSD website design file with 3 x 3d files embedded. One 'video' animation file linked and a few smart objects (photos) and the rest is shapes and text with a few mask etc. Nothing unusual other than maybe the vidoe and 3d files. The file size is 500mb, which isnt unusual as I've worked on several 800mb files at the same time all open in the same workspace. PC handles that without any problems.
    Introducing the 3d files and video seems to have hit an error or a limit of some sort but I cant seem to pinpoint whats causing it or how to resolve it.
    Problem:
    I have the one 500mb file I've been working on, open. I try to open any ONE file or create a new one and it says the following error. "Could not complete the command because too many files were selected for opening at once". I've tried with 3 files, other PSD files, JPEGs, anything that can be opened in PS. All with the same message. Only one PSD file open, only trying to opne one more file or create a new file from scratch.
    I've also had a similar error "Could not complete your request because there are too many files open. Try closing some windows & try again". Have re-booted and only opened PS and still the same errors.
    Tried removing the video file and saving a copy. That doesnt work. Removed some of th 3 files and saved a copy and then it sometimes allows me to open more files. Tried leaving the 3d files in and reducing lighting (no textures anyway) and rendering without ray tracing, still no effect. Tried rasterising the files and it allowed more files to be opened. I'm working across a network so tried using local files which made no difference. Only thing that seems to make a difference is removing or rasterising some of the the 3d files.
    Anyone had similar problems on what seems to be a limit either on quantity of 3d files, or maybe complexity limit, or something else to do with 3d files limits? Anyone know of upgrades that might help? I've checked free ram and thats at 7gb, using about 10gb swap file. I've opened 5 documents at the sam time of over 700mb each, and its not caused problems, so I can only think the limit is with the GPU with regards to 3d. Cant get that any higher than 990mb, which I'd assume would be enough anyway if that was the problem. I've palyed about with preferences to adjust the 3d settings to lower but no use.
    Anyone any idea whats limiting it and causing it to give the error message above? Is it even a PS5 limit or a win 7 64bit limit?
    Any ideas greatly appreciated. Thanks all.

    Thanks for your comments Mylenium, I originally thought it might be VRAM, but at 1gb (still quite an acceptable size from what I can tell - I'd expect more than 3 x 3d files for that) I originally dismissed it as the complexity of the files seemed quite low for it to be this. I'm still not completely convinced its the VRAM though because of the error message it gives, and have tried it on more complex 3d models and using more of them and it works fine on those. Seems odd about not letting me create a new document too. Would like the money get a 6gb card but a bit out of the budget range at the moment.
    Do you know of a way to "optimise" 3d files so they take up less VRAM, for example reducing any unwanted textures, materials, vertices or faces within PS in a similar fashion to how illustrator can reduce the complexity/ number of shapes/ points etc? Cant ask the client as they dont have the time or I'd do this . Does rendering quality make a difference, or changing to a smart object? Doesnt seem to from what I've tried.
    Re: using a dedicated 3d program, I'd be a bit reluctant to lose the ability to rotate / edit/ draw onto/ light etc objects within Photoshop now that I have a taste for it and go back to just using 3d renderings, otherwise I'd go down the route as suggested for a dedicated 3d package. Thanks for the suggestion though.

  • Wrong CAP file version error message

    I'm trying to write a loader application that will send a CAP file into JavaCard, and then install it automatically.
    I have developed my JavaCard Applet by using Eclipse3.1.0 and JCOP30.
    After running my JavaCard Applet by Eclipse, I got its CAP file in folder [b\bin\FVSCardPkg\javacard\[/b]
    But when I run my loader application with this CAP file, the error message will display:
    EX: msg Wrong CAP file version, class class com.ibm.jc.JCException
    Wrong CAP file version
         at com.ibm.jc.CapFile.parseHeader(Unknown Source)
         at com.ibm.jc.CapFile.readCapFile(Unknown Source)
         at com.ibm.jc.CapFile.<init>(Unknown Source)
         at LoaderPkg.loader.load(loader.java:35)
         at LoaderPkg.loader.main(loader.java:20)
    This is my loader application source code:
    import java.io.*;
    import com.ibm.jc.*;
    import com.ibm.jc.terminal.*;
    *  Sample /**
    *  Sample loader. Demonstrates how to use the offcard API to download
    *  a cap-file on a JCOP41V22 Engineering sample card and listing of applets loaded will
    * follow.
    public class loader{
         private final static String termName = "pcsc:4"; // Real card
    //     private final static String termName = "Remote"; // Simulator
         protected static final byte[] JCOP_CARD_MANAGER_AID = { (byte) 0xa0, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00};
         protected static final byte defaultInstallParam[] = { -55, 0 };
         static String[] capFileName={"D:/MyCardPkg.cap"};
         public static void main(String[] args){
              try{
                   loader l = new loader();
                   l.load();
              }catch(Exception e){
                   System.err.println("EX: msg " + e.getMessage() + ", class " + e.getClass());
                   e.printStackTrace(System.err);
              System.exit(0);
              //Likewise for simulation, be patient the port takes time to close.
              //Use command line "netstate" to check the disapperance of the port before
              // activating JCShell command to read the simulated card.
         private loader(){}
         private void load() throws Exception{
              CapFile capFile = new CapFile(capFileName[0], null);
              System.out.println("Package name: " + capFile.pkg);
              byte[][] applets = capFile.aids;
              if ((applets == null) || (applets.length == 0)){
                   throw new RuntimeException("no applets in cap file");
              // Get connection to terminal, take note that jcop.exe is required to be activated
              // in simulation mode.
              System.out.println("Open terminal ...");
              //Make sure that the simulator jcop.exe is activated before unmarking this satement
              //Remember to delete the downloaded applet before running otherwise error is
              //expected if the simulator finds the existence of the applet with the
              //same pakage name ID and AID
              //Issue /close command at "cm" prompt if the card is in use,, ie it should
              //have "-" prompt. Be patient that the port takes time to close. Use command line
              //"netstate" to check the disapperance of the port before running.
              // pcsc:4=Card Terminal  Or  Remote=LocalHost Terminal
              JCTerminal term = JCTerminal.getInstance(termName, null);
              //For real JCOP41V22 card, please unmark this statement and delete the downloaded
              //applet before running. Error expected if the card finds the existence of the applet
              //with the same pakage name ID and AID
              //Issue /close command at "cm" prompt if the card is in use,, ie it should
              //have "-" prompt.
              term.open();
              // Add in this statement for real card which requires some response time
              term.waitForCard(5000);
              // Create a logging terminal spitting out the APDUs on standard out
              TraceJCTerminal _term = new TraceJCTerminal();
              _term.setLog(new PrintWriter(System.out));
              _term.init(term);
              term = _term;
              // Get JavaCard representative, passing NULL resets card and returns ATR
              System.out.println("Get card ...");
              JCard card = new JCard(term, null, 2000);
              // Get the off-card representative for the card manager and use it to
              // select the on-card CardManager
              System.out.println("Select card manager ...");
              CardManager cardManager = new CardManager(card, CardManager.daid);
              cardManager.select();
              // For downloading something, we have to be authenticated to card manager.
              // For this, the keys must be set. The keys to use should of course
              // be configurable as well.
              byte[] dfltKey = c2b("404142434445464748494a4b4c4d4e4f");
              cardManager.setKey(new OPKey(255, 1, OPKey.DES_ECB, dfltKey));
              cardManager.setKey(new OPKey(255, 2, OPKey.DES_ECB, dfltKey));
              cardManager.setKey(new OPKey(255, 3, OPKey.DES_ECB, dfltKey));
              cardManager.setKey(new OPKey(1, 1, OPKey.DES_ECB, c2b("707172737475767778797a7b7c7d7e7f")));
              cardManager.setKey(new OPKey(1, 2, OPKey.DES_ECB, c2b("606162636465666768696a6b6c6d6e6f")));
              cardManager.setKey(new OPKey(1, 3, OPKey.DES_ECB, c2b("505152535455565758595a5b5c5d5e5f")));
              System.out.println("init Update ...");
              cardManager.initializeUpdate(255,0);
              System.out.println("Authenticate to card manager ...");
              cardManager.externalAuthenticate(OPApplet.APDU_CLR);
              // And load the cap-file, do not forget to call installForLoad
              System.out.println("Loading cap-file ...");
              byte[] cardManagerAid = cardManager.getAID();
              cardManager.installForLoad(capFile.pkgId,0, capFile.pkgId.length, cardManagerAid, 0, cardManagerAid.length, null, 0, null, 0, 0, null, 0);
              cardManager.load(capFile, null, CardManager.LOAD_ALL, null, cardManager.getMaxBlockLen());
              byte[] capaid = capFile.aids[0];
              System.out.println("Finished loading !");
              // Install applet, we try to install the first applet given in the
              // cap file, and try to instantiate it under the same AID as given for its
              // representation in the cap file. No installation data is passed.
              System.out.println("Installing applet ...");
              cardManager.installForInstallAndMakeSelectable(capFile.pkgId, 0, capFile.pkgId.length, capaid,0, capaid.length, capaid, 0, capaid.length, 0, defaultInstallParam, 0, defaultInstallParam.length, null, 0);
              System.out.println("Install succeeded!");
              // synchronize state with on-card card manager
              System.out.println("Update!");
              cardManager.update();
              // Print information regarding card manager, applets and packages on-card
              JCInfo info = JCInfo.INFO;
              System.out.println("\nCardManager AID : " + JCInfo.dataToString(cardManager.getAID()));
              System.out.println("CardManager state : " + info.toString("card.status", (byte) cardManager.getState()) + "\n");
              //Echountered error 6A 86 with this statement:Object[] app = cardManager.getApplets(CardManager.GET_APPLETS,
              //CardManager.CVM_FORMAT_HEX, true);
              //Solved the bug by playing the integers in arg0 and arg1.
              Object[] app = cardManager.getApplets(1, true);
              if (app == null) {
                   System.out.println("No applets installed on-card");
              } else {
                   System.out.println("Applets:");
                   for (int i = 0; i < app.length; i++) {
                        System.out.println(info.toString("applet.status", (byte) ((OPApplet) app).getState()) + " " + JCInfo.dataToString(((OPApplet) app[i]).getAID()));
              // List packages on card
              // Encountered error with this statement:Object[] lf = cardManager.getLoadFiles(CardManager.CVM_FORMAT_HEX, true);
              // Solved the bug by setting arg0 = 0,
              Object[] lf = cardManager.getLoadFiles(true);
              if (lf == null) {
                   System.out.println("No packages installed on-card");
              } else {
                   System.out.println("Packages:");
                   for (int i = 0; i < lf.length; i++) {
                        System.out.println(info.toString("loadfile.status", (byte)((LoadFile) lf[i]).getState()) + " " + JCInfo.dataToString(((LoadFile) lf[i]).getAID()));
              term.close();
         static String numbers = "0123456789abcdef";
         private byte[] c2b(String s) {
              if (s == null) return null;
              if (s.length() % 2 != 0) throw new RuntimeException("invalid length");
              byte[] result = new byte[s.length() / 2];
              for (int i = 0; i < s.length(); i += 2) {
                   int i1 = numbers.indexOf(s.charAt(i));
                   if (i1 == -1) throw new RuntimeException("invalid number");
                   int i2 = numbers.indexOf(s.charAt(i + 1));
                   if (i2 == -1) throw new RuntimeException("invalid number");
                   result[i / 2] = (byte) ((i1 << 4) | i2);
              return result;
    How to solve this problem?
    Thank you in advance.

    I'm not understanding if your cap file is in "b\bin\FVSCardPkg\javacard\", then why are you loading "D:/MyCardPkg.cap"?
    The issue isn't with your off card application, but the cap file version. Look at the cap file components in JCVM specification. I believe it's the Header component. The major, minor should match your card but not greater. In other words, your can't load a 2.2 on a 2.1 card, but a 2.1 can load on a 2.2

  • WIDE-SCALE CALL FOR INPUT: The NSS 8TB Size Limit

    NOTE: This thread is purposefully double-posted in the OES:Linux and OES:NetWare storage forums.
    Like most of you -- I'm just a Novell customer. While I do not represent Novell in any official capacity, this call for information has been encouraged by Novell's OES team.
    During this week's OES2SP3 Beta conference call, a topic was brought up again regarding the aging size limit of the NSS file-system.
    Quite simply the current NSS file system size limit of 8TB is too small for modern and emerging needs. The reality is that customer data is trending larger all the time. A failure to act quickly will eventually mean the obsolecense of this file-system and apathy in the customer base.
    Novell will be monitoring this thread. If sufficent interest can be documented then Novell could more easily marshall the needed internal resources to make this happen sooner rather than later.
    WHAT THIS THREAD IS -NOT- INTENDED TO BECOME
    - A discussion of how one could use DFS or other techniques to mitigate NSS' size constraint.
    - A string of suggestions for alternative file-systems such as NTFS or Posix-based one like XFS, BTRFS, EXT4
    - A debate on why people should not want a larger-than-8TB file-system. That debate is effectively over -- almost every major player in the file-system space is doing anything from 64TB into the Exabyte range (XFS, NTFS, others).
    WHAT THIS THREAD IS INTENDED FOR
    - A tally of other Novell customers who DO see the need and would prefer to keep this data on NSS if it could accomodate it. Your post can be as simple as: "This is important to us, too!" Also helpful, though not required, would be a brief statement or case-study of what your needs would look like (types of data, overall size and quantity of files).
    On the beta calls, several of us have been vocal supporters for this change. We now hope that by casting a wider net that we can find others who perhaps have been suffering in silence.

    Originally Posted by Elfstone
    NOTE: This thread is purposefully double-posted in the OES:Linux and OES:NetWare storage forums.
    Quite simply the current NSS file system size limit of 8TB is too small for modern and emerging needs. The reality is that customer data is trending larger all the time. A failure to act quickly will eventually mean the obsolecense of this file-system and apathy in the customer base.
    I have a couple instances where the 8TB limit is "inconvenient," but all are for comparatively small numbers of large files. As a practical matter the bottlenecks in the metadata are reached far in advance of the storage limits. For example, how would a NSS volume perform with 100,000,000 files on it? This is the biggest issue.
    So sure, there are things which could be done to expand NSS. As a practical matter the easiest would be to support larger block sizes. So 8TB becomes 16, becomes 32, ... all the way to 128TB. I assume 128TB would handle your needs. Of course how you back up and restore 128 TB in less than the age of the Universe, that's up to you.
    -- Bob

  • Increase File attachement size/number of attachments

    Hello all,
    Is there any way to raise the MAXIMUM file attachment size limit in Service Manager? We have a need to have more than 10 attachments to a request and have those attachments be more than 10mbs each (the max in the GUI). Has anyone figured out how to
    increase this maximum in Service Manager 2012? 

    The restrictions for these settings are simply hard coded into the GUI. Why, I do not know. However, it is possible to over-ride, please see this blog from Marcel Zehner:
    http://marcelzehner.ch/2013/07/06/increase-the-number-of-max-incident-attachments-to-more-than-10/
    Rob Ford scsmnz.net
    Cireson www.cireson.com
    For a free SCSM 2012 Notify Analyst app click
    here

  • Folio file size limit

    In the past their were file size limits for folios and folio resources. I believe folios and their resources could not go over 100MB.
    Is their a file size limit to a folio and its resources? What is the limit?
    What happens if the limit is exceeded?
    Dave

    Article size is currently capped at 2GB. We've seen individual articles of up to 750MB in size but as mentioned previously you do start bumping into timeout issues uploading content of that size. We're currently looking at implementing a maximum article size based on the practical limitations of upload and download times and timeout values being hit.
    This check will be applied at article creation time and you will not be allowed to create articles larger than our maximum size. Please note that we are working on architecture changes that will allow the creation of larger content but that will take some time to implement.
    Currently to get the best performance you should have all your content on your local machine (Not on a network drive), shut down any extra applications, get the fastest machine you can, with the most memory. The size of article is direclty proportional to the speed at which you can bundle an article and get it uploaded to the server.

  • LabView RT FTP file size limit

    I have created a few very large AVI video clips on my PXIe-8135RT (LabView RT 2014).  When i try to download these from the controller's drive to a host laptop (Windows 7) with FileZilla, the transfer stops at 1GB (The file size is actually 10GB).
    What's going on?  The file appears to be created correctly and I can even use AVI2 Open and AVI2 Get Info to see that the video file contains the frames I stored.  Reading up about LVRT, there is nothing but older information which claim the file size limit is 4GB, yet the file was created at 10GB using the AVI2 VIs.
    Thanks,
    Robert

    As usual, the answer was staring me right in the face.  FileZilla was reporting the size in an odd manner and the file was actually 1GB.  The vi I used was failing.  After fixing it, it failed at 2GB with error -1074395965 (AVI max file size reached).

  • [AS3 AIR] 2880x2880 Size Limit, Camera, Filter, CameraRoll Issues & Finger Friendly Components

    AS3 AIR ANDROID
    I started playing with this Adobe AIR for Adroid by building an app that would let the user take a picture using the mobile device's native camera app.  Then, I'm applying filter effects to make the image look cool.  Then, I'm allowing the user to save the image back to the camera roll.
    Here are some questions that I have:
    KEEPING UP WITH CURRENT TECHNOLOGY
    Are we limited to the 2880x2880 stage size limit?  Although, this dimension does yield 8+megapixels, it's not in the ratio that most camera sensors are built (widescreen).  Plus, you can bet that newer cameras will have even higher dimensions.  Will this be updated to keep up with current technology requirements?
    IMPORTING & MANIPULATING CAMERA DATA
    Code
    var bmpData:BitmapData = new BitmapData($loader.width, $loader.height);
    bmpData.draw(DisplayObject($loader));
    bmp = new Bitmap(bmpData);
    bmp.width = Capabilities.screenResolutionX;
    bmp.height = Capabilities.screenResolutionY;
    if (CameraRoll.supportsAddBitmapData) {
        var cameraRoll:CameraRoll = new CameraRoll();              
        cameraRoll.addEventListener(ErrorEvent.ERROR, onCrError);
        cameraRoll.addEventListener(Event.COMPLETE, onCrComplete);
        var savedBmpData:BitmapData = new BitmapData (bmp.width, bmp.height);
        savedBmpData.draw(DisplayObject(bmp));
        cameraRoll.addBitmapData(savedBmpData);
    } else {
        trace("~" + "Camera Roll not supported for this device.");
    addChild(bmp);
    When you capture an image using the mobile device's camera app, you have to use the Loader object.
    So, here, I am doing just that with these steps:
    First, I'm creating a BitmapData object and sizing it the same as the camera image.
    Pass the camera image into the BitmapData object.
    Create a Bitmap object and pass in the BitmapData.
    Resize it to fit on the stage.
    Check for Camera Roll and then create a savedBmpData BitmapData object at the size of the screen.
    Pass in the bmp.
    Save it to the Camera Roll.
    The problem is that when the image is displayed on the phone, it shows THE ENTIRE (uncropped) image.  However, the image that is saved to the phone is only the top 800x480 corner of the image.  What is wrong?  How do we save an image to the Camera Roll that is larger than the display area of the phone.  It seems like the only way to save the entire camera image is to resize it to fit the stage and then capture the stage into a bitmapData object.
    FILTERS
    If you apply any filters to the bitmapData object, the filter effects will display on the phone, but if the image is saved to the Camera Roll, then all the filters are lost and it only saves the original (unfiltered) image.
    FINGER FRIENDLY UI COMPONENTS
    Do they exist?
    ADDITIONAL NOTES
    The max image size that can be saved is 2039x2039 pixels on the HTC Evo.  Anything bigger than this resulted in a CameraRoll Error #1 (which there is no documentation for what that means ANYWHERE on the web).

  • HT4863 How can I increase the file size limit for outgoing mail. I need to send a file that is 50MB?

    How can I increase the file size limit for outgoing mail. I need to send a file that is 50MB?

    You can't change it, and I suspect few email providers would allow a file that big.  Consider uploading it to a service like Dropbox, then email the link allowing the recipient to download it.

  • FILE and FTP Adapter file size limit

    Hi,
    Oracle SOA Suite ESB related:
    I see that there is a file size limit of 7MB for transferring using File and FTP adapter and that debatching can be used to overcome this issue. Also see that debatching can be done only for strucutred files.
    1) What can be done to transfer unstructured files larger than 7MB from one server to the other using FTP adapter?
    2) For structured files, could someone help me in debatching a file with the following structure.
    000|SEC-US-MF|1234|POPOC|679
    100|PO_226312|1234|7130667
    200|PO_226312|1234|Line_id_1
    300|Line_id_1|1234|Location_ID_1
    400|Location_ID_1|1234|Dist_ID_1
    100|PO_226355|1234|7136890
    200|PO_226355|1234|Line_id_2
    300|Line_id_2|1234|Location_ID_2
    400|Location_ID_2|1234|Dist_ID_2
    100|PO_226355|1234|7136890
    200|PO_226355|1234|Line_id_N
    300|Line_id_N|1234|Location_ID_N
    400|Location_ID_N|1234|Dist_ID_N
    999|SSS|1234|88|158
    I would need a the complete data in a single file at the destination for each file in the source. If there are as many number of files as the number of batches at the destination, I would need the file output file structure be as follows:
    000|SEC-US-MF|1234|POPOC|679
    100|PO_226312|1234|7130667
    200|PO_226312|1234|Line_id_1
    300|Line_id_1|1234|Location_ID_1
    400|Location_ID_1|1234|Dist_ID_1
    999|SSS|1234|88|158
    Thanks in advance,
    RV
    Edited by: user10236075 on May 25, 2009 4:12 PM
    Edited by: user10236075 on May 25, 2009 4:14 PM

    Ok Here are the steps
    1. Create an inbound file adapter as you normally would. The schema is opaque, set the polling as required.
    2. Create an outbound file adapter as you normally would, it doesn't really matter what xsd you use as you will modify the wsdl manually.
    3. Create a xsd that will read your file. This would typically be the xsd you would use for the inbound adapter. I call this address-csv.xsd.
    4. Create a xsd that is the desired output. This would typically be the xsd you would use for the outbound adapter. I have called this address-fixed-length.xsd. So I want to map csv to fixed length format.
    5. Create the xslt that will map between the 2 xsd. Do this in JDev, select the BPEL project, right-click -> New -> General -> XSL Map
    6. Edit the outbound file partner link wsdl, the the jca operations as the doc specifies, this is my example.
    <jca:binding  />
            <operation name="MoveWithXlate">
          <jca:operation
              InteractionSpec="oracle.tip.adapter.file.outbound.FileIoInteractionSpec"
              SourcePhysicalDirectory="foo1"
              SourceFileName="bar1"
              TargetPhysicalDirectory="C:\JDevOOW\jdev\FileIoOperationApps\MoveHugeFileWithXlate\out"
              TargetFileName="purchase_fixed.txt"
              SourceSchema="address-csv.xsd" 
              SourceSchemaRoot ="Root-Element"
              SourceType="native"
              TargetSchema="address-fixedLength.xsd" 
              TargetSchemaRoot ="Root-Element"
              TargetType="native"
              Xsl="addr1Toaddr2.xsl"
              Type="MOVE">
          </jca:operation> 7. Edit the outbound header to look as follows
        <types>
            <schema attributeFormDefault="qualified" elementFormDefault="qualified"
                    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/"
                    xmlns="http://www.w3.org/2001/XMLSchema"
                    xmlns:FILEAPP="http://xmlns.oracle.com/pcbpel/adapter/file/">
                <element name="OutboundFileHeaderType">
                    <complexType>
                        <sequence>
                            <element name="fileName" type="string"/>
                            <element name="sourceDirectory" type="string"/>
                            <element name="sourceFileName" type="string"/>
                            <element name="targetDirectory" type="string"/>
                            <element name="targetFileName" type="string"/>                       
                        </sequence>
                    </complexType>
                </element> 
            </schema>
        </types>   8. the last trick is to have an assign between the inbound header to the outbound header partner link that copies the headers. You only need to copy the sourceDirectory and SourceGileName
        <assign name="Assign_Headers">
          <copy>
            <from variable="inboundHeader" part="inboundHeader"
                  query="/ns2:InboundFileHeaderType/ns2:fileName"/>
            <to variable="outboundHeader" part="outboundHeader"
                query="/ns2:OutboundFileHeaderType/ns2:sourceFileName"/>
          </copy>
          <copy>
            <from variable="inboundHeader" part="inboundHeader"
                  query="/ns2:InboundFileHeaderType/ns2:directory"/>
            <to variable="outboundHeader" part="outboundHeader"
                query="/ns2:OutboundFileHeaderType/ns2:sourceDirectory"/>
          </copy>
        </assign>you should be good to go. If you just want pass through then you don't need the native format set to opaque, with no XSLT
    cheers
    James

  • S1000 Data file size limit is reached in statement

    I am new to Java and was given the task to trouble shoot a java application that was written a few years ago and no longer supported. The java application creates database files the user's directory: diwdb.properties, diwdb.data, diwdb.lproperties, diwdb.script. The purpose of the application is to open a zip file and insert the files into a table in the database.
    The values that are populated in the diwdb.properties file are as follows:
    #HSQL Database Engine
    #Wed Jan 30 08:55:05 GMT 2013
    hsqldb.script_format=0
    runtime.gc_interval=0
    sql.enforce_strict_size=false
    hsqldb.cache_size_scale=8
    readonly=false
    hsqldb.nio_data_file=true
    hsqldb.cache_scale=14
    version=1.8.0
    hsqldb.default_table_type=memory
    hsqldb.cache_file_scale=1
    hsqldb.log_size=200
    modified=yes
    hsqldb.cache_version=1.7.0
    hsqldb.original_version=1.8.0
    hsqldb.compatible_version=1.8.0
    Once the databsae file gets to 2GB it brings up the error meessage 'S1000 Data file size limit is reached in statement (Insert into <tablename>......
    From searching on the itnernet it appeared that the parameter hsqldb.cache_file_scale needed to be increased & 8 was a suggested value.
    I have the distribution files (.jar & .jnlp) that are used to run the application. And I have a source directory that was found that contains java files. But I do not see any properties files to set any parameters. I was able to load both directories into NetBeans but really don't know if the files can be rebuilt for distribution as I'm not clear on what I'm doing and NetBeans shows errors in some of the directories.
    I have also tried to add parameters to the startup url: http://uknt117.uk.infores.com/DIW/DIW.jnlp?hsqldb.large_data=true?hsqldb.cache_file_scale=8 but that does not affect the application.
    I have been struggling with this for quite some time. Would greatly appreciate any assistance to help resolve this.
    Thanks!

    Thanks! But where would I run the sql statement. When anyone launches the application it creates the database files in their user directory. How would I connect to the database after that to execute the statement?
    I see the create table statements in the files I have pulled into NetBeans in both the source folder and the distribution folder. Could I add the statement there before the table is created in the jar file in the distribution folder and then re-compile it for distribution? OR would I need to add it to the file in source directory and recompile those to create a new distribution?
    Thanks!

Maybe you are looking for

  • Shut down of system using java.

    Hi All, Is there a way in java to shutdown the system closing all applications. First of all is it possible?? regards, Rajesh Vincent.

  • Automatic inverted colors when saving PDF as JPEG file

    Every time I save a pdf as an image file the colors of the image are inverted. I've done this before using Acrobat, but since I've downloaded it onto my new laptop (maybe it's because it's a newer version) it automatically inverts the image colors. H

  • Mapping of structure appearing in message Dinamically

    HI I have imported a xsd in which there are no sub structures under a given structure. But I checked the sampel data in that the data is coming as sub structure of the above mentioned structure. If i have to map data for this dinamic structure then h

  • Red Hat 6.2/8i Minium Requirements

    The 8i preinstallation guide talks about setting the kernel, shared memory, and semaphore parameters (SHMMIN, SHMMNI, SHMMAX, etc.). Can't I just leave the default values and just proceed with the install? Did everyone else mess with theirs? I only h

  • Textedit

    HI, I'm wondering if anyone can tell me how to get rid of the file name and the time on the top of the document please? Thanks!