Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi

help me to snapshot from ip camera in C# and save image in sql database

i dont khnow how do this ???!!!

my sample CGI of Messoa Ip Camera : http://192.168.1.30/ipcam/jpeg.cgi

user : admin
password : 1234
Posted
Comments
Sergey Alexandrovich Kryukov 19-May-13 16:15pm    
Help with what? It looks like you already know all you need, just need to do the job...
What bitmap format do you want to use in your database and why? Is the format a problem?
—SA
Meisam Parsa 19-May-13 17:24pm    
I do not know how to start a photo from my ip camera and how save this in database

1 solution

It's nearly impossible to help a person who fails to understand that the URI "http://192.168.1.30" is the local address, won't be visible through the Web.

Now, from the standpoint of HTTP user, the IP camera is nothing but a Web server, so you can get the image using the class System.Net.HttpWebRequest. Please see:
http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx[^],
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^].

For the code sample, please see, for example: http://louisabeyta.com/2012/01/17/c-code-to-view-ip-camera-images/[^].

As to the database storage for images, honestly, it's not good to answer the question again, after it was answered so many times. Please see: http://www.codeproject.com/search.aspx?doctypeid=5&q=database+%28image+OR+images+OR+bitmap+OR+bitmaps%29[^].

—SA
 
Share this answer
 
Comments
Meisam Parsa 20-May-13 3:12am    
Thanks buddy
Sergey Alexandrovich Kryukov 20-May-13 6:07am    
Sure.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900