on 2023 Sep 15 9:42 PM
Hi experts i'm trying to create a new endpoint that creates a new excel file but I don't have any idea to do this.
I found this example and I think it can help me to create the file for excel but i'm not sure, by the way if this works I don't know how to download it.
File file = File.createTempFile(prefix,".csv")
byte[] bom = [0xEF, 0xBB, 0xBF]; // small "hack" to make this work with Microsoft Excel
FileUtils.writeByteArrayToFile(file, bom, false);
FileUtils.writeStringToFile(file, "Something;Something;Something;Something;Something\n", "UTF-8", true);<br>
I expect a swagger endpoint for generate a new excel file and download it.
Request clarification before answering.
User | Count |
---|---|
12 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.