473,734 Members | 2,647 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Upload/Download Files Via WS

Hello,

I'm involved in developing an application which has the need to transfer
files automtically once a laptop is connected back to the network. The
application i'm developing will automatically realize the network is
available and thus pass a file to a web service that will know what to do
with the file.

My question is what is the best way to transfer a file via a web service
that my application will consume to invoke transfer's either way (upload or
download)?

And what sort of security is best? Security is a concern - would not want
sneaky people intercepting the information.

Thanks for any opinions or input on approaching a solution to this.
--
-Demetri
Nov 21 '05 #1
3 3559
You can go ahead and use the WS2.0 , DIME attachments to transfer files, You
can go ahead and compress files using GZIP before uploading them and
decompressing them when you download, if you want to preserve some
bandwidth.

"Demetri" <De*****@discus sions.microsoft .com> wrote in message
news:7C******** *************** ***********@mic rosoft.com...
Hello,

I'm involved in developing an application which has the need to transfer
files automtically once a laptop is connected back to the network. The
application i'm developing will automatically realize the network is
available and thus pass a file to a web service that will know what to do
with the file.

My question is what is the best way to transfer a file via a web service
that my application will consume to invoke transfer's either way (upload or download)?

And what sort of security is best? Security is a concern - would not want
sneaky people intercepting the information.

Thanks for any opinions or input on approaching a solution to this.
--
-Demetri

Nov 21 '05 #2
WS-Attachments (nee DIME) work very well in this scenario -better than
simple byte arrays on web methods. You can get DIME support if you install
the WSE2 SDK. Just remember to keep your upload sizes below 4MB at a time.
The whole thing breaks down once you go past 3.8MB or so.

--

Klaus H. Probst, MVP
http://www.vbbox.com/
"Demetri" <De*****@discus sions.microsoft .com> wrote in message
news:7C******** *************** ***********@mic rosoft.com...
Hello,

I'm involved in developing an application which has the need to transfer
files automtically once a laptop is connected back to the network. The
application i'm developing will automatically realize the network is
available and thus pass a file to a web service that will know what to do
with the file.

My question is what is the best way to transfer a file via a web service
that my application will consume to invoke transfer's either way (upload or download)?

And what sort of security is best? Security is a concern - would not want
sneaky people intercepting the information.

Thanks for any opinions or input on approaching a solution to this.
--
-Demetri

Nov 21 '05 #3
want to create a webservice which will be used for uploading the file to the
server hosting the Web service.
I have seen some sample but of no use.
Note :

1. I want to upload file upto 50 MB ? This is possible with DIME/WSE. but
this will be achieved
using Chunking ? how can I achieve Chunking in my application is it inbuilt
feature or I have to write the complete code for this ?
2. I am using WSE 1.0 with .net 1.1
what is the best approach to achieve this ?
If any body have implemented ? plz do send some sample code .
Thanks in advance
Abhay
"Klaus H. Probst" wrote:
WS-Attachments (nee DIME) work very well in this scenario -better than
simple byte arrays on web methods. You can get DIME support if you install
the WSE2 SDK. Just remember to keep your upload sizes below 4MB at a time.
The whole thing breaks down once you go past 3.8MB or so.

--

Klaus H. Probst, MVP
http://www.vbbox.com/
"Demetri" <De*****@discus sions.microsoft .com> wrote in message
news:7C******** *************** ***********@mic rosoft.com...
Hello,

I'm involved in developing an application which has the need to transfer
files automtically once a laptop is connected back to the network. The
application i'm developing will automatically realize the network is
available and thus pass a file to a web service that will know what to do
with the file.

My question is what is the best way to transfer a file via a web service
that my application will consume to invoke transfer's either way (upload

or
download)?

And what sort of security is best? Security is a concern - would not want
sneaky people intercepting the information.

Thanks for any opinions or input on approaching a solution to this.
--
-Demetri


Nov 21 '05 #4

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

Similar topics

2
2177
by: Ivo Tcholakov | last post by:
Hello, I created an application where the users need to download files. I have the list of the files stored in a database and I present the list to download in a Datagrid. Here comes my question. How can I make it possible that the user selects multiple files and downloads them at once instead of clicking on every file to download? With the file input control you can choose only one file at a time to upload. Is there a way to do an...
5
1767
by: Shawn H. Mesiatowsky | last post by:
I am creating an intranet App that is a document management system, and now I have been told they wan't the ebilty to version control directories, not just files. So I have the file upload and download working great, but I have no idea where to start on how to upload or download an entire directory, thankfully there will be no sub directories in the directories. Also, they do not want to select file by file because there may be 40 files in...
0
227
by: Jim Heavey | last post by:
Hello, I am following along with an example of how to do uploads and download from your application. The download seems to wok just fine, but the upload does not. Each time I attempt to upload, I get and exception with the error message being "{"Logon failure: unknown user name or bad password.\r\n" }". I am trying to move the file to shared directory on another server, and I am guessing that perhaps I need to do something on my...
18
4347
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't get it to upload a file to the FTP server. I just get a "Cannot connect to remote server" error after this TRY: s = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
0
9802
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted by the software in your host machine. Stack Trace at System.Net.Sockets.NetworkStream.Write(Byte buffer, Int32 offset, Int32
7
1605
by: Rozzy | last post by:
Hi, I need some recommendations for uploading files to the server. Right now I have a php script that uses ftp to upload, download, and delete files, and everything works fine for small files. However, the original purpose for this script was to be able to upload large files (100 - 200 MB). The problem is that the request times out. Now I'm a php noob so I don't know if the problem is my internet connection, my host's bandwidth, or both....
2
1686
by: =?Utf-8?B?SHVzYW0=?= | last post by:
Hi EveryBody: I'm working with project in my company by using ASP.Net 2.0 that allow the users to upload and download files to web site in the internet as backup. The user will first upload his or her own files in the website that will save the data immediatlly into database. and when the user sign in into his or her account he can download his own files.
0
1337
by: =?Utf-8?B?SHVzYW0=?= | last post by:
Hi EveryBody: I'm working with project in my company by using ASP.Net 2.0 that allow the users to upload and download files to web site in the internet as backup. The user will first upload his or her own files in the website that will save the data immediatlly into database. and when the user sign in into his or her account he can download his own files.
3
1507
by: mp33487 | last post by:
I'm trying to upload/download files programmaticly to a records management system. I have it working fine on my dev machine using vb.net code-behind pages but when I place it on the server when it goes to upload files it (datatable of file paths and data stored in a session var) it errors because the code can't find the files. It seems to be trying to read the file from the server drive not from the client machine. My code is meant to...
7
3731
by: dragiton | last post by:
SA Upload SQL Database variable types (image upload and storage) I am having trouble with the SA Upload utility. The following code used to work correctly. However, I lost my database and had to rebuild. Does anyone have any suggestions on what I may have wrong. I am not sure if I built my table to store the picture id's correctly. Maybe a field type or something. <form name="UpdatePropertyPicture" method="POST"...
0
8946
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
8776
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
9449
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
9182
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6735
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
4550
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...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3261
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
3
2180
bsmnconsultancy
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...

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.