Page 1 of 1
Error Saving IWCGJQImage to server

Posted:
27 Apr 2017 03:08
by bryl
I have tried several options to save the picture in IWCGJQImage to the server folder but none work.
IWCGJQImage.SaveImage('1.jpg');
IWCGJQImage.Picture.SaveImage('1.jpg');
IWCGJQImage.Picture.Picture.SaveToFile('1.jpg');
Any suggestions?
Thank you
Bryan
Re: Error Saving IWCGJQImage to server

Posted:
27 Apr 2017 12:32
by Jorge Sousa
hello
What is server folder?
Re: Error Saving IWCGJQImage to server

Posted:
27 Apr 2017 17:23
by bryl
I have tried multiple..
IWCGJQImage.SaveImage(webapplication.contentpath + '1.jpg');
IWCGJQImage.SaveImage(WebApplication.UserCacheDir + '1.jpg');
wwwroot/anysubfolder is where i want it to go
I also checked that the folder is read/write.
Any idea what I am doing wrong?
Thanks!
Re: Error Saving IWCGJQImage to server

Posted:
03 May 2017 15:46
by Alexander Bulei
Hi bryl,
APP or ISAPI?
Best Regards
Re: Error Saving IWCGJQImage to server

Posted:
02 Jun 2017 21:30
by bryl
APP
The problem may be in the jWebCam component.
What I am trying to do is use the Jquery demo app webcam form. I use the Take snapshot button "JQWebCam.Snap(JQImagePreview);"
Then i use the following code to try and save the image to a server folder (yes the folder has read/write access).
IWCGJQImage2.Picture.Picture.SaveToFile(getpath + 'wwwroot\upload\mypic.jpg'); I cannot get any path to work... no image shows up!
Also tried
JQWebCam.Save; The upload path was set like above and the file shows up in the folder but its 0kb.
Please just test your demo app and let me know why I cannot get the JQWebcam and iwcgjqimage components to work.
Thanks
Re: Error Saving IWCGJQImage to server

Posted:
26 Jun 2017 10:06
by Alexander Bulei
Hi bryl,
Please use the IWCGJQImage2.SaveImage method to save the image.
Best Regards.