When i upload files, it stores them as bytes in a table. Instead of storing as bytes in a table; can i store files with only file name.
When i upload file into a table it shows it displays the value as shown below:
File (table name)
Image(image field): 0x255044462D312E350D0A25B5
I want to store it like this:
File (table name)
Image(image field): file.pdf
can i simply upload a file into a table with only file name and retrieve the file with file name ? I dont want to store it as bytes instead i want to store as the name of the file. Below is what i did.
protected void btnUploadAvatar_Click(object sender, EventArgs e)
{
if (fileUpload_1.PostedFile != null && fileUpload_1.PostedFile.FileName != "") ;
{
byte[] imageSize = new byte[fileUpload_1.PostedFile.ContentLength];
...
Go to the complete details ...