CAP File format questions !!!

I've been trying to parse CAP files, but having trouble figuring out these values...
In Method component: what is the number of elements in "method_info methods[]" array???
in method_info: what is the size of bytecodes[] array???
in type_descriptor_info: what is the number of elements in type_desc[] array???
many thanks

See the JCVM Specifications, the size of the structure arrays u have mentioned is not specified. If you parse these files u can do it with the help of Reference location component. If you use the pointers in C it will be easy as compared to Java.

Similar Messages

  • .AVI file format question

    Upgrading from CS2 to Photoshop CS5
    I found out after the fact that in order to edit video you need CS5 Extended.
    So, I then went and returned regular and upgraded to Photoshop CS5 extended.
    (See my other thread for details, but installing the 12.01 patch is not an option at this time.)
    Try to use file open to open a .AVI file from one of my cameras and get a message of "unrecognized file format".
    Was able to import the 7 second video into layers.
    Checked support issues, and installed Quicktime 7.6.8
    Also, due to 12.01 issues, reinstalled Photoshop CS5 Extended AFTER upgraded Quicktime to 7.6.8
    Machine specs:  Toshiba Satellite P30  Intel Pentium 4 CPU 3.60 GHZ (Hyperthreading Dual Core) 2GB RAM ATI Mobility Radeon X600 Win XP Professional SP3 About 12 GB disk space available at install time.
    Note that Quicktime will open the .AVI file in question with no problems, as well as Roxio software (trying to get rid of that with CS5)

    I talked to support via phone and it appears the the problem is in installation.  The install of CS5 extended did not take over the regular install.  So, I need to start by completely uninstalling AGAIN and installed extended from scratch AGAIN.
    I did try the program mention GSPOT as well.  It says AVI codecs are installed on the machine inquestion.  I will get more informaiton tonight afte rI do the re-install and see what happens.

  • File format question h264  /Blurry MPEG 4 output

    "The codec with the best quality to size ratio is H264" was suggested for me to use when making web movies. This may be a stupid question, but is tehre any other file format (other then MPEG 4) that will play on an iPod and other digital media players. My Mpeg4 looks blurry and I really don't know why. I input h264 video into iMovie/ FC Express and the edit. When I export to MPEG 4 the video is blurry. I am only going down in physical size so pixelation is not the issue..(i think).

    You see aac and h.264 are not editing formats in the FCP world. Easiest is to convert them first. It's very easy. Go get a copy of MPEGStreamclip and convert them to something useable, like ProRes LT. Then just import them, and drop one into a timeline and let the timeline adjust to the footage. You do not have to setup one of the easy settings in order to work.

  • CAP file safety  questions?

    Hello,
    I am interested in 3 question:
    1. Is there any possibility to get the CAP file from a card.
    2. Is CAP file backward convertible to .class or .java files? I.e. is it safe enough for distribution, to avoid the retrieval of the source code?
    3. What files should be distributed for extended APIs: EXP, CAP file and stub class files? Am i right?
    I appreciate any answers and advices regarding the safety of the CAP files.
    Best regards,
    newbie.

    1. Is there any possibility to get the CAP file from a card.Yes. Use google, search on "Javacard attacks" or "javacard hacks". You will find many papers and presentations on what has been done, what works, what does not.
    My conclusions: Its possible. Its hard to do. Various people are working on it, so perhaps its getting easier. Vendors are making cards more resistant to attack, so perhaps its getting harder.
    2. Is CAP file backward convertible to .class or .java files? No, not backward compatible, or at least not easily. Some information is lost. I have not found any open source or commercial tools for this.
    See this thread: http://forum.java.sun.com/thread.jspa?threadID=5217462&tstart=0
    I.e. is it safe enough for distribution, to avoid the retrieval of the source code?Probably. It will take significant effort to reverse a CAP file all the way back to Java source that will compile and execute with the same results as the original. Probably 100's of hours of work.
    3. What files should be distributed for extended APIs: EXP, CAP file and stub class files? Am i right?At minimum the EXP and CAP. A developer has no way to use the CAP file without the EXP file. The EXP file contains all of the class, method and field names for the public methods/fields that the converter tool needs (there are no String names in the CAP file).
    Read the JavaCard Virtual Machine specification. Its very enlightening.
    Dan

  • File format question

    can anyone explain the differences in a swf file, a gif file, and a svg file? when would you use one over the other and which is smallest? I get confused about these. Will all of these take transparencies? Thanx for any help.
    red

    Well, this question cannot be answered easily. It all depends on specific use cases. Let's see:
    GIF - Bitmap format. Limited to max. 256 colors. One of those colors may be tagged to be interpreted as transparent by browsers and image viewers. May contain animation by ways of separate, discrete frames. The color palette is distributed to the animation, hence the more differnt colors are used, the more dithering will occur and the uglier it looks. als file size increases considerably, the longer the animation.
    SWF - Flash container file. Objects embedded are treated "as is", meaning they are animated procedurally while the file plays. The objects themselves can be pixel images, movie clips, vector art or Flash-internal parametric items. No limitations in color palette or duration, file size only increases the more objects are used. Since the animation must be calculated in realtime during playback, variations in speed may occur, depending on the machine performance.
    SVG - Vector based. May contain animation. Rendered on the target device, hence simialr rules as with SWF apply. Support in browsers however is very limited, so it is not widely used. Primarily used on mobile phones for icons and graphic elements (SVG tiny)
    Mylenium

  • Mac OSX file format questions

    I am using Quicken 2005 and these days I backup my accounts to my USB flash drive. In the past i backed up to zip disk or floppy. backing up to a floppy would be problematic since the Mac version has never supported multiple disk backup which the PC version even to this day still supports. And besides floppy disk access has always been slower and more problematic on the Mac for some reason.
    Okay here is my question.
    My quicken files end with a Backup-file.qdfm extension.
    But whenever I upload these files (sadly they have to be dragged an dropped with Fetch) they appear as a folder on my FTP server. So I have been using the classic version of Transmit instead of the native OSX version of Fetch to upload my Quicken backup accounts.
    My question if I ever had a major disaster (this has happened before) would the folder (what it appears to be) on my FTP server save me or should I be zipping this quicken file before I upload? I have been using Quicken since 1998 for the Mac and PC, and have thousands of bank transactions that are valuable and that I do not want to lose.
    Encase you cannot understand what I mean here is a screen shot. The file above is the Quicken 2006 file, and the one below is a older Quicken 2001 file that I uploaded when I had my Performa.
    http://johnw.freeshell.org/voicemails/screenshot.png
    Thank you,
    John

    One way to know for sure would be to download the file (folder) and open it in Quicken. Of course I would make and keep a backup on your local drive before doing this.
    Like you I have been using Quicken for many years but I back mine up to another hard drive, then I back everything on it up on a regular basis to a CD. I also use .Mac and the backup program included with it to back up my Quicken files off site. The .Mac solution is automatic, and takes place daily which is nice.
    "But whenever I upload these files (sadly they have to be dragged an dropped with Fetch)'
    Do you want to automate the process? If so, that is what Automator and Applescript are for. Surely you could write a simple script to do it for you.

  • Write to text file formatting questions

    Apologies if I am touching on a subject discussed elsewhere.  I have two issues, which I believe to be related, that I am having difficulty overcoming.  I am collecting voltage date, converting it to a temperature, and then writing the time stamp, temperature, excitation voltage, and original voltage to file.  Currently, when I write these values to file the date and time appear on one line, the temperature and voltages appear on the following line, and then there is a space before the pattern repeats.  Furthermore, before data is collected I write information to a header, and if you look at the attached .csv file, you'll see that the data is all offset one column to the left.  Any ideas how I can solve this problem?  My code probably speaks for itself, but I am very much a novice so any general insight in non-jargon terminology will be humbly accepted.  Cheers, Peter.
    Solved!
    Go to Solution.
    Attachments:
    NI-DAQ_TempString_02b.vi ‏121 KB
    test16.txt ‏2 KB

    Your problem is where you are building your data line.  Why are you using Build Array and then Inster into Array?  You don't want arrays when writing to the text file.  Each element of an array will be a different line.  What you really want is Concatinate String.  Use the Concatinate String to build a string with your timestamp, a comma, and your "spreadsheet string" that contains your data.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • 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!!

  • CAP file error

    Hello !!
    I'm using the command verifycap verify the integrity of a CAP file and export files. the problem is that the command returns the following error:
    Error: In class descriptor Descriptor[1]:
    Field number 1:
    Inconsistency on class reference in instance field
    I've seen the docs related to the CAP file format (Java Card 2.1.1 Virtual Machine Specification), but I haven�t found the solution for this problem.
    I would appreciate some help!
    Thanks, Sidney

    There was a bug in cJDK 2.1.1 converter, in descriptor
    component. It was fixed in 2.1.2. I think that you are
    trying to test 'old' cap file.
    Can this error be related to CAP file errormentioned before?
    No, it can't. The descriptor component is not
    installed on card at all. The installer found that you
    are trying to install the package with duplicate AID,
    i.e. card already contains package with this AID.Hello Alb!!
    Thank you for helping me, but I guess the problem's not what you mentioned, cause I'm using the 2.1.2 version. About the duplicate package AID error, the problem can't be an already existing package, cause I haven't downloaded the CAP file to a card yet, I'm just testing it with the jcwde and apdutool. And there's more: even so, I've changed the package AID, and the error succeeded.
    So once more, do you have any suggestion?
    Sidney

  • Question about TIFF file format

    None of the forums seems to be right for my question, this one seems the best suited...
    Why does Mac still use the TIFF file format for things like Grab, etc.? JPG is a more commonly used format, but I do understand why the TIFF file format is better from a quality perspective.
    I'm just curious at my end, that's all. I don't mind using TIFF.

    But, if I understand things correctly, if you now select a JPG of zero compression, it's evolved into a potentially lossless file.
    Close, but not quite. If you start with a TIFF and save it as a maximum quality JPEG (level 12), then lay one on top of the other in Photoshop and zoom way in, you can find a fair amount of pixels that have changed values. Not anywhere near enough to notice any difference in a printout or visual color. They still do take up less space than the original TIFF.
    Of course, if you'd rather the image didn't change one iota and still save space, then save the TIFF with LZW compression.

  • Two questions about the PSD file format specicaition

    I'm a programmer dealing with a project to parse PSD files. When reading the official file format specification, I found that some fields of the file are not clarified:
    1. There is a rectangle structure containing 4 fields: top, left, buttom, right. I wanna know whether these 4 fields can be negative values and is there a rule that the buttom shoud be larger than the top and the right shoud be larger than the left
    2. The PSD file contains a color mode section. But if the color mode is RGB, the color mode section contians no data but a 4-byte length field whose value is set to 0. This is true for files in RGB mode 8-bit channel. But after convert the files to RGB mode 32-bit channel using photoshop, the whole color mode section is no long exist.
    These two questions may be somehow technical, I would be thankful if someone can give me a hand.

    1) was covered in the documentation at one time.  Yes, many of them can be negative, that's why they're signed values.  Valid rectangles will have the bottom greater than the top, and the right greater than the left. But you can also have empty rectangles, and sometimes invalid rectangles (because the values don't matter).
    2) Not sure what you're asking...  color mode is just a single enumeration for RGB, CMYK, etc.

  • Can you import gift file format as pretest questions?

    I am trying to take a bank of questions that I have in gift format and get them into cp8 on windows.
    It's easy enough to import the file but they all come in as "graded" questions, and half of them are meant for a pretest.
    I can go to each one and switch to a "survey" type after importing, but the option for "pretest" is grayed out.
    Anyone know of a workaround?
    Is cp8 just not able to import gift formatted questions for pre-tests?

    Not possible AFAIK. You can create your own pretest slides (the default pretest has a lot of strict design rules like being all together at the beginning, all navigation is eliminated etc), by not adding the score of those pretest slides to the Total score. It is perfectly possible to calculate the result of the pretest, showing it, and decide based on that result.
    Intermediate Score Slides - Captivate blog

  • Question about Audiobook file format

    Can Audiobooks be in .mp3 format or are they in other file format? I am using iTunes 6.01.4.2
    I have the Bible on 6 CDs, in .mp3 format.
    I'd like to be able to add them to the iTunes Library
    as Audiobooks if this is possible or do I have to add them as I would a music file?

    The following information on audiobooks is from ilounge.com. I believe there may be some useful information for you at the bottom of the page. Hope this helps!

  • REPEAT Question: ILLEGAL FILE FORMAT cannot open file. what is the reason for this?

    every day, GB crashes,or locks up when i am saving...i use IK Multimedia plug ins...and i save fequently..
    BUT once this hits a version, all of the saves are not accessible...it wont open, ILLEGAL FILE FORMAT...
    it says it may be trunicated...what cause this?
    its been going on for a year...i need it to stop...or for someone to tell me its a third party plugin issue with GB...something for me to chew on...
    i have sent in error reports, talked to some folks...no avail.
    HELP. i hate this.
    fyi, if a song file i save is....for example...140MB...at successive version i am saving(changin file name each time)....the one that gets corrupted will show something like 117MB....so something is MISSING...what they heck???
    HELP HELP>

    I have an imac11...using the os right prior to mav...I don't want to install that yet.
    The last MacOS X before Mavericks would be  Mt. Lion, MacOS X 10.8.5. Is that, what you are using? You can see that, if you click the -menu if the upper left corner of your screen, and select "About this Mac".
    The latest GarageBand compatible with Mt. Lion is GarageBand '11, version 6.0.5. You can see that in the GarageBand menu, GarageBAnd > About GarageBand.
    Where are you saving your projects? On an external drive? How is the drive formatted (file system, and how is the drive connected?

  • What file formats can Fireworks Import and Export?

    the basics

    welcome moremusicplease to the -board...
    you should let repair your sticking shift-key soon, because in the iNet all-caps means SHOUTING...
    iM's internal file format is "dv", preferable in a mov container or as dv-stream.. 1h video in dv = 13GB .. happy downloading...-
    any other codecs are mostly playback-only codecs => loss of pic quality + needs conversion...
    a good compromise in loss-due-to-conversion and file-size is a h264 encoding...
    your 2nd question......
    * DVDxDV (free trial, 25$, Pro: 90$)
    * Apple mpeg2 plugin (20$) + Streamclip (free)
    * Cinematize >60$
    * Mpeg2Works >25$ + Apple plug-in
    * Toast6/7 allows converting to dv/insert dvd, hit apple-k
    * connect a miniDV Camcorder with analogue input to a DVD-player and transfer disk to tape/use as converter

Maybe you are looking for

  • Connection Reset issue in Weblogic 8.1

    Hi, We have an application running on weblogic 8.1. Please let men explain the steps that we carried out: 1. A new user was being enrolled through the applciation. 2. To make the connection object the value of the properties DriverClass, ConnectionUR

  • How to re-enabling Automatic Waveform Overview

    Hi Little trick ... To enabling Automatic refresh overwiew for audio files Close Logic 7/8/9 Go to /your home/Library/preferences/ search apple.Logic.pro.plist and delete . start logic and try to record a new audio... bye. note: This action delete al

  • Print Server 2012 R2

    Hi, I am planning to implementation of Print server 2012 r2, but I am little confusion, below futures are available in 2012 r2? Machine Name User Name Document Name Date /Time Printer Name Page count  Limitation of printing  Thanks,

  • Skype 6 install, unable to uninstall 5.10.0.116

    Unable to sign to skype from iphone 6 running IOS 8.4 Getting error "Unable to sign in, please restart your device and try again. (19)

  • Custom class trouble

    I created two custom classes for a project. The excerpt of code attached refers to the event handler from my first class. In the event handler it creates a new instance of my second class. This works fine. Unfortunately I cannot figure out how to mak