473,398 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Reference to files in SQL database Web App

Hi,
I have question about techniques of using files
in SQL Server in Web Application.
Assuming that I send files from my Web App ( client )
to server and located these files on hard disk ( on server ),
I'd like to view these files and I want to have possibilities
to open it.
How can I do it ?

My only one idea is :
In table in database I should put path to specific file ?
And then I know reference to specific file connecting to
display name.
( Unless I can put files in database, not disk? I'm not good at SQL yet ,
but I doubt it )

Any others idea ? Any example in C#.

Thanks in advance.

[ ASP .NET, C#, SQL Server 2000 )

Best Regards,
grzybek
Nov 18 '05 #1
1 1303
You have several options, depending upon the specifics of your requirements.

1. Store the path the files in the database. Very efficient
2. Store the files in the database. Very inefficient
3. Don't use a database. Just use the file system. Most efficient, however,
depending upon your requirements, this could be good or bad. For example, if
all of the files in a folder were downloadable, you could simply use the
System.IO namespace to work with the file system, creating a link to each
file in a page dynamically. If, however, there are a large number of files,
and you want to be able to search on them, or some of the files in the
folder should not be downloadable, this would not be your best choice.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"grzybek" <no************@gze.pl> wrote in message
news:bs**********@news2.ipartners.pl...
Hi,
I have question about techniques of using files
in SQL Server in Web Application.
Assuming that I send files from my Web App ( client )
to server and located these files on hard disk ( on server ),
I'd like to view these files and I want to have possibilities
to open it.
How can I do it ?

My only one idea is :
In table in database I should put path to specific file ?
And then I know reference to specific file connecting to
display name.
( Unless I can put files in database, not disk? I'm not good at SQL yet , but I doubt it )

Any others idea ? Any example in C#.

Thanks in advance.

[ ASP .NET, C#, SQL Server 2000 )

Best Regards,
grzybek

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Peter | last post by:
Does anybody have (a link to) a reference of available SQL commands in MS-Access? I know you can use SOME VisualBasic commands, but I cannot find a reference anywhere! Among other things, I need...
2
by: Kathy | last post by:
Hi All, I have several users who are getting a compile error "Can't find project or library when the code hits Dim cat as ADOX.Catalog In the references dialog box it show the msadox.dll as...
7
by: Mike | last post by:
I have developed a Microsoft Access database program. It was done originally in Access 2000. I am having trouble now installing on some other systems, particularly if they are using Access...
7
by: TJ | last post by:
In C# how do you achieve pass-by-reference property declarations in the Type Library? I am writing a COM Class Library that must mimick an existing library for which the only information is the...
4
by: Moe Sizlak | last post by:
Hi There, I have a user control that has 2 listmenus populated from a database, I want the form to submit when the listmenu are changed which seems to happen no problem when the page is on it's...
2
by: Mark | last post by:
Hi, I'm fairly new to .NET and having problems getting an ASP.NET page working on my web host. The page works fine on my PC running against localhost. I have a MySQL database and a simple C#...
2
by: Ben | last post by:
Hi, I need to add a reference in my project to a file (e.g. mysqldata.dll) in order to access Mysql. Using Visual Web Developer, i know how to do (menu website/add reference), but suppose i...
3
by: ApexData | last post by:
I know that somethimes when I make changes to the tables (like adding new fields), these changes do not always appear in the field list. If I remove the table name from the forms record source,...
3
by: shapper | last post by:
Hello, On an ASP.NET MVC project I am getting a list of Tags which names start with a string contained on the variable "q". Everything works fine if no Post is related to Tags. When there is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.