Decoded datas to Base 64

i try to convert to decode data to base 64 using bouncy castle lib.
after decoding i got Bizarre characters
my input data :IzIrnQA2aQbOw5ysPJJumDSspCvdwd/zec21/K+t1RlXsjid6vpNsNKVgCH5KfMIeqXFsGEKRZO/4Xd2nZYND32eSdbbqgkDFMsYK8qSFQo2gvYwHXAQg5BEvB51zldef4mr06GXldtTIZSKfGMI1WcoM92Zi9P1sfZd2hfy7zc=
out data :
#2+?&#65533;6i????<?n?4??+????y??????W?8???M????!?)?z???a
E???wv??
}?I???     ?+??
6??0p??D?u?W^???????S!??|c?g(3???????]???7
is it correct? thank you for any response

bada wrote:
Hear is the line of my code.
import org.bouncycastle.util.encoders.Base64
String decodedStr ="IzIrnQA2aQbOw5ysPJJumDSspCvdwd/zec21/K+t1RlXsjid6vpNsNKVgCH5KfMIeqXFsGEKRZO/4Xd2nZYND32eSdbbqgkDFMsYK8qSFQo2gvYwHXAQg5BEvB51zldef4mr06GXldtTIZSKfGMI1WcoM92Zi9P1sfZd2hfy7zc=";
byte[] signBytes = Base64.decode(decodedStr.getBytes("UTF-8"))
System.out.println(new String(signBytes ));
Do you see something wrong in the code.Yes. Don't convert the signBytes to a String since (reading between the lines) it is a signature which is binary data and not characters.

Similar Messages

  • Selecting data on basis of string from ms access using database toolkit

    i want to read data from ms access in labview using database toolkit,but the problem is that i want to enter/select pipetype and other fields must be filled from the database with respect to pipe type intead of indexing(1,2,3,....)..kindly tell me how to make my selectio from database depending on pipe type.
    Attachments:
    database.zip ‏324 KB

    What is pipetype and what exactly do you mean by 'selecting data on basis of string'.

  • Decode date help

    hi all,
    Trying to run a simple decode date check:
    select T1.priority
    , DECODE(T1.submitdate, (greatest(T1.submitdate, '30/06/2007')),'1') as MyCount
    from table1 T1
    my goal is to cross tab this so result will look like:
    PRIORITY TOTAL NEW AS OF 30/06/2007
    HIGH 5 1
    MEDIUM 1 0
    is my decode working correctly with the date range?
    So I want to see for HIGH, are there "NEW" ones since 30/06/2007?
    thanks!

    select T1.priority, count(*) as "Total"
    , CASE WHEN T1.submitdate >= to_date('30/06/2007','DD/MM/YYYY') THEN '1' ELSE '0' END as New
    from table T1
    hmmm, this works now but the results are not summed up??
    PRIORITY TOTAL NEW
    HIGH 1 1
    HIGH 1 0
    HIGH 1 0 .......
    how do I get this?
    PRIORITY TOTAL NEW
    HIGH 3 1

  • View Customization Table changes and Data  table base changes in a report

    Hi All,
    How to view Customization Table changes and DAta  table base changes in a report ,
    Is it right transactions: SCU3 or RSVTPROT
    Also plz let me know the concept of audit trial,
    Thanks
    SD

    Hi,
    Changes to master data objects must be captured for the For compliance purposes. The auditor allows you to be able to view and print an audit log of changes to master data objects for a chosen period. It is very common for external auditors to focus on what has changed from one year or quarter to the next to help determine the nature, extent, and population for testing. To configure and access your audit log, perform the actions listed with each of the following utilities.
    Audit Trail is used to track the record changes.
    The report RPUAUD00 gives all the changes done to the masterdata by any user anytime.
    But, before using this audit trial, please ensure that the system hardware is well equipped as the audit trials activation would later become a performance issue as this would occupy a lot of space in the coming time.
    Best Regards,
    Venkat.

  • DECODE date bug

    Could someone else confirm this?
    We are using 9i R1.
    DECODE(<date field>, 'DD-MON-YYYY', , ) fails.
    ie.
         select decode (trunc(sysdate),'09-JUN-2003','Y','N') from dual ---> Returns 'N'
    But     select decode (trunc(sysdate),'09-JUN-03','Y','N') from dual ---> Returns 'Y'
    Thanks,
    Allan S.

    Can you give us an example of your tests, on my db it works in the where clause exactly the same as in the decode (and as expected).
    select EMPNO, HIREDATE from EMP
    where trunc(hiredate)='&1'
    Enter value for 1: 22.02.1981
           EMPNO HIREDATE
            7521 22.02.1981
    select EMPNO, HIREDATE from EMP
    where trunc(hiredate)='&1'
    Enter value for 1: 22.01.81
    no rows selected
    [pre]

  • How can i extract the particular data from Base tables

    Hi
    I have some Base R/3- Tables . I need to exact the data from these base tables.
    But i need to select some type of datarecords(eg: select Material Documents from MSEG and MKPF tables based on movement types 261,262).
    Something like that . So how can i select the particular category datarecords from base tables. Anyway im going to create the Custom DataSource.
    So please let me know . how can i extarct tha particular data from base tables
    kumar

    Hi Venkat
    See i have some 5-tables . I need to extarct from these tables.
    first i need to extract the data from one table fully.
    Then i need to extarct the data from second table based on profict centers, company codes of first table.
    Then i need to extract the data from third table based on profict centers of first table and movement type = 2p,2n,2s condition.
    So how can i extarct like this data from multiple tables.
    Please let me know
    kumar

  • TIPS(53) : DECODE를 이용한 DATE INSERT 시에 잘못된 값이 들어가는 경우.

    제품 : ORACLE SERVER
    작성날짜 : 2002-11-06
    TIPS(53) : DECODE를 이용한 DATE INSERT 시에 잘못된 값이 들어가는 경우
    =====================================================================
    Purpose
    decode를 사용하는 date data type의 처리에서는 가끔 예기치 않은
    오류가 발생된다. 예를 들면 2000년을 insert를 하였는데 실제 값은
    1900년이 들어가게 되는 문제이다. 이것은 사용자를 매우 당황하게
    만드는데 이런 경우에 대해 확인하고 조치하는 방법을 살펴보자.
    Problem Description
    1. nls_date_format을 'yy-mon-dd'로 하였을 경우
    SQL> ALTER SESSION SET NLS_DATE_FORMAT='YY-MON-DD';
    SQL> CREATE TABLE TABDATE(COLDATE DATE);
    SQL> INSERT INTO TABDATE(COLDATE)
    SELECT DECODE('1','0',NULL,'1',(TO_DATE('200511','RRRRMM')))
    FROM DUAL;
    SQL> SELECT TO_CHAR(COLDATE,'YYYY-MM-DD') FROM TABDATE;
    TO_CHAR(CO
    1905-11-01 -- 2005년이 들어가 있어야 하는데 오동작을 했다.
    2. nls_date_format을 'yyyy-mon-dd'로 하였을 경우
    SQL> ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MON-DD';
    SQL> INSERT INTO TABDATE(COLDATE)
    SELECT DECODE('1','0',NULL,'1',(TO_DATE('200511','RRRRMM')))
    FROM DUAL;
    SQL> SELECT TO_CHAR(COLDATE,'YYYY-MM-DD') FROM TABDATE;
    TO_CHAR(CO
    1905-11-01
    2005-11-01 -- 정상적인 값이 들어와 있다.
    3. 문제 설명
    어떻게 이런 문제가 발생하는가?
    이것은 dbms가 decode를 처리하는 내부적인 절차에 의해 벌어지는 것으로
    당연한 현상이다. decode를 처리할 경우 decode 안의 값이 to_date로
    처리되기 이전에 varchar2로 값을 넘겨 받아서 그 결과값으로 to_date
    함수에 넘겨저서 처리하게 된다.
    그런데 이 경우에 to_date 함수를 처리하기 전에 data의 conversion에
    이용되는 것이 시스템의 default NLS_DATE_FORMAT 값인 것이다.
    그러므로, 이 값의 년도 처리가 두 자리로 되어 있을 경우 년도를 두자리
    만을 처리하여 varchar2 값으로 넘기게 되고 이것을 to_date 함수를
    이용하여 처리하게 되므로 우리가 예상치 못한 값이 나오게 되는 것이다.
    실제 SQL이 다음과 같으면
    SELECT to_char(to_date('0511','yyMM'),'yyyymmdd') FROM DUAL;
    결과 값은 19051101로나오게 된다.
    Solution Description
    이 문제는 NLS_DATE_FORMAT의 년도가 두 자리로 지정된 경우에
    decode 함수를 사용하는 date data는 오동작을 할 가능성이 있다는 것이다.
    이에 대한 해결 방법은 nls_date_format의 년도를 네 자리로 지정해 주는 것이다.
    이에는 세 가지 방법이 있을 것이다.
    1. alter session set nls_date_format='yyyy-mm-dd';
    2. 환경변수의 nls_date_format을 변경하기.
    3. database 내의 nls_date_format를 변경하기.
    Reference Documents
    none

  • GR POsting date as Base line date in MIRO.

    Hi SAP Expert,
    Using StandardConfiguration, Base line date in MIRO can be populated as Posting date/Invoice document date/ new entry of Invoice Reciept using configuration of Terms of Payment.
    My client requirement is to populate GR posting date as a base line date in MIRO.
    can you please let me know how/where/what configuration to be done to achieve the client requirement.
    please also let me know the Table & Field used If any ABAP coding Involve.
    With Regards
    Manoj Singh

    hi,
    baseline date in MIRO triggered by payment terms in FI .
    take help of the FI consultant create payment term based on GR document date.
    regards,
    sujit

  • Looking for some tips on Decoding date. TX

    HI,I still have problem with this decode. I need to count students group by their region on each month. The output should be
    COUNTRY OCT NOV DEC .....
    USA 5 20 30
    CAN 100 1 0
    MEX 10 20 30
    The date format is 5/19/2007
    This is my code: and thanks for your help
    WITH Q AS (SELECT DISTINCT A.STDID, A.NUMBER, A.ADMIT
    FROM PROG A
    JOIN CITIZEN B ON A.STDID = B.STDID
    JOIN REGION_TBL C ON C.REGION = B.REGION
    AND A.NUMBER = 'PS'
    AND A.ADMIT IN ('2007','2008'))
    SELECT J.REGION, I.DESCR,
    SUM(DECODE(TO_CHAR(L.ACTION_DT,'YYYY-MM-DD', '09', 1, 0))) SEP_TOTAL,
    SUM(DECODE(TO_CHAR(L.ACTION_DT,'YYYY-MM-DD', '10', 1, 0)))OCT_TOTAL,
    SUM(DECODE(TO_CHAR(L.ACTION_DT,'YYYY-MM-DD', '11', 1, 0)))NOV_TOTAL,
    SUM(DECODE(TO_CHAR(L.ACTION_DT,'YYYY-MM-DD', '12', 1, 0)) )DEC_TOTAL,
    SUM(DECODE(TO_CHAR(L.ACTION_DT,'YYYY-MM-DD', '1', 1, 0)) )JAN_TOTAL,
    SUM(DECODE(TO_CHAR(L.ACTION_DT,'YYYY-MM-DD', '2', 1, 0)) )FEB_TOTAL,
    SUM(DECODE(TO_CHAR(L.ACTION_DT,'YYYY-MM-DD', '3', 1, 0)) )MAR_TOTAL,
    SUM(DECODE(TO_CHAR(L.ACTION_DT,'YYYY-MM-DD', '4', 1, 0)) )ARL_TOTAL,
    SUM(DECODE(TO_CHAR(L.ACTION_DT,'YYYY-MM-DD', '5', 1, 0)) )MAY_TOTAL,
    SUM(DECODE(TO_CHAR(L.ACTION_DT,'YYYY-MM-DD', '6', 1, 0)) )JUN_TOTAL,
    SUM(DECODE(TO_CHAR(L.ACTION_DT,'YYYY-MM-DD', '7', 1, 0)) )JUL_TOTAL,
    SUM(DECODE(TO_CHAR(L.ACTION_DT,'YYYY-MM-DD', '8', 1, 0)) )AUG_TOTAL
    FROM CITIZEN J
    JOIN PROG L ON J.STDID = L.STDID
    JOIN Q ON J.STDID = Q.STDID
    AND Q.NUMBER = J.NUMBER
    GROUP BY J.REGION, I.DESCR

    SUM(DECODE(TO_CHAR(L.ACTION_DT,'YYYY-MM-DD', '09', 1, 0))) SEP_TOTAL,Apart from having brackets in the wrong place you are comparing a date that you are converting to a string in the format YYYY-MM-DD to a string that is 1 or 2 digit number.
    This should be something like
    SUM(DECODE(TO_CHAR(L.ACTION_DT,'MM'),'09',1,0)) as SEP_TOTAL,

  • BOM and Routing import is not populating data in base table.

    BOM AND ROUTING INTERFACE Import Prog is not populating base table with interface data.Even the Interface table data is not processed.I am passing process flag as 1 and transaction_type as INSERT,still the ROUTING INTERFACE TABLES  are not getting processed.
    passing the below details.
    INSERT INTO bom.bom_op_routings_interface
            (organization_code,          assembly_item_id,          completion_subinventory,         routing_sequence_id,          organization_id,
             routing_type,          common_routing_sequence_id,          last_update_date,          last_updated_by,          creation_date,
             created_by,         last_update_login,         alternate_routing_designator,          assembly_item_number,         process_flag,
             transaction_type) ;
    INSERT INTO bom.bom_op_sequences_interface
            (operation_seq_num,         department_id,         department_code,         option_dependent_flag,         operation_lead_time_percent,
             implementation_date,         effectivity_date,         disable_date,         count_point_type,         backflush_flag,         minimum_transfer_quantity,
             operation_sequence_id,         routing_sequence_id,         organization_code,         assembly_item_number,         last_update_date,
             last_updated_by,         creation_date,         created_by,         include_in_rollup,         alternate_routing_designator,         process_flag,
             transaction_type);
    INSERT INTO bom.bom_op_resources_interface
            (resource_seq_num,         resource_code,         resource_id,         basis_type,         usage_rate_or_amount,         usage_rate_or_amount_inverse,
             assigned_units,         schedule_flag,         resource_offset_percent,         activity,         standard_rate_flag,         autocharge_type,         organization_code,         assembly_item_number,
             operation_seq_num,         effectivity_date,         last_update_date,         last_updated_by,         creation_date,         created_by,         alternate_routing_designator,
             operation_sequence_id,         routing_sequence_id,         process_flag,         transaction_type);
    Where am I making a mistake.
    Thanks in Advance.
    Sambit Pradhan

    Hi,
    Try following
    step 1. Insert routing header (bom_op_routings_interface) : Run Interface
    step 2. Insert routing lines (bom_op_sequences_interface) with correct reference to routing_sequence_id: Run Interface
    step 3. Insert all resource lines (bom_op_resources_interface) with correct reference to operation_sequence_id, routing_sequence_id , Run Interface.
    Thanks,
    Hrishi

  • Data at base level not consolidating to the parent entity

    HI All
    I have an issue with data which exisits at the base level but do not consolidate to its parent entity.
    For example,
    2000
    2001
    2002
    2003
    Here only 2002 has data, but that is not appearing at 2000. I have checked the accounts and there we have set the IsConsolidated property.
    The consolidation happens for other entities like 1000 & 3000. The problem is only with 2000.
    Has anyone come accross this before and what is the best way to fix this?
    Thanks,
    Appu

    Is it possible that you have not activated consolidation of the entities for the period you want to consolidate? Check out the Ownership Management screens for the entity 2000. Are all child entities set to Active? Is the proper Method set? Is the PCON = 100?
    Also have you tried to select one of the child entities (e.g. 2001) and run the Force Calculate Contribution? What does this entity return at the +[Contribution]+ level?

  • Using a formatted search which incorporates copying data from base document

    Hi
    I have a user selling tiles.  They sell by sq meter but will only sell whole boxes.  I have a formatted search on the quantity field to calculate the number of sq meters in a box.  They also sell indivudual units and will key this value directly into the quantity field.  All this works fine.
    However if I enter this as a sales order and copy to a delivery, then the formatted search fires and the quantity field gets refreshed.  This results in the incorrect value where the user had keyed data directly into the qty field in the base document.
    Therefore I need to incorporate my base document values into my query where by if there is a base document, the query will pull the quantity data from the base document.  My query so far is as follows
    SELECT (CAST($[$38.U_ActMtr.0] AS DECIMAL(10, 2))*CAST(T0.U_SqmBox AS DECIMAL(10, 2))) FROM OITM T0 WHERE T0.ItemCode = $[$38.1.0]
    Any suggestions?
    David

    If I understand your requirements well, you want to save the base quantity, when the delivery is based upon a SO, and to compute it when the DLN is not copied.
    Try to use this modified FS:
    declare @q dec(19,6)
    set @q=$[$38.11]
    If $[$38.43]<>-1
    Select @q
    Else
    SELECT (CAST($[$38.U_ActMtr.0] AS DECIMAL(10, 2))*CAST(T0.U_SqmBox AS DECIMAL(10, 2)))
    FROM OITM T0 WHERE T0.ItemCode = $[$38.1.0]

  • Loading data from Base cube to copy cube

    Hi,
    I have created copy cube Name "Y" from Base cube "X".
    I want to load whole data from "X" to "Y" cube .Cube "X" having 7 million records.
    have created Trnasformation and DTP. When i schedule a load using DTP(Full update) from Cube "X" to Cube "Y".
    When i check the load in RSMO where it is showing as Unknown /None  load name is showing under a current running loads(active).
    After some time later it stat loading the data and some point at 500000 record at data packet some 10 it got stuck.
    Please advise me why the load name is showing as Unknown /None

    Hi......
    In the first tab ie Extraction Tab Page in the right side there is a icon ie Filter option......
    Check this link :
    http://help.sap.com/saphelp_nw04s/helpdata/en/42/f98e07cc483255e10000000a1553f7/frameset.htm
    Regards,
    Debjani.....
    Edited by: Debjani  Mukherjee on Sep 11, 2008 10:18 PM

  • How a sales order for a MTO sku can always have required date populated bas

    Hi,
    how a sales order for a MTO sku can always have required date populated based on full lead time ?
    Thanks,
    Raja

    Hi,
    If you run MRP against sale order by tcode MD50, system will generate planned order.
    System will generate basic or lead time scheduling depends on MRP run parameter selected in initial screen of MRP run.
    If you select lead time scheduling, system will time from routing and thus generate scheduled start date & finish date.
    If your requirement date say 10/08/08. Lead time 10 days. So system create scheduled start date on 01/08/08 during MRP run.
    Regards,
    Dharma

  • Invoice date and Base line date?

    Hi My Dear Friends,
    Pls explain me what is baseline date and Invoice date ?
    Warm Regards,
    Hari

    Invoice date is the date on which the invoice comes into being (ie legally valid). Baseline date is the date from which the due date is calculated.
    Payment terms is applied to the baseline date to calculate the net due date.
    Baseline date is a derived date and can be derived from invoice date or posting date etc
    Regds
    Pooja

Maybe you are looking for