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 8593473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:59:48+00:00 2026-06-11T23:59:48+00:00

am able to generate barcode using zxing barcode library, am using … String text

  • 0

am able to generate barcode using zxing barcode library, am using …

String text = "123456789101"; 

int width  = 300;
int height = 100; 
String imgFormat = "png";

BitMatrix bitMatrix = new UPCAWriter().encode(text, BarcodeFormat.UPC_A, width, height);
MatrixToImageWriter.writeToStream(bitMatrix, imgFormat, new FileOutputStream(new    File("C:\\code_.png")));
out.println("Success!");

I got my output, with plane barcode image, but i want to print ‘text(String text = “123456789101”;)’ also bottom of that image, any one know pls help me.

Thanks much.

  • 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-11T23:59:49+00:00Added an answer on June 11, 2026 at 11:59 pm

    If your library doesn’t implement such a thing, and I suppose it doesn’t as there’d be no question here otherwise, you can print your code on top of the barcode image yourself. Check this question for a brief description of how it can be done.

    The other option is to output the code in plaintext under the image – not sure if it suits you.

    UPD: You can also try the Barcode4j library. I think it can do such things.

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

Sidebar

Related Questions

I am using pdflib library to generate pdf in php. I am able to
I was able to generate python bindings for a camera library using SWIG and
I am able to generate a report in pdf form using JasperReports and Java.
Hi I am able to generate pdf containing table with data using iText. How
I'm able to generate patch files from one version to another using NSIS' Vpatch.
I'm using wicked_pdf with ruby on rails and am able to generate a pdf
I was able to generate the latex output from reST using make latex command
I am able to generate a link using my file upload system, now after
My android app was able to generate text files with key value pairs. Now,
Since yesterday I haven't been able to generate strong name keys using sn.exe or

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.