-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues in getting image from the Foscam #2
Comments
Hello, The What do you want to do with the picture? Display it in the application or save it to a file? If you want to do the latter, simply open a Here's a link to the official documentation by Foscam, see function |
I also tried this , it did not help Sir. Can not get image from snapPicture |
Did you have any luck getting the image? |
Hello, which camera model and firmware version do you have? Please make sure you've upgraded o the latest firmware, because there was a bug across multiple camera versions a while back which caused the method to return HTML data instead of JPEG (ref 1, 2). Unfortunately I am only able to test FoscamAPI on my FI9900P because that's the only camera I own. The snapPicture() method works fine with my camera, so I cannot resolve this issue. I would appreciate pull requests though if you have fixed the issue. Thanks. |
F9800 is the model number. |
Hey,
I tested it on another foscam which is F9900p. The issue still persists.
Firmware is updated to the latest. snapPicture() still doesn't work.
Also, is there an option to set the ip address of camera to static?
Thanks
…On Mon, May 18, 2020 at 11:56 AM hypothermic ***@***.***> wrote:
Hello, which camera model and firmware version do you have? Please make
sure you've upgraded o the latest firmware, because there was a bug across
multiple camera versions a while back which caused the method to return
HTML data instead of JPEG (ref 1 <https://stackoverflow.com/a/32669933>, 2
<http://foscam.us/forum/fi9816p-broken-snappicture2-bug-t13482.html#p62238>
).
Unfortunately I am only able to test FoscamAPI on my FI9900P because
that's the only camera I own. The snapPicture() method works fine with my
camera, so I cannot resolve this issue. I would appreciate pull requests
though if you have fixed the issue. Thanks.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHQTVWHZDPHGUKDGZM2LTU3RSDIKXANCNFSM4MP6UDHQ>
.
|
Foscam foscam = new Foscam("192.168.0.180", 88, "user", "passwd");
// Get current IP configuration
IPConfig ipConfig = foscam.getIPConfig();
ipConfig.isDHCP = false;
ipConfig.ip = "192.168.0.190"; // your new static IP;
// Set the new values
foscam.setIPConfig(ipConfig); The camera will automatically reboot after |
Thanks a lot for the help. The snapshot is still not working though. Lets
see.
…On Thu, 28 May 2020 at 1:15 PM, hypothermic ***@***.***> wrote:
Also, is there an option to set the ip address of camera to static? Thanks.
Foscam foscam = new Foscam("192.168.0.180", 88, "user", "passwd");
// Get current IP configurationIPConfig ipConfig = foscam.getIPConfig();
ipConfig.isDHCP = false;
ipConfig.ip = "192.168.0.190"; // your new static IP;
// Set the new values
foscam.setIPConfig(ipConfig);
The camera will automatically reboot after setIPConfig(...) so make sure
you set the right IP.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHQTVWFHERFORNRUGRMNF23RTYJBFANCNFSM4MP6UDHQ>
.
|
Hello again ! First thanks for the help with the other issue !
I would like to get an image from the foscam camera. I found your SnapPicture method but as I saw that we only get the http line to access to the image with an explorer.
I read the foscam class and I feel like this is the only method to get an image, am I right ? If not what would be the other option.
Moreover I tried this method and I just got some unreadalble characters :
Kind regards,
Martin
The text was updated successfully, but these errors were encountered: