Help needed in upload command

Can anyone please help me in finding out the meaning of the field values of second APDU
What I try to say is how the value " C4 82 03 81" is calculated. I am able to figure out rest of the values of the upload command.
cm> upload -b 250 "C:\....\app\javacard\app.cap"
=> 80 E6 02 00 13 06 73 4D 41 74 ...00 03 00 00 00 00 00 00 00 .........
(1769 usec)
<= 00 90 00 ...
Status: No Error
=> 80 E8 00 00 FA C4 82 03 81
And if any one knows how the enc of the message takes place. Using SCP -02 i am able to generate CMAC but encryption of data not.

The JCShell upload command includes two consecutive GlobalPlatform APDU commands: INSTALL [for load] and following multiple LOAD commands. It shall be seen as a fixed sequence. The LOAD command contains parts of the CAP file. The component order is defined in the Java Card Virtual Machine Specification, as well as the CAP structure itself. So what you see in the second command is the LOAD command, and the first component to be loaded (see JCVM 2.2.1/2).
Encryption according to SCP02 (C_ENC + C_MAC) is specified in eg GP2.1.1, Appendix E SCP02. You will find there the algorithm.

Similar Messages

  • Help needed with DATAEXPORT command

    Hello,
    I'm looking for some help with the DATAEXPORT command. It was working for us previously and recently it started giving us problems. Now when I run a DATAEXPORT within a calcscript in order to get a subset of the data, the exported file contains 13, sometimes 14 data columns rather than 12 data columns (one for each month)
    When I perfom a full data export the export file is perfect (select the database, right click and select “Export”, enter file path and name, select ‘Level 0 data blocks” and “Export in column format” and click ok.)
    Here's the Calc script that I'm using:
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    SET CALCPARALLEL 3;
    SET DATAEXPORTOPTIONS
    DataExportLevel LEVEL0;
    DataExportDynamicCalc OFF;
    DataExportColFormat ON;
    DataExportDimHeader ON;
    DataExportOverwriteFile ON;
    FIX(
    @Relative("Clients",0),
    @Relative("TOTLOC",0),
    @Relative("LOB",0),
    @Relative("Project",0),
    @Relative("Entities",0),
    @Relative("Dept",0),
    "USD",
    "SCN_Actual",
    "SCN_Plan",
    "Ver_Final",
    @Relative("ACC_GAAPPL",0),
    @Relative("ACC_MGMTPL",0),
    "FY08",
    Jan:Dec
    DATAEXPORT "File" "!" "X:\Hyperion_Share\Hyperion_PRD\Planning\exp_rpts_test3.txt" "#MI" ;
    ENDFIX
    I'm hoping someone has seen this before and suggest a solution.
    Thanks,
    Chris

    Hi Chris
    I noticed something similar when I first tested the DATAEXPORT calc script command but couldn't get to the bottom of the cause.
    It seemed to be an issue where the first month(s) were #Mi but later months had data, e.g. Jan:Mar = #Mi, Apr = 10, May = 20 etc.
    After a certain point in the export file data didn't align correctly when compared to the export in column format as you mention, in fact a number of rows that should have had data returned nothing and some rows existed where there was no corresponding data in the database. I remember noticing that I never had more than 13 data columns. This happened to correspond to the number of level0 time periods I had (I had 'BegBalance' as well as Jan:Dec).
    I did a test on exporting all level0 time periods, forcing it to have 13 columns one for each level0 time period and it worked and matched the export in column format.
    Fortunately for me the client changed the requirement and only wanted the total for the year exported so I never quite got to the bottom of it but hope that it helps you.
    Stuart Game
    www.analitica.co.uk

  • Help needed to upload and download

    i know the client's path of a file and i want to design a web page in jsp to upload this file into server and also download a file from server to a client m/c(the client should not specify the path) Help me please by giving the code.

    Hi,
    You cannot directly upload a file from Client machine even if you know the exact harddisk location of the file. Java does not allow this. You either need to use one of the following:
    1. Multipart Form Upload
    2. Signed Applet to upload the file.
    Mail us if you need more help.
    Thanks and regards,
    Pazhanikanthan. P

  • Help needed when uploading albums to iTunes

    Hi (I may have just put this same post on the wrong forum):
    I often upload my CD's into iTunes, but sometimes all the songs don't appear together on the same album. Its always the song by the artist, featuring another artist, eg. "Foxy Brown featuring Method Man" - these songs appear on iTunes seperate from the album, which they should be in.
    How can I get these tracks to appear in the correct albums? Can I do it after they are in itunes or do I need to delete the album and upload it again, but differently?
    Thanks in advance.

    Concentrate on one album at a time.
    Find and highlight the song with the guest artist.
    Then select File/Get Info/Info and cut the featured artist from the album's artist box and paste it into the song's title box after the song title. So now, it reads as "<song title> feat. <guest artist>". (Don't forget to cut the space after the artist name and before the featured artist name.)
    Repeat this for each song with a guest artist.
    Now, each song on the album should be left with only the main artist in the artist box. Then the album will group as one album.
    Alternatively, for an even quicker method;
    Highlight the complete album
    File/Get Info/Info>Artist and type in the one artist that you want for that album.
    You will of course, end up without a note of the guest artist on any of those songs.

  • Help needed to upload or download

    I know the client's path of a file I want to upload this files to the server machine with jsp/applet/servlet/network socket or other way help me please with code soon.
    And also download in the reverse way.
    please help me.

    Check out the Apache fileupload utility.

  • Help needed with uploading a website [was: Stuck at the last hurdle...]

    Hiya, my  tutor covered all the basics at the web design course I wen on, except how to actually get the website onto the internet. I have no idea what to do from here. I've reserved a domain name at 1and1 but can't see any pointers on how to get the website up.
    On Dreamweavers 'configure server' window I don't have any idea what goes in there.
    I don't know what goes in:
    Name:
    Access type:
    FTP host:
    Host directory:
    Login
    Password
    (the three tabs underneath)
    or the URL prefix
    Please could someone guide me through what to do or point me to a tutorial?
    [Subject line edited for clarity by moderator]

    Either you have CS4 or You are in "basic" setup. I use "Advanced" because I have been doing this for a while and I do know the Advanced Steeings:
    In Local Info, you have the following:
    Site Name: mysite
    Local Root folder: /Users/username/sites/mysite
    Default images folder: /Users/username/sites/mysite/images
    Links relative to: Document
    HTTP address: http://yourdomain.com/public_html/
    Case-sensitive links: (unchecked)
    Cache: Enable cache checked.
    In Remote Info, you have the following:
    Access: FTP
    FTP Host: http://yourdomain.com/
    Host directory: /public_html/
    Login: the login given you by your hosting provider
    Password: the password given you by your hosting provider
    Use Passive FTP (sometimes checked, sometimes not -- depends on the results of the test.
    Use IPv6 transfer mode: (usually unchecked -- for now)
    Use firewall (usually unchecked)
    Use Secure FTP (SFTP) checked if possible, if not, leave unchecked based on the results of the test.
    Don't touch Server Compatibility...
    You want to check Maintain synchronization information and leave automatically upload files to server and enable file check in and check out unchecked..
    When you signed up for 1&1, they will have given you the information you need for your login, password, host directory (which is usually /public_html) and the name of the ftp host if it is different from the name of the domain you created. I would imagine this would be in an email they sent you.

  • Urgent help needed---File upload using struts

    can anyone helpme out on how to perform FileUpload operation using struts
    deepak

    Hi,
    You should use<html:file> tag for uploading file through struts. And make sure that in form bean u need to manipulate this property with FormFile type. provide getter and setter in form bean for this one and manipulate it in your action class.
    let me know if u have any further issue..
    Tushar

  • Help needed in upload

    Hi,
    iam using call transaction
    call transaction 'Ztest' using i_bdcdata
    mode 'N'messages into i_bdcmsgcoll.
    when the data in the text file is correct, what would be the message in i_bdcmsgcoll
    because at the end of upload program i have to write the number of records uploaded succesfully and number of records rejected and the reason.
    i am getting the mesages types for error record ( the error messages which i get when i go to module pool and do it manually),so i list that reason,
    but for sucess record , i don't any message,but when i do it manually in the module pool and  save it, i get a message saying data saved ,but i am not getting that message in i_bdcmsgcoll for correct record.
    hope i'm clear
    thanks

    Hi,
      Usually, when a record is successfully created "Record created successfully" or a similar statement will be populated in the BDCMSGCOLL table.
    The type of such messages would 'S'. If there is an error in any of the records, then the error message will be populated with Message type 'E'.
    Follow the below procedure to populate the messages.
    LOOP AT <BDCDATA>.
    initially clear I_BDCMSGCOLL.
    call transaction 'Ztest' using i_bdcdata
    mode 'N'messages into i_bdcmsgcoll.
    if sy-subrc = 0.
    loop at I_BDCMSGCOLL.
      append lines of i_BDCMSGCOLL to I_SUCCESS
    else.
      append lines of I_BDCMSGCOLL to I_ERROR
    endif.
    ENDLOOP.
    Now the two tables contain success and error messages respectively.
    manipulate the tables as per your requirement.
    Regards,
    Vara

  • Help needed after uploading photos to my PC and being unable to rotate images and video

    HELP!!
    When I connect my iphone to my PC it imports all pics and video. Then when I go into the folder located where these images are located in my C drive and I want to rotate a photo (and video) that was taken upright on my iphone, I get a warning message stating "you cannot rotate this image. The file might be in use or open in another program or the file or folder might be read only"
    How do I edit and rotate these photos and videos so I can actually use them on my PC???
    Thank you!!!

    Yes, due to Incomplete Software Update on your iPhone your Device is now in Recovery Mode and you cannot take a Backup now. But if you have taken a backup earlier then you can Restore that backup on your iPhone after you Reset your iPhone to Factory Settings.

  • Help needed for java command

    Hi, everyone.
    I am new in java.
    I try to unstand one command in unix cron job as following:
    java -Xmx256m -classpath .:./jse.jar:./commons-codec.jar com.etsi.jse.run.usa.apartments.SearchingWithCity $*
    i can't figure out what "$*" stands for.
    If any suggestions, thanks a lot

    > i can't figure out what "$*" stands for.
    It's a command line argument that gets used to initialize the String[] array passed to the main method. My guess is that it's a regular expression-ish search string with a "wildcard" used by the program to find apartments within particular city, judging by the name of the package and class.
    ~

  • J2me multipart file upload-  Help Needed

    package com.mpbx;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.io.*;
    import java.io.*;
    public class PostFile extends MIDlet implements Runnable, CommandListener{
        private final String FILE = "/image.jpg";
        private final String URL = "http://localhost/post.php"; // change this to a valit page.
        private final String CrLf = "\r\n";
        private Form form = null;
        private Gauge gauge = null;
        private Command exitCommand;
        private Command uploadCommand;
        public PostFile(){
            form = new Form("Upload File");
            gauge = new Gauge("Progress:", true, 100, 0);
            form.append(gauge);
            exitCommand = new Command("Exit", Command.EXIT, 0);
            uploadCommand = new Command("Upload", Command.SCREEN, 0);
            form.addCommand(exitCommand);
            form.addCommand(uploadCommand);
            form.setCommandListener(this);
        public void startApp() {
            Display.getDisplay(this).setCurrent(form);
        public void pauseApp() {
        public void destroyApp(boolean unconditional) {
        private void progress(int total, int current){
            int percent = (int) (100 * ((float)current/(float)total));
            gauge.setValue(percent);
        public void run() {
            httpConn();
        private void httpConn(){
            HttpConnection conn = null;
            OutputStream os = null;
            InputStream is = null;
            try{
                System.out.println("url:" + URL);
                conn = (HttpConnection)Connector.open(URL);
                conn.setRequestMethod(HttpConnection.POST);
                String postData = "";
                InputStream imgIs = getClass().getResourceAsStream(FILE);
            byte []imgData = new byte[imgIs.available()];
               imgIs.read(imgData);
                String message1 = "";
                message1 += "-----------------------------4664151417711" + CrLf;
                message1 += "Content-Disposition: form-data; name=\"uploadedfile\"; filename=\"" + FILE + "\"" + CrLf;
                message1 += "Content-Type: image/jpeg" + CrLf;
                message1 += CrLf;
                // the image is sent between the messages ni the multipart message.
                String message2 = "";
                message2 += CrLf + "-----------------------------4664151417711--" + CrLf;              
                conn.setRequestProperty("Content-Type", "multipart/form-data; boundary=---------------------------4664151417711");
                // might not need to specify the content-length when sending chunked data.
                // conn.setRequestProperty("Content-Length", String.valueOf((message1.length() + message2.length() + imgData.length)));
                System.out.println("open os");
                os = conn.openOutputStream();
                System.out.println(message1);
                os.write(message1.getBytes());
                // SEND THE IMAGE
                int index = 0;
                int size = 1024;
                do{
                    System.out.println("write:" + index);
                    if((index+size)>imgData.length){
                        size = imgData.length - index;
                    os.write(imgData, index, size);
                    index+=size;
                    progress(imgData.length, index); // update the progress bar.
                }while(index<imgData.length);
                System.out.println("written:" + index);           
                System.out.println(message2);
                os.write(message2.getBytes());
                os.flush();
                System.out.println("open is");
                is = conn.openInputStream();
                char buff = 512;
                int len;
                byte []data = new byte[buff];
                do{
                    System.out.println("READ");
                    len = is.read(data);
                    if(len > 0){
                        System.out.println(new String(data, 0, len));
                }while(len>0);
                System.out.println("DONE");
            }catch(Exception e){
                e.printStackTrace();
            }finally{
                System.out.println("Close connection");
                try{
                    os.close();
                }catch(Exception e){}
                try{
                    is.close();
                }catch(Exception e){}
                try{
                    conn.close();           
                }catch(Exception e){}
        public void commandAction(javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable displayable) {
            if(command == exitCommand){
                this.notifyDestroyed();
            }else if(command == uploadCommand){
                new Thread(this).start();
    }Running this yields the error below...Can someone suggest me. whats the problem.
    url:http://localhost/post.php
    java.lang.NullPointerException
            at com.mpbx.PostFile.httpConn(PostFile.java:85)
            at com.mpbx.PostFile.run(PostFile.java:68)
    Close connection

    I also faced the same problem. To make this code work you will have to include the image.jpg in the jar. To do that, copy the image file in the src directory inside your project folder (if you are using netbeans) and then build the project.
    Remember, the web server should be running in background.

  • Help needed with header and upload onto business catalyst

    Can someone help with a problem over a header please?
    I have inserted a rectangle with a jpeg image in  background, in the 'header' section, underneath the menu. It comes up fine on most pages when previsualised, going right to the side of the screen, but stops just before the edge on certain pages. I have double checked that I have placed it in the right place in relation to the guides on the page.
    That's one problem.
    The second problem is that I tried to upload onto business catalyst, which got to 60% and refused to go any further, saying it couldn't find the header picture, giving the title and then u4833-3.fr.png. The picture is in the right folder I have double checked. And it isn't a png. Does it have to be ?
    And the third problem is that I got an email following my upload from business catalyst in Swedish. I am living in France.
    Can anyone help ? Thanks.

    Thanks for replying,
    How can I check the preview in other browsers before I publish a provisional site with BC?
    The rectangle width issue happens on certain pages but not others. The Welecom page is fine when the menu is active, also the contact page, but others are slightly too narrow. Changing the menu spacing doesn’t help - I was already on uniform but tried changing to regular and back.
    In design mode the rectangle is set to the edge of the browser, that’s 100%browser width right?
    Re BC I have about 200 images on 24 different pages and it seems to be having difficulty uploading some of them. But it has managed a couple I named with spaces but not others I named with just one name.
    Is there an issue on size of pictures ? If I need to replace is there a quick way to rename and relink or do I have to insert the photos all over again?
    I’m a novice with Muse with an ambitious site !
    Thanks for your help.
    Mary Featherstone
    Envoyé depuis Courrier Windows
    De : Sanjit_Das
    Envoyé : vendredi 14 février 2014 22:15
    À : MFeatherstone
    Re: Help needed with header and upload onto business catalyst
    created by Sanjit_Das in Help with using Adobe Muse CC - View the full discussion 
    Hi
    Answering the questions :
    - Have you checked the preview in Muse and also in other browsers ?
    - Does the rectangle width issue happens when menu is active , or in any specific state , Try to change the menu with uniform spacing and then check.
    - In design view the rectangle is set to 100% browser width ?
    With publishing :
    - Please try to rename the image file and then relink
    - If it happens with other images as well , see if all the image names includes strange characters or spaces.
    - Try again to publish
    With e-mail from BC :
    - Under preferences , please check the country selected.
    - If you have previously created partner account in BC and selected country and language then it would follow that, please check that.
    Thanks,
    Sanjit
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6121942#6121942
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6121942#6121942
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6121942#6121942. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Need help with Set-ADUser command

    I need a little help with the following command. Im new to PS and I have found this command but it is only one user at a time. I need to be able to update ALL users in AD.
    My goal is this. Someone before me set all Users Home numbers to 1234567899 and I need to remove that and leave it blank. The command below allows me to do that but only one user at a time by entering their SAMID.
    Is there a way to do this for everyone in AD ?
    Set-AdUser –Identity SAMID –HomePhone $NULL

    Yeah sure - 
    Get-Aduser -filter * -properties SamaccountName | Select SamAccountName | % {Set-Aduser -identity $_.SamaccountName -HomePhone $null}

  • Help needed on CSV file uploading

    Hi All,
    I need to upload a csv file in the table through file browse button.For that i have created the below process and function.This method is working perfectly fine when the file size is small.But i need to upload the file of 16 MB size and when i try to upload that file it gives error wwv_flow.accept error.Any expert of APEX please help me out on this error.As i am very new to APEX and i need to get this done as early as possible.Please provide any solution ,i will be really grateful to the person.
    function
    create or replace function hex_to_decimal
    --this function is based on one by Connor McDonald
    --http://www.jlcomp.demon.co.uk/faq/base_convert.html
    ( p_hex_str in varchar2 ) return number
    is
    v_dec number;
    v_hex varchar2(16) := '0123456789ABCDEF';
    begin
    v_dec := 0;
    for indx in 1 .. length(p_hex_str)
    loop
    v_dec := v_dec * 16 + instr(v_hex,upper(substr(p_hex_str,indx,1)))-1;
    end loop;
    return v_dec;
    end hex_to_decimal;
    Process
    DECLARE
    v_blob_data BLOB;
    v_blob_len NUMBER;
    v_position NUMBER;
    v_clob_data CLOB := 'anything';
    dest_offset NUMBER := 1;
    src_offset NUMBER := 1;
    blob_csid NUMBER := dbms_lob.default_csid;
    lang_ctx INTEGER := dbms_lob.default_lang_ctx;
    warning INTEGER;
    v_raw_chunk RAW(10000);
    v_char CHAR(1);
    c_chunk_len number := 1;
    v_line VARCHAR2 (32767) := NULL;
    v_data_array wwv_flow_global.vc_arr2;
    v_rows number;
    v_sr_no number := 1;
    BEGIN
    delete from scg_recievables2;
    -- Read data from wwv_flow_files
    select blob_content into v_blob_data
    from wwv_flow_files
    where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USER)
    and id = (select max(id) from wwv_flow_files where updated_by = :APP_USER);
    v_blob_len := dbms_lob.getlength(v_blob_data);
    v_position := 1;
    -- Read and convert binary to char
    WHILE ( v_position <= v_blob_len ) LOOP
    dbms_lob.converttoclob(v_clob_data, v_blob_data, v_blob_len, dest_offset,src_offset,blob_csid,lang_ctx,warning);
    v_char := dbms_lob.getlength(v_clob_data);
    v_line := v_line || v_char;
    v_position := v_position + c_chunk_len;
    -- When a whole line is retrieved </span>
    IF v_char = CHR(10) THEN
    -- Convert comma to : to use wwv_flow_utilities
    v_line := REPLACE (v_line, ';', ':');
    -- Convert each column separated by : into array of data
    v_data_array := wwv_flow_utilities.string_to_table (v_line);
    if IsNumber(substr(v_data_array(9),1,1)) = 1 then
    v_data_array(9) := substr(v_data_array(9),1,11);
    else
    v_data_array(9) := '01-JAN-1900';
    end if;
    v_data_array(9) := NVL(v_data_array(9),'01-JAN-1900');
    -- Insert data into target table
    EXECUTE IMMEDIATE 'insert into scg_recievables2 (Account_receivable_number, the_account_number, bill_history_tran, service_number, item_type, the_amount_billed, the_remaining_amount,source_of_payment)
    values (:1,:2,:3,:4,:5,:6,:7,:8,:9)'
    USING
    v_data_array(1),
    v_data_array(2),
    v_data_array(3),
    v_data_array(4),
    v_data_array(5),
    v_data_array(6),
    v_data_array(7),
    v_data_array(8);
    -- Clear out
    v_line := NULL;
    v_sr_no := v_sr_no + 1;
    END IF;
    END LOOP;
    END;

    You are probably timing out with your web server. Check the server logs to see if there are any errors there..
    Thank you,
    Tony Miller
    Webster, TX
    A lady came up to me on the street, pointed at my suede jacket and said "Do you know a cow was murdered to make that jacket?"
    "I didn't know there were any witnesses", I replied " Now I'll have to kill you too"

  • Need help in the below command excution

    Hi Champs,
    Can any one help with the below command, It is not working.
    Get-CsUser | Where-Object {$_.dialplan -eq "USDAL"} | Grant-CsLocationPolicy -PolicyName "Dallas Location Policy"
    Regards
    Vijendhar

    You could try something like: 
    $userlist = Get-CsUser -ResultSize Unlimited
    foreach ($user in $userlist)
    if ($user.dialplan -eq $Null)
    $pool = (Get-csdialplan | Where-Object {$_.Identity -like ("*" + $user.RegistrarPool)})
    if ($pool.length -ge "1") {write-host ("Pool simple name: " + $pool.simplename + ", Identity: " + $pool.identity)}
    if (($pool.simplename -eq "USDal") -or ($pool.identity -eq "USDal"))
    Write-host "Please Grant location policy to: $user.Displayname"
    # Get-csuser $user.identity | Grant-CsLocationPolicy -PolicyName "Dallas Location Policy"
    $pool = $Null
    Use at your own risk as I haven't had a chance to test, I have commented out the grant so you can test prior to changes.
    Please mark posts as answers/helpful if it answers your question.
    Blog
    Lync Validator - Used to assist in the validation and documentation of Lync Server 2013.

Maybe you are looking for