473,387 Members | 1,596 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,387 software developers and data experts.

Could asp.net create files on client machine?

Does it have any ways that asp.net web application can create the file on
client computer or
get files from client computer?

Thanks.
Jul 15 '14 #1
2 1182
yarbrough40
320 100+
yes - typically these things are accomplished using Active X controls. Not sure if Active X has been replaced by another technology since it's been around for quite some time
Nov 1 '14 #2
Frinavale
9,735 Expert Mod 8TB
In this post I explain how to retrieve an image from the server computer and write it into the response's output stream so that it is sent to the browser.

All you have to do is change the Response.ContentType = "image/jpg" to match the type of content you are sending down to the browser.

Once the content is sent to the browser the browser will attempt to open it in a plugin that can open the file. If there is no plugin that matches the ContentType that you sent, it will open a dialog that lets the user save the file to their computer or cancel the action.

If you want to force the item to be downloaded (not opened by the browser) you can specify the type "application" as the ContentType and the browser will not have a matching plugin.

You may want to rename the aspx file to something other than "Thumbnail" as well.
Nov 3 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Carolyn Speakman | last post by:
Hi, I need to get a directory listing from a client machine. The directory will be specified by the user and the results will be stored on the server in an xml file. I've been trying to use the...
3
by: Prasad Patil | last post by:
Hi, I have a webform, The link on the webform should call the exe program installed on the client machine when the user click the link on the webform. It should run the exe installed on the...
3
by: Iwan Petrow | last post by:
Hi I have a Web application. How could I copy a file from one path on the client machine to another path on the client machine? Thanks.
1
by: luciano | last post by:
Hi everyone, I want to create a application and a webservice, application connect to web service to activate, web sevice will create a certificate to authenticate this client, for each...
2
by: cedced | last post by:
Hello, is it possible to access client files in VB.NET? What? I have doing that but it isn't good (VB.NET take file on pc server and not on pc client): (thanks) Dim fichier As StreamReader ...
3
by: Beatrice | last post by:
I am stuck with this problem and desperately need your help. I would like to upload an xml file or any file from client machine and then save it to the server machine. Since the file path on the...
10
by: sonny | last post by:
Is there a way to do it? thx...sonny
7
by: Grace | last post by:
Does it have any ways that asp.net web application can create the file on client computer or get files from client computer? Thanks.
5
by: rohitkumar | last post by:
I am trying to build a web application which can execute dos print command on the client machine. This application will read a file stored in server and it will create a folder on client machine...
1
by: Gopala Raghavan | last post by:
I have compiled the sample application 'Localdata' in Visual Studio 2005 and published it IIS 5. The data files are located on the C Drive of this machine which is called DEV15. When I run it from my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
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...

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.