Results 1 to 2 of 2
  1. #1
    steiger is offline Member
    Join Date
    Sep 2010
    Posts
    3
    Rep Power
    0

    Default How to Saved the generated Bar code Image in JLabel Properly

    Hi,

    I can generate bar code and display it to a JLabel, the problem is how can I saved it as .jpeg or .gif file for me to insert it database table.


    Hope I can find answer here

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,302
    Rep Power
    20

    Default

    Paint it to a BufferedImage and pass the BI to ImageIO$wrote(...)

    db

Similar Threads

  1. Replies: 9
    Last Post: 06-02-2012, 05:04 PM
  2. Properly formatted code
    By Bgreen7887 in forum New To Java
    Replies: 1
    Last Post: 11-22-2010, 04:28 PM
  3. Image not showed properly in struts
    By ganesan in forum Web Frameworks
    Replies: 4
    Last Post: 01-13-2009, 09:21 AM
  4. How to delete pre-generated code?
    By Terentius in forum NetBeans
    Replies: 0
    Last Post: 08-19-2008, 04:02 PM
  5. My code is not working properly ..modify it
    By Shyam Singh in forum New To Java
    Replies: 14
    Last Post: 07-16-2008, 05:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •