Which is the better alternative when allowing file uploads on a page (through a Gridview populated by a coded DataSet)? Store the image itself in the database or to store only the path name to the saved file in file system. If it matters, I do not expect to have more than a few dozen images stored in the database at any given time.
Is it better to store images directly in a database or to just store the name of the file in the db and display that file? I would think that just storing the filename of the image would keep the db size low...
im new to playing with storing and retrieving image to and from database Now i successfully store image into database and able to display it But the problem is the displayed image is too big eventhough it is originally quite small, around 300x400, but display like 800x600 So how do i set the width and height of it?Below is my image storing code
I want to store a doc file [say its a resume.docx file] into a database like sql server 2005 and i want the file to be displayed into my aspx page if the file has been updated to the database And also is there some means by which by pressing some link he can get a edit window so that he/she can edit his/her document file.
how to store files (pdf and word files) into sql database and how to display that files with an option of "save" , "open" from sql data base when user click. i am doing project using c# + asp.net web application
I am working with one project like software corner !in which i upload my all software and end-user can download that software but my problem is how i store my software's(>25MB.exe files) in database ...
I need displaying my image file stored from my database into the image control. I've had read some articles and watch video tutorial which there were perfectly working and I followed it but I wasn't able to make it work. The image control just displayed blank. I used Generic Handler to retrieve the image file from my database based on the articles and tutorials I've got. here are my codes below:
Code: <%@ WebHandler Language="C#" Class="ShowImage" %> using System; using System.Configuration; using System.Drawing; using System.Drawing.Imaging;
website using text file to store data and display it using html codings. The requested website must be able to do the following functions:
1) Browse for template using txt file and select the txt file as template. (Font-styles, headers, tables....etc) 2) Browse for txt file that stores the data and display them in a so called table format categorized properly. 3) Able to do a search function and store the search results in a new txt file. (Which means a new txt file is created everytime someone performs a search and the search results is stored in the new created txt file)
Is there any website with informations/tutorials on these?
I am trying to store data from an XML file to a table in my database, but I keep getting the same error.
This is my code from the cs file:
And this is my error:
Violation of PRIMARY KEY constraint 'PK_Areas'. Cannot insert duplicate key in object 'dbo.Areas'.
The statement has been terminated.
In my XML file I have both existing rows and new rows for the database table. I'm guessing I have to do something to sort out the the rows that are not already in the database, but so far I have been unsuccessful to figure this out.
I am facing problem..how to read Excel file from the 5th row onwards and how to store the all records into Database Note: More over i do want store few coloumns records(3 out 8) only in my database. consider this point.