I am using an ASP.Net web application where I use a browse button to choose a file type then a browse button to locate a file, and it places this data in a SQL table.
2 questions stemming from this...
1) if I just added the data directly to the table from a push button event, would that essentially replicate the steps of me logging into the web form and following the steps described above?
2) if the answer to question 1 is yes...what would some sample coding be to perform this? I could probably tweak it if I had a guide to go from.
Loading
richard smithPosted Apr 6, 2013, 8:15 AM
I want to use a C# windows form to programatically upload the files to this web site. Going off the link you provided, if I used C# and ran a SQL INSERT INTO statement would that essentially be the same process as going to the website and uploading a file?
Mahesh ChandPosted Apr 6, 2013, 12:01 AM
To answer your first question, Logging has nothing to do with reading an image and storing it in a database.
Here is an article that shows how to store an image in database,
http://www.c-sharpcorner.com/UploadFile/satyapriyanayak/how-to-save-image-along-with-details-into-database-in-asp-ne/
See Similar Articles and search site to find more code samples.