How to get more than 256 bytes data

hello.
I use Schlumberger 32K Card�iJava Card 2.1�j.
Please tell me how to get more than 256 bytes data from the applet in the card!!
According to JCRE specification, need to use Get Response Command.
What is Get Response command?
Do I have to write processing of Get Response command to an applet?
Or JCRE processes Get Response command?
If knows, please tell me about!!
Thanks.

Thanks for your response!!
I understand that I have to write processing of Get Response command to an applet.
But case of Schlumberger 32K card, when host send Get Response command to an applet, card reply 6F-00!?
I'm investigating now, and it seems that response is returned before applet processes Get Response command(CLA = 00, INS = C0).
Do JCRE perform the process of Get Response command?

Similar Messages

  • How to insert more than 32k xml data into oracle clob column

    how to insert more than 32k xml data into oracle clob column.
    xml data is coming from java front end
    if we cannot use clob than what are the different options available

    Are you facing any issue with my code?
    String lateral size error will come when you try to insert the full xml in string format.
    public static boolean writeCLOBData(String tableName, String id, String columnName, String strContents) throws DataAccessException{
      boolean isUpdated = true;
      Connection connection = null;
      try {
      connection = ConnectionManager.getConnection ();
      //connection.setAutoCommit ( false );
      PreparedStatement PREPARE_STATEMENT = null;
      String sqlQuery = "UPDATE " + tableName + " SET " + columnName + "  = ?  WHERE ID =" + id;
      PREPARE_STATEMENT = connection.prepareStatement ( sqlQuery );
      // converting string to reader stream
      Reader reader = new StringReader ( strContents );
      PREPARE_STATEMENT.setClob ( 1, reader );
      // return false after updating the clob data to DB
      isUpdated = PREPARE_STATEMENT.execute ();
      PREPARE_STATEMENT.close ();
      } catch ( SQLException e ) {
      e.printStackTrace ();
      finally{
      return isUpdated;
    Try this JAVA code.

  • How to encrypt more than 117 bytes with RSA?

    Hi there,
    I am struggling to encrypt more than 117 bytes of data with a 1024 bit RSA key.
    If I try to encrypt (write to my OutputStreamWriter) 118 Bytes ("A"s) or more, the file I am writing to is just empty and I get an exception whe trying to read it.
    I know the encryptable bytes (blocksize) are related to the key length: blocksize = keylength / 8 -11
    I also know RSA encryption of large files is discouraged, because it is like 100x slower than for instance AES and was originally only intended to exchange symmetric keys.
    Still I need to be able to asymmetrically encrypt at least 5kb of Data.
    I am out of ideas here and have no understanding of why the block size is limited (i know from hours of "googling" that it is limited as described above though).
    So, I would be very glad If somebody could point out a way how I could encrypt more than 117 bytes (without using a longer key of course).
    import java.io.FileInputStream;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.io.FileOutputStream;
    import java.io.Reader;
    import java.io.Writer;
    import java.io.OutputStreamWriter;
    import java.security.PublicKey;
    import java.io.IOException;
    import java.security.InvalidKeyException;
    import java.security.KeyPair;
    import java.security.KeyPairGenerator;
    import java.security.NoSuchAlgorithmException;
    import java.security.PrivateKey;
    import javax.crypto.*;
    public class strchrbty {
         public static void main(String[] args) {
              //generate Keys
              PublicKey publicKey = null;
              PrivateKey privateKey = null;
              try {
                   KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA");
                   kpg.initialize(1024);
                   KeyPair kp = kpg.generateKeyPair();
                   publicKey = kp.getPublic();
                   privateKey = kp.getPrivate();
              } catch (NoSuchAlgorithmException e) {
                   e.printStackTrace();
              //------ENCODE------
              try {
                  //initialize cipher
                  Cipher cipher = Cipher.getInstance("RSA");  
                   cipher.init(Cipher.ENCRYPT_MODE, publicKey);   
                   OutputStream cos = new CipherOutputStream(new FileOutputStream("c:\\test.txt"), cipher);
                  Writer out = new OutputStreamWriter(cos);
                  // 1024 bit (key length) / 8 bytes - 11 bytes padding = 117 Bytes Data.
                  //  for 118 Bytes (or more) Data: c:\\test.txt is empty annd no Data is read.
                  for(int i = 0; i<117; i++) {
                       out.write("A");
                  out.close();
                  cos.close();
             } catch (InvalidKeyException e) {
                  e.printStackTrace();      
             } catch (NoSuchPaddingException e) {
                  e.printStackTrace();           
             } catch (NoSuchAlgorithmException e) {
                  e.printStackTrace();      
             } catch (IOException e) {
                  e.printStackTrace();
             //------DECODE------
             try {
                  StringBuffer buf = new StringBuffer();
                  Cipher cipher2 = Cipher.getInstance("RSA"); 
                  cipher2.init(Cipher.DECRYPT_MODE, privateKey);
                  //read char-wise
                  InputStream cis = new CipherInputStream(new FileInputStream("c:\\test.txt"), cipher2);
                  Reader in = new InputStreamReader(cis);
                  for(int c = in.read(); c != -1; c = in.read()) {
                    buf.append((char)c);
                  //output
                  System.out.println(buf.toString());
                  in.close();
                  cis.close();
              } catch (InvalidKeyException e) {
                  e.printStackTrace();      
             } catch (NoSuchPaddingException e) {
                  e.printStackTrace();           
             } catch (NoSuchAlgorithmException e) {
                  e.printStackTrace();      
              } catch(IOException e) {
                 e.printStackTrace();
    }Regards.
    Edited by: junghansmega on Sep 10, 2008 3:41 PM
    Sorry about the bad autoformating.... It only occurrs in here, in my eclipse it looks fine =(

    junghansmega wrote:
    Hi there,
    I am struggling to encrypt more than 117 bytes of data with a 1024 bit RSA key.
    If I try to encrypt (write to my OutputStreamWriter) 118 Bytes ("A"s) or more, the file I am writing to is just empty and I get an exception whe trying to read it.
    Good, it should be painful.
    >
    Still I need to be able to asymmetrically encrypt at least 5kb of Data.
    In this forum, 99.999% of the time this kind of claim is due to a lack of understanding of the role of public key cryptography.
    I am out of ideas here and have no understanding of why the block size is limited (i know from hours of "googling" that it is limited as described above though).
    It should not be difficult to break up the input into 117 byte chunks and encrypt each chunk through a newly initted cipher object. Of course you will have to be very careful in properly encoding the output. You might naively think that the output is always 128 bytes, but is that true? Might it be 127 bytes sometimes? Maybe even 126 bytes?

  • How To Get more than one Return Values in LOV ADF

    In ADF LOV, I can get only one return value;
    How can I Get more than one values like in Oracle Form?
    SomeOne can help me?
    Thanks

    you may add more <set> tag like the following:
    <event name="lovSelect">
    <set property="inputValue" value="${bindings.Id.inputValue}" target="${data.work_workBusinessViewUIModel.buyCompanyId}"/>
    </event>
    or you can implement your Action

  • How to update more than one Bank data in LSMW using recording

    Hi friends,
    please let me know how can we upload more than one bank data for vendore master in LSMW, and i am Using Recording and i have to use that.
    thanks a lot.
    Regards,
    veeru.

    Hi
    I have used the direct input but, there are address fields missing in the direct input like, SORT2, MOB_NUMBER, SMTP_ADDR. these fields.
    when i see the documentation for direct input, it says for additional address you need to use another BAPI. but here the problem is we are using internal numbering for vendor, so how to link the created vendor and the address uploaded to correct vendor.
    thanks a lot,.

  • How to get more than 300 results for a search

    Hi all,
    When we search for something in a peoplesoft, we get 300 default results right.
    Is there a way we can change that to 500 or 600 or any.
    Please help me.
    Thank you,
    Bye.

    I heard that we have to do some settings in psappserv.cfg file to get more than 300 rows in a search. Is that true?
    Please help me.
    Thank you,
    Bye.

  • How to get more than 2 squares in Genius Mixes?

    I have iTunes 9 and when I do Genius Mixes I get only 2 boxes when it says you get 12. How can I do this? Do I need to get more music?

    Hi shraddha,
    The Jet OLE DB provider reads a registry key to determine how many rows are to be read to guess the type of the source column. The registry setting is:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Jet\4.0\Engines\Excel\TypeGuessRows
    Or
    HKEY_LOCAL_MACHINE\SOFTWARE\wow6432node\microsoft\jet\4.0\engines\Excel\TypeGuessRows
    By default, the value for this key is 8. Hence, the provider scans the first 8 rows of the source data to determine the data types for the columns. If any field looks like text and the length of data is more than 255 characters, the column is typed as a
    memo field. So, if there is no data with a length greater than 255 characters in the first 8 rows of the source, Jet cannot accurately determine the nature of the data type. Therefore, values longer than 255 characters may be truncated or ignored.
    To import data from a memo column, we must make sure that the memo column in at least one of the sampled rows contains a value longer than 255 characters. Or we can increase the number of rows sampled by the driver to include such a row by increasing the
    value of TypeGuessRows. For more details, please refer to the following kb:
    http://support.microsoft.com/kb/281517/en-us
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to insert more than 4000 bytes in BLOB column

    Hi all,
    My oracle version is Oracle Database 11g Enterprise Edition Release 11.2.0.3.0.
    I have checked in google and in this forum also, but did not find the answer.
    When inserting into less than 4000 bytes, it is inserting without any issues. If i am inserting more than that, it is throwing
    error like this ORA-01460: unimplemented or unreasonable conversion requested.
    Can anybody guide me how to do this or link.
    Thanks in advance.
    Thanks,
    Pal

    user546710 wrote:
    Hi,
    Thank you very much for your reply.
    Before, I have not worked with BLOB column, so I don't know much about its using. Currently, I am using direct
    insert statement only. Its a normal stored procedure written in a package. I am calling this SP with other columns and
    with this BLOB column. I am able to insert into table, if the inserted file is less than 4000 bytes. If it is more than that,
    I am getting that problem.
    Thanks,
    VenuSQL variables can only hold 4000 bytes.
    PL/SQL can hold up to 32767
    I am getting that problem. 100% lacking in actionable detail
    post code & COMPLETE error message & code

  • How to get more than one lack record in 1 or 2 seconds

    pls help its urgent ,
    i need to retrieve more record from different table it have more than one lack record ,and its more than 20 seconds ,how to minimise the time to one seconds
    My sql:
    SELECT
    tl.ProjectID,
    pr.jobname,
    name as Department_name,
    ChargeNum,
    (ac.ActivityCode ||':'||ac.SubCode) as ActivityCodeName,
    SUM(HoursWorked), (Case When isBilled=1 or billedRate<>0 then BilledRate else ppr.Rate End) as RATE
    FROM
    TimeLogEntries tl INNER JOIN activitycodes ac on ac.ACTIVITYCODEID=tl.ACTIVITYCODEID INNER JOIN projectrates ppr on tl.ACTIVITYCODEID = ppr.ACTIVITYCODEID and tl.projectid=ppr.projectid ,
    projects pr INNER JOIN departments d on d.DEPARTMENTID =pr.REVENUECENTERID
    WHERE
    to_char(Date_,'yyyy-mm-dd') BETWEEN '2006-01-01' and '2008-12-30'
    AND
    tl.ProjectID = pr.ProjectID
    Group By
    tl.ProjectID,
    tl.ActivityCodeID,
    BilledRate,
    ChargeNum,
    pr.jobname,
    name,
    (ac.ActivityCode ||':'||ac.SubCode),
    (Case When isBilled=1 or billedRate<>0 then BilledRate else ppr.Rate End)
    ORDER BY
    tl.ChargeNum;

    hi,
    even i am searching for some thing similar.
    i want to have 3 calendars in one page.
    getting same message calendar already exists on page 2. You can only add one calander per page. Select a different page.
    pls help.

  • External Hard Drive(ERROR CODE 0) .DMG Back Up Issues. How to get more than 4gbs in .DMG back ups.

    I am currently using a my external hard drive for my late 2009 Mac Mini, my brothers MBP and my sisters HP laptop. I have a Western Digital My Passport 1T external Hard Drive to back up all are information. I formatted it to work on mac and pc and its on the "MS-DOS(FAT) setup at the momment. Im trying to back up DMG files from my HDD hard drive in my computer to the External Hard Drive to pass them onto my brother. I understand the whole part of me getting the "Error Code 0" where i can only put 4gbs of storage for that. I wanted to no is there a way for me to format my external hard drive for it to work on a Mac and a PC but for me to also transfer my .dmg files with more than 4gbs of that storage to my external hard drive?
    p.s Im running on OSX 10.6.8 and the DMG files are alittle more than 4 gbs. From 5-10gbs. Thank you for all the replys. It helps me out and others in the Apple community out!

    Hi, Steve. Your proposed procedure is just fine until you get to this point:
    ...reformat the WD to be Mac friendly *and reformat in FAT32* ...
    Reformatting the newly-reformatted Mac-friendly drive as FAT32 will, as you say, simply put you back where you were before, but with your data on a different drive. Omit that step, and you'll have a Mac-friendly drive that you can copy your data back onto.
    If you normally work with files exceeding 4GB in size, you won't want any hard drive in FAT32 format. If for some reason you'd like all your external drives in NTFS format, download and install the NTFS-3G driver, which will enable your Mac to read *and write to* that disk format.

  • How to get more than 4 coloured rows in a report depending on column values

    Hi,
    I've looked through the forum and found some stuff on mutli-coloured reports and found the link to http://htmldb.oracle.com/pls/otn/f?p=11933:7:557008579481721819
    But I have several problems:
    This shows how to get 3 colours, but it's easy to get up to 4 by just using the "Column Templates" in a new report template.
    I don't understand where to put the snippets. It says to put them in "Row Templates" , "Before Rows" and "After Rows" but my report template page doesn't have these options! I've got "Column Templates" (4 of them), "Before Each Row" and "After Each Row".
    Am I looking at a link for an old version?
    What I want to do is set the row colour dependant on a column called "level" which is between 1 and 5.
    Thanks

    Hi Vikas,
    It's almost perfect now. My only problem is that the pagination table is, for some reason, enclosed within the results table (I've used FireFox web developer's tools and checked the souce HTML to be sure of this). So, if I have a border at table level, it appears on the row containing the pagination.
    I've had to remove table borders and put right borders on the table data cells, but I can't find a way to put left borders on the table rows, so I have a pretty table with 5 levels of colour, but no borders on the left-hand side.
    Ideally I'd like to avoid having the pagination stuff within the results table, but I can't see how/where to put a </table> to sort this out!
    Ros

  • How to get more than 1000 rec from Oracle?

    Hi
    i got this issue from 1 of my fnd.
    can any one tell me how to over come this issue?
    I need help in solving the issue
    This is the oracle error coming when we try to export
    the records to the excel sheet.
    Macromedia][Oracle JDBC Driver][Oracle]ORA-01795:
    maximum number of expressions in a list is 1000
    This error is due to the limitation in oracle db list
    query.
    example:
    select * from FEEDBACK_IN Where feedback_in.case_id
    IN ( (param 1) , (param 2) , (param 3) , (param 4) ,
    (param 5) , (param 6) , (param 7) , (param 8) , (param
    9) , (param 10) , (param 11) , (param 12) , (param
    13)……………………….(param
    5000))
    If the list exceeds 1000, we will get the following
    error from the database. And there is a limitation in
    oracle db to 1000.
    We need to rewrite the query to avoid the list error
    if the list exceeds more then 1000 records.

    You must work with the guy who asked the same question
    yesterday.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=6&threadid=1149324&ente rthread=y

  • How to get more than 1 iphone connected on itunes to home computer

    i need to get my wife's iphone on itunes for our home computer and not sure how to proceed so we can both have access

    How to use multiple iDevices with one computer

  • How to get more than one airplay on sound menu

    When I option-click on the sound icon it drops down a list of Output devices and Input Devices - but it only shows the internal resources or the most recently used airplay device. We have several airplay receivers throughout the house - is there any way for all airplay receivers to show up on this list?

    you may add more <set> tag like the following:
    <event name="lovSelect">
    <set property="inputValue" value="${bindings.Id.inputValue}" target="${data.work_workBusinessViewUIModel.buyCompanyId}"/>
    </event>
    or you can implement your Action

  • Opening Ports, how to get more than 10 slots

    Hello. My Router is a WRT54GS running the latest firmware. I am trying to set my 360 up for Media Sharing using Windows Media Centre. To do this, I have to open up 5 ports in total. I already have 3 slots taken up by the PS3, two for IRC and 1 for utorrent. This leaves me with 4 slots left for ports. I know I can use a range to join some together, but as the PC, PS3 and 360 use different IP's, it means each need there own ports opening. Is there a way, if I need to in the future, to give me more slots to open more ports? Also, when trying to open a range of ports for the 360, some are the same as the PS3, and I get the error message "port overlap occurred! Please change your entry!" Does this mean, if a port is open for one IP, in this case its the PS3, and is 192.168.1.123, it'll also be open for another ip, the 360, which is .1.102 Hope I've made sense. Cheers Mike

    One port can be forwarded to only one local IP address. And you can combine nearby port entries into a range which are for same local IP address.

Maybe you are looking for

  • Bridge cs4 can not open raw and jpg directly by itself

    i never did it! i want to open raw and jpg files by camera raw directly with open photoshop. i have made the choose to open by double click in the preference but still can not do. my brother's computer can open both of them and we are similar xp syst

  • TV@nywhere Plus Cable problem

    Hello folks... I have recently gotten a TV@nywhere Plus card and installed it in my machine.  It scans for channels and seems to find them, but the picture quality is terrible.  However,  If I choose antenna as the input it picks up the channels 2 to

  • I phone problems sending lots of texts

    Hi there, I am tearing my hair out because I need to send a text message to a large group (not a group text where everyone else gets all the replies) and once i have spent ages selecting each member it then wont send. SMS is on in settings imessage i

  • Time Machine. . . or CCC?

    It seems like Time Machine is pretty inflexible in terms of what and how it backs up. There's almost nothing to the preferences, and as far as i can tell within the program all you can do is restore. I started using Carbon Copy Cloner to backup my ma

  • Securing Portal with SSL/https

    Has anyone successfully setup oracle portal 9.0.2 on solaris running all over secure sockets for both login/server and portal ? I've followed the otn documentation but i'm still having problems with gettin portal to work with https. It's driving me i