- Updated Wednesday, March 16th 2016 @ 23:45:22
Is it possible to read files at runtime? i.e. if i upload in the zip a txt file, is it allowed to read it? If the answer is yes, which is the path that we can use to access?
I have uploaded an example containing a file and I'm trying to read it with a FileInputStream, but i had no success with it so far.
- Created Thursday, March 17th 2016 @ 19:52:03
anyone? Not even using a class loader it works... I saw the thread about File I/O but I was not sure if it is about what I'm asking exactly...
So despite training a bot locally, it's not possible to attach a file with the information saved? Should I really have an enormous string to use that information? :)
- Created Thursday, March 17th 2016 @ 20:56:38
Jose, I am not sure this will help, but I know the server picks up other files in the zip. It loads my Ruby class files appropriately from their subdirectory, with an extension of '.rb'
If I couldn't get file i/o working in your position, I would put a gigantic string in one of my Ruby files. Sorry that I don't have any specific help.
If it's not currently possible, it would be nice to be able to perform file ops.
- Created Thursday, March 17th 2016 @ 21:48:43
thanks a lot for your answer :) I will try to read from the zip somehow, I will comment on that for the acknowledge of everybody with the result
- Created Friday, March 18th 2016 @ 09:58:36
it doesn't look to behave as I want... anybody has any other suggestion?
could anybody from the support team tell if reading files from the uploaded zip is supported for Java in the code?
Just to keep trying or go for a different alternative...
DeveloperCreated Friday, March 18th 2016 @ 10:58:36
Actually I'm not completely sure if it will work or not. The file will be located at ./src/
- Created Friday, March 18th 2016 @ 11:12:34
thanks a lot jim! I will try it out considering that as soon as I have some time and provide that information
- Created Friday, March 18th 2016 @ 18:47:16
Well, it doesn't seem to work so I will figure out a more imaginative way to avoid files.
I tried reading from ./src making the assumption that my uploaded zip was there with the same name and searched my file inside that zip, but it does not work :(
- Created Friday, March 18th 2016 @ 20:36:55
I doubt the zip itself is there, probably just the files after unpacking.
- Created Thursday, March 31st 2016 @ 15:46:19
Finally I did not manage to read a file... I was also trying to read just the file unzipped with no success...