473,666 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Display Access Database OLE Objects

Dear Experts,

I'm using the asp.net 2.0 fileupload control to upload files into Access
Database. The file types that being uploaded may be in word, excel or image
format. Therefore, I would like to seek your help to show me how can I have a
link in my webpage to view this file by reading from the database?

Your feedback/help is very much appreaciated.

Regards,
SB
Jan 25 '06 #1
2 1310
See my rescent reply in post "images from SQL to gridview" (example i
attached to that post was for SQL server). You can amend this example to
support different file types using MIME types
Response.AddHea der("Content-Disposition", "filename=" + YourFileName)
response.Conten tType = "applicatio n/msword" // it's an example of the MIME
type

Here you can find a list of known MIME types supported by IE
http://msdn.microsoft.com/library/de...appendix_a.asp
--
Milosz Skalecki
MCP, MCAD
"Seok Bee" wrote:
Dear Experts,

I'm using the asp.net 2.0 fileupload control to upload files into Access
Database. The file types that being uploaded may be in word, excel or image
format. Therefore, I would like to seek your help to show me how can I have a
link in my webpage to view this file by reading from the database?

Your feedback/help is very much appreaciated.

Regards,
SB

Jan 25 '06 #2
Thanks. Do you have the codes in vb.net versoin as I'm not well verse in C#?

Thanks.

"Milosz Skalecki" wrote:
See my rescent reply in post "images from SQL to gridview" (example i
attached to that post was for SQL server). You can amend this example to
support different file types using MIME types
Response.AddHea der("Content-Disposition", "filename=" + YourFileName)
response.Conten tType = "applicatio n/msword" // it's an example of the MIME
type

Here you can find a list of known MIME types supported by IE
http://msdn.microsoft.com/library/de...appendix_a.asp
--
Milosz Skalecki
MCP, MCAD
"Seok Bee" wrote:
Dear Experts,

I'm using the asp.net 2.0 fileupload control to upload files into Access
Database. The file types that being uploaded may be in word, excel or image
format. Therefore, I would like to seek your help to show me how can I have a
link in my webpage to view this file by reading from the database?

Your feedback/help is very much appreaciated.

Regards,
SB

Jan 26 '06 #3

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

Similar topics

3
5914
by: Ken | last post by:
I have a database called autographs.mdb that is in the "XYZ" folder in the "database" folder. I have a form in the database that I want to display a photo of the celeb on. The photos are in a "graphics" folder that is on the same level as the "xyz" folder. The only way I can seem to make it work is to put the entire path including hard drive in the table (c:\database\graphics\photo.jpg). But I also want to upload the database to the web...
3
10653
by: RAllsopp | last post by:
I have a client who would like to have several pictures associated with one system. I have read about storing only the pathname to save OLE overhead and have set-up a form for my client to browse/add one picture at a time to a system. Now he would like to 'view' all of the thumbnails associated with any system on a single form. I can setup a main/subform scenario, but how do I show all of the pictures as thumbnails. I was using the...
12
20904
by: Wadim Grasza | last post by:
I want to store and display (on a form or a report) multiple pictures per record in an access database. The pictures are not stored within the database. They are stored as files and the database contains the paths to the pictures. The database consists of two tables: TABLE DATA ID Name LastName
2
2837
by: news | last post by:
hi im new in the .net environnement i have a work to do in school im able to display a datagrid using a database in access and im also able to display a datagrid using a database in foxpro 8.0 but i want to display in my browser the both datagrid in the same page, one using access db and the other with foxpro db. how can i integrated the both in the same program?
52
9955
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server 2005, and, since he already has licenses for Office Pro 2002, he wants to upgrade to that. I've been saying that we need to upgrade to Access 2003, not 2002, even if Office is kept at 2002. We are also looking to do a fair amount of...
0
8440
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8352
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8863
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8780
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6189
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.