Atozed Forums
Loading and saving image - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Loading and saving image (/thread-2115.html)



Loading and saving image - Landon - 11-12-2020

I am very new to IntraWeb and web development for that matter.  I am trying to allow a user to take a pic from their phone and save it to a database through a browser.

I have figured out how to allow the user to take a pic and display it through the TemplateProcessorHTML and javscript.  However, I am not sure how to get the loaded image from there, to a point where I can save it.

I figured there has to be an IW component I can use for this, but I do not know where to start.  I have other forms that I have text fields saving just fine, but I am not using the TemplateProcessor for them. 

Any help would be appreciated.


RE: Loading and saving image - Jose Nilton Pace - 11-13-2020

Hi, see this demo: https://github.com/Atozed/IntraWeb/tree/master/XIV/Delphi/FileUploaderDB


RE: Loading and saving image - Landon - 11-13-2020

Well that was easier than I thought.

I didn't know the FileUploader would give access to the camera on a mobile device. I can get rid of the whole TemplateProcessorHTML now.

Thanks!