CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Error Saving IWCGJQImage to server

by bryl » 27 Apr 2017 03:08

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
bryl
 
Posts: 15
Joined: 23 Mar 2017 17:23

by Jorge Sousa » 27 Apr 2017 12:32

hello

What is server folder?
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by bryl » 27 Apr 2017 17:23

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!
bryl
 
Posts: 15
Joined: 23 Mar 2017 17:23

by Alexander Bulei » 03 May 2017 15:46

Hi bryl,

APP or ISAPI?

Best Regards
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by bryl » 02 Jun 2017 21:30

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
bryl
 
Posts: 15
Joined: 23 Mar 2017 17:23

by Alexander Bulei » 26 Jun 2017 10:06

Hi bryl,

Please use the IWCGJQImage2.SaveImage method to save the image.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQImage

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.