This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
CSV is simple Coma Seperated Value file you could simple use a PrintWriter to create a file and give it an extension of .csv
Omar Al Kababji - Electrical & Computer Engineer
[SCJP - 90% - Story] [SCWCD - 94% - Story] [SCBCD - 80% - Story] | My Blog
Joined: Aug 24, 2008
thanks for reply but i alsio want to add image inside csv file.....
Omar Al Kababji
Joined: Jan 13, 2009
you can't put an image in a CSV file, unless you just get the InputStream of the image and read its bytes and store them in the file in some way. and then reconstruct the image in the same way you wrote in the CSV file. however a CSV is used only plain text not for images.
... so, effectively, you can't keep images inside of CSV files. Would using the XLS file format (used by Excel) be an option? It can accommodate images, and there are Java libraries available that can create them.