Go to Post Use these tools as a starting point, not as an end product. - Tom Bottiglieri [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 01-16-2011, 11:14 PM
sjspry sjspry is offline
Registered User
FRC #1984
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Kansas
Posts: 125
sjspry has a spectacular aura aboutsjspry has a spectacular aura aboutsjspry has a spectacular aura about
Re: Access Axis 206 Image Data

Great, thank you for the information. Sadly, I don't think I'll be able to do much via the method you described. Instead I am trying a method which connects the camera to the robot's router/radio (iirc they send out a router instead of a bridge this year). From there I can just query the web server to get a .jpg image.

Quote:
HttpConnection con;
DataInputStream conIn;
DataOutputStream conOut;

// Basic authentication expects base-64 encoded "user$@#$@#$@#".
// This is "root$@#$@#$@#" or whatever the default is.
String encodedLogin = "cm9vdDphZG1pbg==";

con = (HttpConnection)Connector.open("http://10.19.84.10/axis-cgi/jpg/image.cgi?resolution=320x240");
con.setRequestProperty("Authorization", "Basic " + encodedLogin);

System.out.println(con.getResponseCode() + " " + con.getResponseMessage());

conIn = con.openDataInputStream();
conOut = con.openDataOutputStream();
This might or might not be too slow. The response time seems slower than the mjpg stream which can be accessed at /mjpg/video.mjpg

Also, I don't know if it's possible to store cookies or use them (easily). It's probably required that you re-auth on each grab.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:02 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi