Downloading a ZIP file #300
Answered
by
jourdain
jipenaflor
asked this question in
Q&A
-
Hi! I am making a simulation application using OpenFOAM, and I would like to enable the user to download the results of their simulation in .zip file. How would I do it? I tried following the example here, but it seems that the return method require an input of type byte.
|
Beta Was this translation helpful? Give feedback.
Answered by
jourdain
Aug 3, 2023
Replies: 2 comments 1 reply
-
Read the zip file and send the bytes over. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jipenaflor
-
If you want to serve it over http, you will have to serve the directory (you can create a module to do that) that will contain your zip and dynamically defined the url to download. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Read the zip file and send the bytes over.