Totally stuck! Need assistance, please.

5 posts, 0 answers
  1. Steve
    Steve avatar
    84 posts
    Member since:
    Aug 2013

    Posted 27 Aug 2013 Link to this post

    I'm new to Telerik and am having trouble trying to write the correct code to do the following scenario.

    I have a SQL Server 2008 as backend. Here is the scenario. A new employee needs to have her photo taken and added to a webpage. The photo is not committed to the database until the Save button is pressed.

    I need to present a default image in a "new employee" entry screen. A button is pressed to popup the image capture. The image is saved to a work table in the database (WRK_PHOTO). I need to now take the image from WRK_PHOTO and replace the default image on the page. Once the save button is pressed, the new image is saved to the database in the EMPLOYEE table.

    I have the whole web cam capture and save to WRK_PHOTO in place and working.

    What I don't have is the display of the temporary default image on the screen, and replacing it with the newly captured photo stored in WRK_PHOTO. Also, I don't know how to save the new image to the EMPLOYEE table when the save button is pressed.

    I attached a .PNG graphic image of what I'm looking to do. The capture of the webcam is done. I just to know how to handle the interaction with the Telerik image control.
  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 29 Aug 2013 Link to this post

    Hello Steve,

    You are able to save the image into the WRK_PHOTO table, but you can not save it to the EMPLOYEE table?
    Don't you use the same approach for saving the image?

    It will be good to provide us sample code that you are currently using. It will be more effort for the community to write you full example, than to modify your current code and/or to point you what you can do.

    Regards,
    Vasil
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Steve
    Steve avatar
    84 posts
    Member since:
    Aug 2013

    Posted 29 Aug 2013 Link to this post

    it's not a question of saving it to the Employee file. At the time the image is captured, for new employees, i don't have a record a record in the Employee table yet. And for existing employees that are getting a newer image, I don't want to overwrite the existing one, just in case they cancel instead of commit. So, I save it to the WRK_Photo as a temporary holding area.
  5. Damian
    Damian avatar
    8 posts
    Member since:
    Nov 2014

    Posted 05 Nov 2014 Link to this post

    Sorry for the old thread revivial..

    Interested in how the OP captured the image in the first place  and saved to wrk_photo?

    Are there any examples for this in the Telerik code library

    Thanks,
    Damian
  6. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 06 Nov 2014 Link to this post

    Hello Damian,

    Examine the code of this demo that uses RadAsyncUpload in combination with RadGrid to upload images and show them using the RadBinaryImageControl:
    http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandradasyncupload/defaultcs.aspx

    Regards,
    Vasil
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017