Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8786493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:38:31+00:00 2026-06-13T21:38:31+00:00

In my jsp file there is a line: byte[] imageData = Base64.decodeBase64(request.getParameter(imageBase64)); and eclipse

  • 0

In my jsp file there is a line:

byte[] imageData = Base64.decodeBase64(request.getParameter("imageBase64"));

and eclipse complains:

The method decodeBase64(byte[]) in the type Base64 is not applicable for the arguments (String)”

It says that the method gets a String, but it expects a byte[].
But in the Base64 class there are two overloaded versions of decodeBase64; one with argument String,
and one with argument byte[].

I fail to see why the compiler seems to think I am calling the byte[]version with an incorrect String argument, where it should have used the String version without any compiler error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:38:32+00:00Added an answer on June 13, 2026 at 9:38 pm

    Base64 class in package org.apache.commons.codec.binary has 2 decode methods

    static byte[]   decodeBase64(byte[] base64Data) since beginning
    
    static byte[]   decodeBase64(String base64String) since version 1.4.
    

    I think you must be having jar prior to commons codec 1.4 in your classpath

    Hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .jsp file that receives a request and checks the request's parameters.
In a jsp file, is there a way to find a component on that
Is there any tag that allows to output the line number of the file.
I have a jsp file pageshow.jsp and the parameter id, Is there any way
Currently there are 2 pages in a jsp file: one of them displays the
I have these in a jsp file. But these values are not updated in
I have a jsp file: validate.jsp- var rollNo=document.forms[result_form][studentRollno].value; var name=document.forms[result_form][studentName].value; $(#student_result).load(result.jsp?rollNo=+rollNo+&name=+name); As you can
I'm calling InserStudent.jsp file in action of the form from AddStudent.jsp from where I
I have a jsp file in the root of .war file. and then I
While writing a .jsp file, can i include all the html5 tags in it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.