I need to write an image on a .csv file with some data. Writing data was simple but I cant write an image into it which is stored on the hard disk. I am using FileWriter class to implement this and .append(); to add items in the file. How can I add an image to a CSV file?
I need to write an image on a .csv file with some data. Writing
Share
Based on your comments, you’d be better off storing a text representation of your barcode (along with the other information, such as product name, price, etc) in the CSV file (instead of embedding the image or filename).
Then when reading the CSV file, you can use an open source library such as Barbecue to dynamically generate the barcode image. Barbecue supports a wide range of barcode and image formats.