Archived posts, use them to search

Re: Release of VPL 2.0

by Julio Caiza -
Number of replies: 2
Hello again Juan, I had though about upload to VPL a .zip file with some Java source files, then to modify the vpl_evaluate.sh script to grade in a particular way. The problem is about upload and send the zip file to the jail. I just made some tests and I think that the file is arriving corrupted to the jail. It is because the original zip file size is 9 KB, I see in the user directory in the jail and the file arrives with 6 B. Could you suggest me something? considering that I can't make a preprocessing in the Moodle server before send the files to the jail or would it be the only solution? Thanks in advance, Julio
In reply to Julio Caiza

Re: Release of VPL 2.0

by Juan Carlos Rodríguez-del-Pino -
Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Julio,
At this moment VPL can’t handle binary files. This feature is in the VPL TODO list. There is a workaround for this problem: you can code the content of a binary file to (for example)  base64 and decode the file content in the server. The problem here is that you need to change the default script to decode the file. In the next VPL release, the decode process will be added in the default script and all the files with b64 extension will be decoded to a binary file with the same name but with the b64 extension removed.
I hope that this help.
Best regards.

In reply to Juan Carlos Rodríguez-del-Pino

Re: Release of VPL 2.0

by Julio Caiza -

Thanks Juan Carlos,

It was helpful.

 

Regards

Julio