Can i add one string in bse64 string  ?

Hello,
I am developing a small paint program. I am converting image into base64 and then decode base64 to display image on canvas. It is working fine. Now I am getting problem during when i am adding one string manually to the encoded string like this:
public String getImage(String s1){       
     byte abyte0[] = canvas.toByteArray(canvas.getBufferedImage());
     if((abyte0!= null))
           System.out.println(scheck); // this is extra string
        System.out.println(b.encode(abyte0)+scheck);
         return b.encode(abyte0)+scheck;
    return null;
}After that i am saving this data to database. When i am displaying image(after decode). it gives me nullpointer exception. with Illegal base64 String. Please help and tell me how to add one string at the last of base64 string. And how to separate this string from it without effecting base64 string. Please help me.
Thanks in advance.
Manveer.

Hi hood1,
2 options:
1) You can add many waveforms by combining them into one Array.
2) Use the Waveforms tools, that give you many option for adding waveforms. one after the seconed or adding the Y array of a waveform to other Y array of second wave form, and so on...
Hope it Helps...

Similar Messages

  • How can i add one phone number to my macbook pro application imessage

    how can i add one phone number to my macbook pro application imessage

    Make sure that the iPad is using the same Apple ID as your iPhone. If the phone number still doesn't appear, log out of iMessage on both devices, log back in on the iPhone, wait until it activates, then log into iMessage on the iPad with the same Apple ID.

  • How can i add one month to a date variable ?

    Unlike the week which always 7 days, month may change from 28 to
    31, so how can i add one month to a date variable ? Thanks in
    advance.

    Adding 365 won't always work because of leap years.
    You could use the following SQL statement:
    SELECT
         TO_DATE(
              TO_CHAR(TO_DATE(SYSDATE), 'DD-MON-') ||
                (TO_CHAR(TO_DATE(SYSDATE), 'YYYY') + 1)) NEXT_YEAR
    FROM
         dual
    NEXT_YEAR
    08-JAN-03Or you could create your own function. You would use this
    exactly like add_months:
    CREATE OR REPLACE FUNCTION add_years
         (v_date DATE, num_years NUMBER)
    RETURN DATE AS
         v_year DATE;
    BEGIN
         v_year := TO_DATE(
                   TO_CHAR(TO_DATE(SYSDATE), 'DD-MON-') ||
                         (TO_CHAR(TO_DATE(SYSDATE), 'YYYY')
                                             + num_years));
         RETURN v_year;
    END;     
    SELECT
         add_years(SYSDATE, 1) new_year
    FROM
         dual
    NEW_YEAR 
    08-JAN-03
    SELECT
         add_years(SYSDATE, -1) new_year
    FROM
         dual
    NEW_YEAR 
    08-JAN-01

  • How can I add one seat for a single app to a team account?

    We currently have a team for our art department, which needs Photoshop, Illustrator, In Design and Acrobat.  We have other departments that just need Acrobat.  How can I add one seat, that has access to only one App so I'm not paying the full price?

    Did you ever figure this out? I need Photoshop single licenses and Adobe is making this ridiculously difficult...

  • How can i add one wave in in our Function generator example?

    how can i add one anotehr wave in our function generator example. i want to use superposition and add one more wave to our first wave in function generator and see the result.thanks

    Hi hood1,
    2 options:
    1) You can add many waveforms by combining them into one Array.
    2) Use the Waveforms tools, that give you many option for adding waveforms. one after the seconed or adding the Y array of a waveform to other Y array of second wave form, and so on...
    Hope it Helps...

  • Can we add one additional screen in standard transaction.

    One requirement is to create screen after executing the standard transaction.
    I have an UserExit to create from where i can use to write a code for the standard tramsaction ,
    But How can i add one userdefined screen in SAP Stardard Transaction.
    I am not talking about the subscreen / custom exit.
    I want to create a small screen  this would be itself a screen not imposed on any other screen.
    Points will be rewarded for the help full answer.

    Hi, Mike.  It depend on the transaction, but a quick and easy way is to develop a function module which will throw a popup screen and call the function in your user exit.
    Regards,
    Rich Heilman

  • How can I add the string to JList

    I have one string " teletoppy" and I have Jlist which have 5 items in it.
    After I press submit I want teletoppy added to the list.
    How can I write the command?
    because I try by using command_list.add("teletoppy", comp);
    I don't know what component is?how can I add it in?.

    Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/list.html]How to Use Lists for a working example of how to do this. The "Hire" button adds the text from the text field to the JList.

  • Add one String[] to String[]

    how can add one array to another?
    or maybe add an array items to Vector not as an array, but as separate items?
    something like this
    Object[] a,b = new Object[10];
    --> a+b ???

    Object[] a = new Object[10];
    Object[] b = new Object[5];
    int combinedLength = a.length + b.length;
    int bOffset = a.length;
    Object[] c = new Object[combinedLength];
    System.arrayCopy(a, 0, c, 0, a.length);
    System.arrayCopy(b, 0, c, bOffset, b.length);
    //now c = a + b

  • How can I add one more path in the classpath tag in xml

    I have added the following line in the global-web-application.xml, and it works.
    <classpath
    path="/apps01/o9ias/j2ee/home/default-web-app/WEB-INF/properties"
    />
    But whenever I add one more path into it, the oc4j can't start.
    The Oracle manual Oracle9iAS Container for J2EE is beta. It doesn't tell the grammer to do that.
    Hopefully you can share some ideas and let me know how to add some more path into it.
    Thanks.
    Wei

    Hi Wei,
    I have just done a quick search of the following URLs
    http://www.orionserver.com
    http://www.orionsupport.com
    http://www.atlassian.com
    http://www.elephantwalker.com
    And -- as is nearly always the case -- found a shamefully minute amount
    of information, and what I did find was totally useless.
    Oracle have not produced any real documentation for OC4J -- they
    claim it's coming in the next release -- and, as I already said, I
    couldn't find anything on the Internet about "global-web-app.xml" or
    "classpath" element. Therefore (surprise, surprise) your only option
    (as I see it) is just experiment and try to hack the code.
    I wish someone would please tell me if there's another option, because,
    like you, I find it very frustrating to have to continually play
    "guessing games" when trying to work with OC4J. I imagine other people
    seem to enjoy this -- since I don't see anyone else complaining.
    In any case, have you tried multiple "path" attributes, for example:
    <classpath path="/your/path/" path="/your/other/path/"/>
    Got nothing to lose, have you :-)
    Good Luck,
    Avi.

  • How can i add one field in the container for the standard task-90310004?

    Hi,
    Please let me know thw steps to add one field in the container for the standard task-90310004.
    Usefull suggestions will be rewarded.
    Regards,
    Neslin.

    <b>Hi,
    Containers are used for holding Application data for Workflow purposes.
    Event container
    Task container
    Workflow container
    Role container
    Binding is the linking of data from one container to the other for making data available all across the workflow.
    But you can get values from one container to another container like this
    Container(Con)
    1. WF Con to Role, Wf con to task con, Wf con to event
    and
    2. Event con to wf con, task con to wof con
    and
    3. Method con to task con
    and
    4. Task con to method con
    So, we don't have direct possible binding from task con to task con.
    Thanks and Regards,
    Prabhakar Dharmala</b>
    Message was edited by:
            Prabhakar Dharmala
        But you can do pass values from first task con to wf con and again from wf con to another task con

  • Multi-provider can't add one time dimension

    I have created one multi-provider, saved. I can't activiate it, so I try to add one time dimension characterstic,. for example :
    Calendar Year/Month
    I right click the "Time" dimension, only I can change description. the " insert" menuitem is greyed out. so how to add one time characterstic?

    thanks.
    during activiation of multi-provider, another error below:
    Assignments for InfoObject 0VALUE_LC have not yet been maintained -> Long text
    Message no. R7645
    Diagnosis
    The MultiProvider definition contains an InfoObject that has not been assigned to the relevant InfoProviders.
    Procedure
    Choose Identification and highlight the assignment for InfoObject 0VALUE_LC, or remove the InfoObject from the MultiProvider.
    but I can't find "identification" , where is it?
    Edited by: Splinter on Nov 3, 2011 9:08 AM

  • I'm setting up Apple ids, and its not giving me the option to set up a rescue email. How can I add one?

    I'm setting up Apple IDs, and its not giving me the option to set up a rescue email. I've set up Apple ID's in the past, and its always given me the option. How can I add a rescue email?

    You can find the instructions here. I removed the screenshots but the text is copied below.
    http://support.apple.com/kb/HT5312?viewlocale=en_US&locale=en_US
    You can edit or delete your rescue email address at My Apple ID. To edit your rescue email address:
    Navigate to My Apple ID using your web browser.
    Click "Manage your account"
    When prompted, sign in using your Apple ID and password.
    Click Password & Security
    You'll be asked to answer 2 of your 3 security questions before you can make any modifications. If you are unable to remember your answers, you can choose to send an email to your rescue email to reset your security questions.
    Note: The option to send an email to reset your security questions and answers will not be available if a rescue email address is not provided. You will need to contact iTunes Store support in order to do so. 
    After you've validated your identity by correctly answering your security questions, click Edit to the right of your rescue email address.
    Once you've finished editing your rescue email address, click the Save button directly below the email field.  

  • How can I seperate one string into multiple strings using PowerShell?

    New to PowerShell...how can I read/separate parts of a file name? For instance if I have a file name like "part1_part2_part3_part4.xls", how to separate this file name to four different parts? So I basically want to go from that file name,
    to four different strings like part1, part2, part3, and part4...as four separate strings. How can I get this done in PowerShell?
    Thanks

    You can try something like this
    PS> (Get-ChildItem part1_part2_part3_part4.xls).BaseName.Split('_')

  • Can you add one of these range expander to a router that is using a WAP54g as a repeater?

    I have a WRT54G router and a WAP access Point that I have setup as a repeater. I am working in a big house and there are still dead spots in the coverage. I was wondering if you can add an expander or another access point to further my range? I know which is cheapest, so which is easiest? and can an expander even work with the current equipment I mentioned?

    well , as you already have one wap54g working in a repeater mode and must be knowing the configurations i would recommend you to use another wap54g in repeater which will make the job simpler for you

  • Contacts app? no accounts. can't add one. won't save a new contact.

    My Contacts app shows no accounts, I cannot add an account local or cloud, and if I add a contact it is not saved to disk. Anyone have any idea what is going on? and how I might fix it. Other apps in this group (Calendar, Mail, Notes, etc) seem to be working normally.

    I'm having this as well. I have a 15 inch Retina MacBook Pro (late 2013). I added an iCloud account in the preferences panel, and it added it successfully to email and calendar but not contacts, even though it is checked. I've tried to add it from within contacts, signed out of iCloud and signed back in, and restarted the computer with no success.
    I can't sync with iCloud or add a new contact.

Maybe you are looking for