We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › File Browser for user selection
Page Index Toggle Pages: 1
File Browser for user selection (Read 1720 times)
File Browser for user selection
Jun 27th, 2005, 7:24pm
 
I am developing an applet that needs to prompt the user for a local jpg or gif on the their system. It then processes the image and creates a 3d mesh to be viewed and rotated. Can I write the file browser in Processing? Or is there a security issue with Processing applets? Thanks.

Rob
Re: File Browser for user selection
Reply #1 - Jun 27th, 2005, 8:14pm
 
I put together this applet:
http://mkv25.net/applets/loadSigFromWeb/

I don't know how you would do file browsing in a web applet. I know you can load an image from a website, but if you want people to load images directly from their local drives you're better off having them download an application (standalone JAR package) or making it into a weblaunch package.

So that people could test online, you could supply a set of images that they could choose from that were dynamically loaded into the applet.
Re: File Browser for user selection
Reply #2 - Jun 28th, 2005, 1:31am
 
I could have them upload a file via some other manner as a temp file on the server that could be erased upon exit? Maybe?
Rob

Is that your personal gui library, or is there one for Processing?
Re: File Browser for user selection
Reply #3 - Jun 28th, 2005, 2:50am
 
Thats a personal GUI library that I've written, you access the latest version here:
http://mkv25.net/MyGUI/
I'm currently scrounging together some documentation to go with it (see the /doc/ folder for javadoc comments).

Depending on the sort of web application you intend to develop I would be perfectly happy to upload an image, or images to use within to then use with Java applet.
Re: File Browser for user selection
Reply #4 - Jun 28th, 2005, 9:09am
 
how can you upload a file from the client to the server with Processing? I'll take a look at your gui library, thanks.

Rob
Re: File Browser for user selection
Reply #5 - Jun 29th, 2005, 12:25am
 
I was thinking more of using PHP and webforms to upload files. I wouldn't know how to do it in java.
Re: File Browser for user selection
Reply #6 - Jun 29th, 2005, 12:37am
 
I will probably just do that until I complete the rest of the application, and then revisit it later to make it totally in Processing. Thanks.

Rob
Page Index Toggle Pages: 1