i had the same problem on my development machine (windows) on the server i didnt see that line --- but there i run headles and i get the problem that the Humanreadable label is not showing up.
anyway
i got rid of that black bar by first writing the bacode out to a bytearray output stream ... oddly enough (it was by coincidence that i found this)
//this is useless ... but it helps get rid of the black line. ByteArrayOutputStream baos = new ByteArrayOutputStream(); BarcodeImageHandler.writePNG(bc, baos);