Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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?

like image 470
SymGym Avatar asked Nov 05 '22 08:11

SymGym


1 Answers

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?

like image 167
Cal Jacobson Avatar answered Nov 10 '22 07:11

Cal Jacobson