  //Initialize the FileOutputStream to the output file's full path.
//	             FileOutputStream fos = new FileOutputStream("f:\\xxxxx.jpeg");
//	             BufferedOutputStream bos = new BufferedOutputStream(fos);
//	             InputStream is = socket.getInputStream();
	             
	             //No of bytes read in one read() call
//	             int bytesRead = 0; 
	             
//	             while((bytesRead=is.read(contents))!=-1)
//	                 bos.write(contents, 0, bytesRead); 
	             
//	             bos.flush(); 
//	             socket.close(); 
			
				 
	             socket.close();