Hi all I want to convert a CSV file in to .xlsx file I write the .xls file like below.
InputStream in = new FileInputStream("csvpath");
OutputStream out = new FileOutputStream("xlsPath");
byte[] buf = new byte[1024];
int len;
while ((len = in.read(buf)) > 0) {
out.write(buf, 0, len);
}
but the resultant .xls file is having file in opening. Is there any specific type of code to do this?
So is there any problem here and any suggestion to do this?
Please try to give suggestion in java only not any third party.