Closed nikosdimitrakas closed 1 year ago
The issue has been resolved in VPL 4.1.0 by accepting binary files using Base64 encoding. Each file's information now includes the file name, data name, and the encoding indicator. A value of 1 indicates that the data is encoded in Base64, while 0 indicates no encoding. See the WebService API documentation for more details.
It appears that the webservice mod_vpl_open returns an empty string instead of an object (with zero or more files) if any of the submitted files is non-textual. I have tried a couple of cases: A student has two java-files = Works fine. I get the file names and file contents. A student has not submitted anything = Works fine. I get an object with no files. A student has submitted an icon-file (which renders fine in the GUI of VPL) = Does not work. I get an empty string. A student has submitted a java file and a jpg file (both render fine in the GUI) = Does not work. I get an empty string.
Possible solutions/expected behaviours: