Loading...
Logo
Processing Forum
Hello,

Using BufferedReader I get data from a file and render them successfully
using ' text' and ' point' functions by pushing the run button.

But,
When I export the app to an applet and access it via a browser, I 
do not see the rendered image.

Please let me know what could be wrong in this procedure and how to remedy it.

Thank you in advance,
Kazem

Replies(8)

did you put the data file into the "data" folder or is it in the sketch root folder?

It is in the 'data' folder.
Please note that when I run the program from the Processing GUI (pushing the 'run' button) it works fine.
But when it is exported as an applet, it does not work.

Thanks,
Kazem
i asked because, the program runs fine as it also checks the root folder, but the files dont get exported when not in the data folder, so that could have been the problem.
Attached is the the structure of the folders in my program.
I even copied the 'data' folder into the applet's folder.
Still it is not working in the applet. (it works fine vi Processing's own GUI)


You need to use loadStrings() to load your data from the data folder.


See here:

" Advanced Topic: Notes on the data folder"
http://processing.org/learning/overview/

F
It worked like charm Florian! 'loadString' was the trick. 
Thank you very much for your time.

Z
oh, missed the bufferReader part. I thought you are already using loadString...

Cedric, 
Thanks for your time in answering my question.
This is an excellent community!

Regards,
Kazem