Hi, I am creating the user ,using asp.net + C#.there is the form (UI) who collects the information and send data to Business layer. now, while collecting the information from UI I want to also save the image of user, at file system in application domain.
There is function in the business layer as SaveImage, which returns the path where it is saving. Scenario: 1) Save image first and then save other information in DB. 2) Save Information first in DB and then uploads the image.
Which will best scenario. If scenario 1 is better then what if the save image get crashes ?