Hello,
I am a newbie and am developing an application for work.
I have figured out how to upload a file attachment to the SQL database
and download the same file using C# and Visual Studio. However, the
user wants to download and edit a file and then upload the same file
back to the database (ie overwrite the file). How do I do this?
Also, how to upload/download the file to a network drive instead of
database?
Your help is greatly appreciated.
AB 4 3902
AB,
If the file is on the network that you are connected to, then you can
use the static members on the File class to move the file between different
places on the network.
As for editing the file, it depends on what kind of file it is. If you
want the OS to just run whatever app is registered to handle the file, then
you can pass the path of the file to the Process class (specifically, the
static Start method), and it should launch the app, with the file as an
argument to the app (thereby loading the file in the app).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
<ab******@hotma il.comwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
Hello,
I am a newbie and am developing an application for work.
I have figured out how to upload a file attachment to the SQL database
and download the same file using C# and Visual Studio. However, the
user wants to download and edit a file and then upload the same file
back to the database (ie overwrite the file). How do I do this?
Also, how to upload/download the file to a network drive instead of
database?
Your help is greatly appreciated.
AB
Hello Nicholas,
Thank you for your response. It is helpful. And, yes, I want the OS
to run the application the user downloads ie word, pdf, etc.
Do you have any sample code to upload/download to network and edit, or
is it more or less the same concept as uploading to SQL?
Thank you.
AB
Nicholas Paldino [.NET/C# MVP] wrote:
AB,
If the file is on the network that you are connected to, then you can
use the static members on the File class to move the file between different
places on the network.
As for editing the file, it depends on what kind of file it is. If you
want the OS to just run whatever app is registered to handle the file, then
you can pass the path of the file to the Process class (specifically, the
static Start method), and it should launch the app, with the file as an
argument to the app (thereby loading the file in the app).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
<ab******@hotma il.comwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
Hello,
I am a newbie and am developing an application for work.
I have figured out how to upload a file attachment to the SQL database
and download the same file using C# and Visual Studio. However, the
user wants to download and edit a file and then upload the same file
back to the database (ie overwrite the file). How do I do this?
Also, how to upload/download the file to a network drive instead of
database?
Your help is greatly appreciated.
AB
AB,
When moving a file on the network, all you have to do is move the file
using the static methods on the File class. It's different from SQL, since
with SQL, you have to read the bytes from the file and write them to SQL
Server.
With files, you can have the OS move the file for you.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
<ab******@hotma il.comwrote in message
news:11******** **************@ m79g2000cwm.goo glegroups.com.. .
Hello Nicholas,
Thank you for your response. It is helpful. And, yes, I want the OS
to run the application the user downloads ie word, pdf, etc.
Do you have any sample code to upload/download to network and edit, or
is it more or less the same concept as uploading to SQL?
Thank you.
AB
Nicholas Paldino [.NET/C# MVP] wrote:
>AB,
If the file is on the network that you are connected to, then you can use the static members on the File class to move the file between different places on the network.
As for editing the file, it depends on what kind of file it is. If you want the OS to just run whatever app is registered to handle the file, then you can pass the path of the file to the Process class (specifically, the static Start method), and it should launch the app, with the file as an argument to the app (thereby loading the file in the app).
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
<ab******@hotm ail.comwrote in message news:11******* *************** @p79g2000cwp.go oglegroups.com. ..
Hello,
I am a newbie and am developing an application for work.
I have figured out how to upload a file attachment to the SQL database
and download the same file using C# and Visual Studio. However, the
user wants to download and edit a file and then upload the same file
back to the database (ie overwrite the file). How do I do this?
Also, how to upload/download the file to a network drive instead of
database?
Your help is greatly appreciated.
AB
Great thank you so much for your input.
Have a good one.
Nicholas Paldino [.NET/C# MVP] wrote:
AB,
When moving a file on the network, all you have to do is move the file
using the static methods on the File class. It's different from SQL, since
with SQL, you have to read the bytes from the file and write them to SQL
Server.
With files, you can have the OS move the file for you.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
<ab******@hotma il.comwrote in message
news:11******** **************@ m79g2000cwm.goo glegroups.com.. .
Hello Nicholas,
Thank you for your response. It is helpful. And, yes, I want the OS
to run the application the user downloads ie word, pdf, etc.
Do you have any sample code to upload/download to network and edit, or
is it more or less the same concept as uploading to SQL?
Thank you.
AB
Nicholas Paldino [.NET/C# MVP] wrote:
AB,
If the file is on the network that you are connected to, then you can
use the static members on the File class to move the file between
different
places on the network.
As for editing the file, it depends on what kind of file it is. If
you
want the OS to just run whatever app is registered to handle the file,
then
you can pass the path of the file to the Process class (specifically, the
static Start method), and it should launch the app, with the file as an
argument to the app (thereby loading the file in the app).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
<ab******@hotma il.comwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
Hello,
I am a newbie and am developing an application for work.
I have figured out how to upload a file attachment to the SQL database
and download the same file using C# and Visual Studio. However, the
user wants to download and edit a file and then upload the same file
back to the database (ie overwrite the file). How do I do this?
Also, how to upload/download the file to a network drive instead of
database?
Your help is greatly appreciated.
AB
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: scrimp |
last post by:
Ive been using PAMIE 1.4 to try to automate web page processes. The one
thing I cannot do with it is upload files and download files.
With uploading files, the file input box does not allow PAMIE to enter
in a path to a file.
With downloading files, I can click on the link to download the file,
but thats where I get stuck at. It brings up that download window and
then it brings up the where to save window.
|
by: - - Pierre |
last post by:
Hi all,
I'm trying to come up with a script and I'm having a heck of a time...
I require users to enter the size (in MB or KB) of the attachment they
wish to transfer/upload. As they enter the number and move over to
the next field (using onBlur or...), I would like a popup/alert window
warning them that this attachment size would take "x" amount of time
based on a speed of 24 kilobits per second (kbps). If they are happy
with the...
|
by: Gary O'Malley |
last post by:
Everytime I download a file from the web I get a nice animated
dialogue box that shows the size of the file, how much has been
received and the approximate remaining time. It also gives the
connection bandwidth.
I've looked in different development groups through google/groups to
find an example of C # code that would give me a similar readout.
The closest I've come is my local web developer says the Internet
Explorer is the application...
|
by: theburnetts |
last post by:
I am building an ASP.NET application that has a requirement that the
user should be able to download all of the data that they have input
into the system and save it to a file on their local PC. Then at some
future time they should be able to upload it back to the web server and
continue working on it. (Don't ask me why they have to be able to do
this. Apparently the users are super paranoid about saving their data
to the server and...
|
by: pbd22 |
last post by:
hi.
i am having probs understanding how to grab a file being uploaded from
a remote client. i am using hidden input fields for upload such as:
<input id="my_file_element" type="file" name="file_1" size=46 /><input
type=submit />
so, after adding a few files, the input fields look like this:
| |
by: torbjorn.maro |
last post by:
I'm the developer of an enterprise level web application that among
other things handles documents. The documents are stored in a
database. There is now simple functionality to check out and download
the document. This is done my a normal response to the browser,
streaming the document. The user then gets the normal option to
'open', 'save' or 'cancel' til downloaded file.
Normal usage would be to save the file to a known location, open...
|
by: =?Utf-8?B?TGFtaXM=?= |
last post by:
HI,
I am doing an aspx application and need to let my users be able to edit the
information in my database by the page. My first Idea was to let them export
the information to an excel file at local machine where they can edit it och
then upload the file by the page again to save down their changes down to the
database.
Now, this is the code I am using to Upload from sql to excel :
HttpResponse response = HttpContext.Current.Response;
|
by: axelman |
last post by:
Hi guys,
I'm using Classic ASP, IIS6, IE 7, FF 3
I've developed a vb script to downloand files hosted in my server (zip, doc,
pdf, jpg, xls, et. etc.) it's very straight forward and there's a lot of
information around the web, however when it comes to dowload files from a
remote server (NOT hosted in my server) there is no information :-(, the
idea is to have an Access DB that stores the full url...
|
by: KevinADC |
last post by:
Note: You may skip to the end of the article if all you want is the perl code.
Introduction
Many websites have a form or a link you can use to download a file. You click a form button or click on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script.
What You Need
Any recent...
|
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...
|
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...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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();...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |