OMAR3101 / jpegcam

Automatically exported from code.google.com/p/jpegcam
GNU Lesser General Public License v3.0
0 stars 0 forks source link

How to Send captured Image to Java Servlet/ Local File System #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Set API url to servlet

Original issue reported on code.google.com by bcar...@gmail.com on 27 Dec 2010 at 8:02

GoogleCodeExporter commented 8 years ago
Servlet save file sample code:

BufferedInputStream bis = new BufferedInputStream(request.getInputStream());
FileOutputStream fos = new FileOutputStream(new File("path/to/jpeg/file"));
byte[] bs = new byte[1024];
int len;
while ((len = bis.read(bs, 0, bs.length)) != -1) {
        fos.write(bs, 0, len);
}
fos.close();
bis.close();

Original comment by korpru...@gmail.com on 30 Oct 2011 at 6:39

GoogleCodeExporter commented 8 years ago
I am not able find the java relevant source code to implement the image 
capturing using  jpegcam. I am trying to find the implementation jquery 
+falsh.Can give some guide lines and urls.

Regards
Venkat 

Original comment by venkatra...@gmail.com on 17 Dec 2012 at 5:45