Upload a photo from camera to PHP server
The end result is that I want to upload selected photos from and Android phone to a php website.
I can display the images from the camera and get the filename that I want to upload. However I cannot use FileInputStream on the file name because it is not private to my application. Use FileInputStream generates an error that the开发者_如何学JAVA file contains a path separater.
Does anyone know how to get the filestream running? Do I have to copy the file into a private file store?
Have you checked this blog post? How about this discussion thread? Is this one useful?
Are you perhaps pigeonholing yourself into a particular solution, where another might exist?
精彩评论