06-20-2019 12:39 AM
Thanks a lot Frank for your new details about the opportunity to use js features as you reported in the links.
If you will work for this feature at the same time I believe that will be a good work
Tiziana
07-02-2019 12:55 PM
Hi pirulla72,
I added a way to download an array as a CSV file to the library. Please test it out and let me know what you think.
I also created a repo on GitHub for the example as well. Please see below:
https://github.com/doczhivago/DownloadUploadAFileWebVI
Thanks,
Frank
07-04-2019 08:49 AM
Hi Frank,
thanks a lot for your new functions!
This is a big improvement and I already try the upload project and it works.
I I think I'll add it in my project in order to save some file into web server folder
Good work man!
Have a nice day
Tiziana
04-27-2020 07:07 PM
Frank,
Thanks for the demonstration of uploading a file. I have another question which you may be able to help with. I have html5 code that can access a cell phone camera, but I cannot figure out how to transfer the image from the camera up to the server. Is this something that makes sense? I have tried to add it into the html tag editor but I am confused by where it is supposed to go? Does the html that I include go inside the control for the html URL.
Appreciate any help or direction.
05-06-2020 03:08 AM
Hello! I have tried to upload a binary file this way. Just converted the string output to U8 array. Values become corrupted in some cases. Probably body.text() js method converts somehow string that contains non-UTF8 characters. Could you advise what can be done in this case?
05-06-2020 09:33 AM
Hi ADLADL,
Would you create a new forum post for this question?
I think that you want to download an image from your WebVI to your server machine, correct? To do that, you can modify the JavaScript Library Interface component according. See below for an example and the component in the LabVIEW NXG project:
Example
https://eligrey.com/demos/FileSaver.js/
Thanks,
Frank
05-06-2020 09:34 AM
Hi izWERg,
Do you have an example file that you can share? Would you mind posting an issue on the GitHub page please?
https://github.com/doczhivago/DownloadUploadAFileWebVI/issues
Thanks,
Frank
05-07-2020 12:24 AM
Hi Frank!
Here is the file that is upladed incorrectly. I've posted a new issue on the GitHub.
Thank you.
03-23-2021 12:26 PM
For future readers I have put together the File for WebVI library.
It supports text / binary file open and download in addition to some advanced features like capturing images from a webcam, fast base64 encoding, etc.
09-01-2021 12:31 AM
I am interested in using the upload a image file in a webVI. I have downloaded the libraries. Can you please send me the example code for the demo. Thank you