The camera call part of their own has been written, because more photos taken, now want to take the camera to save the photos in the local, and then upload with FTP, the problem is that the photo was taken well, do not know how to save in the local, please give me an example, train of thought also can be appreciated!
Reply to discussion (solution)
Save to the Web server first, users can choose to download, delete, or do a photo album. From a security standpoint, the browser should not allow Flash to manipulate the files on this computer.
Now do this system must be camera to take pictures, I look for the online example are stored on the server, now to exist locally, with FTP upload, how should I do? Do this step stuck.
Either use JAVASCRIPT+HTML5 to try, or directly on the incoming server, reduce the photo resolution, General 640*480 is enough, because the user's camera resolution is so high, the speed of uploading data in real time is acceptable.
In addition, browsers and flash controls are not allowed to read the local file system.
If Flash can't read and write local files, then what's the use of flash?
JS are all possible (just to pop up the Security Warning dialog box)
What functions do I need to use JS?
Should only be stored on the server, automatically stored on the client computer should not be very realistic, you can use the second floor method, you need to click to download and upload or directly from the server with PHP ftp function uploaded to the destination server, the only way to save to the client is to download from the server
Http://www.baidu.com/baidu?word=flash%E5%86%99%E6%96%87%E4%BB%B6&ie=utf-8
have been learning PHP rookie drifting over
Feel, the landlord of the idea seems to be converted?? Flash to turn the picture into a data stream (directly with the class can be used, such as: Jpgencoder), and then submitted to PHP to save the line, Flash is unable to save the file (except for the desktop Project--air).
PHP Save the file is not difficult
Before doing a similar project, unfortunately can not find things, I php dishes, save the file method is from the degree Niang find
The file storage path is involved in the code.
Now knot paste, thank you for your answer, for my help very much. For this problem, I now change a method, the first one to save the Web server, and then use FTP to save to the destination server.