Professional Documents
Culture Documents
Wireless
Device
Cell Phone is the most commonly
used and easily available Wireless
Device.
No Boundary limit
Once uploaded to the Web Server ,
images/snapshots of the distant
location would be easily accessible
via Internet.
Solution
CostEfficient Implementation
Our Mobile Sender Application will
turn a simple mobile camera into
Surveillance Camera and upload the
current images with the aid of
GPRS/EDGE without requiring any
additional Hardware.
Solution
ØHTTP is connectionless.
ØHTTP is media independent.
ØHTTP is stateless.
Message Format
i?name1=value1&name2=value2.
Methods()
ØThe POST Method
Client Application.
A POST request is used to send data to
the server to be processed by
Servlet.
A block of data sent with the request,
in the message body.
Extra headers like Content-Type: and
Content-Length:
The request URI is not a resource to
retrieve.
Methods()
Parameters:
req - HttpServletRequest that
encapsulates the request to the servlet.
resp - HttpServletResponse that
encapsulates the response from the
servlet.
Phases of Project
Modules
ØSender Client
Ø
ØWeb Server
Ø
ØReceiver Client
Sender Client
Web Server
ØGet Image
Code to receive the image in form
of byte stream from Mobile Client.
Ø
ØDisplay Image
Code to display the image on Mobile
webpage in proper format.
Sub Modules
Viewer Client
Ø
ØUtilizing simple Web Browser (e.g.
Opera Mini) in Cell Phone for
Viewing current image on Mobile
Webpage.
Ø
ØViewer Client Application (if time
permits)
Proper application on Viewer Client
for downloading image from Web
Application Flow
Monitor
Client
ImageCapture
() Web Server
ImageUpload ReceiveImage
() () Viewer
Client
Browser
DisplayImag
Establish connection e ()
DownloadImage
()
Monitor Client
üImageCapture();
ü
üImageUpload();
ImageCapture();
/* the first step in taking pictures (officially called video capture) is
obtaining a Player(to control media) from the Manager. Manager is the
access point for obtaining system dependent resources*/
private void ImageCapture() {
try {
mPlayer=Manager.createPlayer("capture://video"); /*image
captured from camera using default image size*/
mVideoControl=(VideoControl)mPlayer.getControl(“VideoControl");
/*video is displayed on the screen as an Item(superclass of component
that can be added to a form). VideoControl class makes this possible*/
form.setCommandListener(this);
mDisplay.setCurrent(form);
mPlayer.start();
}
while(true) {
try {
Work Left
Monitor
Client
! Removal of Runtime errors
Web Server
! ReceiveImage();
! DisplayImage();
Viewer Client (if time permits)
! DownloadImage();
! DisplayImage();
Tools & Resources
Tools
J2ME (NetBeans IDE 6.5.1)
Tomcat
Resources
java.sun.com/javame
JAVA2 by Ivor Horton
J2ME Tutorials
End Of Presentation