Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get image from a local network location

Status
Not open for further replies.

normm

Programmer
Dec 9, 2004
46
GB
Hi all,

I have been asked to add image retreval from a CCTV camera to our application. I have figured out the indexing of files and how to manipulate them once an image file has been recovered from the camera however I cannot seem to get clarion to recover the file from a location on our local network.

E.G. This works.....

Code:
 COPY('C:\Bespoke62\SpycamTest\Images\image.jpg','C:\Bespoke62\SpycamTest\ImageArchive\image2.jpg')
OBVIOUSLY...

however this doesn't
Code:
 COPY('//192.168.154.7/jpg/image.jpg','C:\Bespoke62\SpycamTest\ImageArchive\image2.jpg')
OR this......
Code:
 COPY('\\192.168.154.7\jpg\image.jpg','C:\Bespoke62\SpycamTest\ImageArchive\image2.jpg')
OR this....
Code:
 COPY('http:\\192.168.154.7\jpg\image.jpg','C:\Bespoke62\SpycamTest\ImageArchive\image2.jpg')
OR this.....
Code:
 COPY('[URL unfurl="true"]http://192.168.154.7/jpg/image.jpg','C:\Bespoke62\SpycamTest\ImageArchive\image2.jpg')[/URL]
Am I even approaching this in the correct way? - Do I need any add-ons such as I.P. Driver v2.0.

Any help greatly recieved

Normm.
 
thanks Gaudalier - I cheated in the end - I setup the cam to transfer images to an ftp site on my local computer - that way the first example in my last post seems to work ! result! now I just have to compare the file names with the events stored in the DB and i Cracked the problem.
 
Hi Normm,

I see you have posted this in the SV Forums and Mike Hanson has suggested you try it first on the Command Prompt. The reason is that if you are trying to copy from a shared drive on another workstation, you need access rights and the share name. So if your C drive is shared as C$ and your IP is 192.168.200.1, then somebody can copy a file called TEST.fil from your Windows folder like :

copy \\192.168.200.1\c$\windows\test.fil ....

providing they have rights to access your drive.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top