Hello Here it is a long weekend and no good weather, so there is some time to study and I managed to put together a demo, how it is possible to do an image upload(e.g. to care2x) with a simple drag and drop application.
Against my first idea I did this one completely separate from iPath - for the sake of simplicity. The demo has two part: - a web application in PHP (would be care2x in real) - a client app which runs on a workstation, where you can drop images The client-application is written in Python, so you need to have python installed. In addition you need the wxPython GUI toolkit from www.wxpython.org (on Debian: apt-get install libwxgtk2.4-python) The web interface is at http://telemed.utr.ac.za/imagedrop/ from where you can also download the client-app (dropImage.py) at the bottom of the page. On the web interface you can create patient folders (create patient). Then, for existing patients, you can use the "image form" (bottom) to check if the patient exists or to upload images to existing patient. This page needs a password, but all username==password are accepted (strlen>2) All images that you upload go into the patient folder on the server. Now for the drag and drop client application: start the dropImage.py script, enter a patient-it and click connect. If the patient exists, you should see "OK, Hans Muster, 12.3....". Now you can drag images to the box at the bottom of the app and they will be uploaded (using the exactely same form as above). Then, check the new images on the web interface ... If you need an http proxy: > export http_proxy="http://proxy:3128" > python dropImage.py This is only a very simple test scenario, but in principle it should easily work with care2x. The good thing, python would have interfaces for TWAIN, DirectX .... More on the video-app using iPath on Tuesday, when I hopefully will have a camera NOTE: this is not asuggestion for a definite solution, but a very simplified example showing the principle. For a real application it will ev. need a better communication protocol (could be XMLRPC if that is supported in care2x or why not hxp as Wilfried is suggesthing ...). The currenct demo is a rather pragmatic approach that would allow use of the existing care2x web interface. (And of course the same principle coulod be used to easily do the client applciation for patient registration with an integrated VideoCapture for the image ... ) greetings Kurt Brauchli -- ---------------------------------------------------------------- Kurt Brauchli-Haase Telemedicine Unit, University of Transkei Umtata, South Africa tel: +27 47 502 2914 ---------------------------------------------------------------- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Care2002-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/care2002-developers