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

  • SEARCH
  • Home
  • 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 8807997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:30:30+00:00 2026-06-14T02:30:30+00:00

I am using Netbeans and I am trying to use the base64 library, but

  • 0

I am using Netbeans and I am trying to use the base64 library, but it gives me “cannot find symbol”

OutputStream b64 = new Base64.OutputStream(os);

First I tried adding it like this

import org.apache.commons.codec.binary.Base64;

Which gives me a package does not exist, so I went to this website and downloaded the jar file. I downloaded for more than one website, but last one was http://www.java2s.com/Code/Jar/o/Downloadorgapachecommonscodecjar.htm

I added the library by right click on libraries, add Jar/Folder and selecting the .jar file that was downloaded. This gives me a package does not exist.

Can someone explain to me why this happens.

Note: My goal is to use java robot to copy a part of the screen and send it as a post request.

  • 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-14T02:30:32+00:00Added an answer on June 14, 2026 at 2:30 am

    Download the jar from Apache: http://commons.apache.org/codec/download_codec.cgi

    The desired package and class is available in the jar i.e. commons-codec-1.7.jar

        org.apache.commons.codec.binary.Base64
    

    Add the above Jar from this distribution and let me know, if you still get the issue.

    Though I think, to get the output stream, you would want to use org.apache.commons.codec.binary.Base64OutputStream.

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

Sidebar

Related Questions

I'm trying to use a MySQL database with EclipseLink using Netbeans but I keep
I'm trying to use the readline library in my c++ project using netbeans ,
I'm trying to use NetBeans 6.8 with Scala, and it can't find the Scala
I'm a fairly experienced Java user, but I've just started trying to use NetBeans
I am using netbeans and trying to use jTable from its designer's section. The
I'm trying the use this library (RollPlay) in my project but I don't know
I'm trying to use Netbeans to make a web application using facelets. I want
I am trying to add n image to a panel using Netbeans. I dragged
I'm currently working on a project using netbeans 6.9 and grails 1.3. I'm trying
I am trying to use SimpleTest with CodeIgniter, using code supplied by maroonbytes .

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.