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

Sending file via web services

Hi,

I have file of relatively larger size (4-5 Mbs) on client machine. I want to
send this file to Server. For this I am using web services.

Following is my perception, Please correct me if I am wrong
There can be two approches.

1. Push Model - In this content of the file is first read into byte array
and then it is pushed/send from client to Server. But with this model problem
lies when the file size is large.

2. Pull Model - In this whole file is pulled from client to server using
MTOM, DIME technique. But this requires the authentication.

what can be the most effictive way to send the file ?

Atul Sureka
Jul 13 '06 #1
4 1765
Greetings

Did you think about sending the file in Chunks?
"AtulSureka" <at*********@persistent.co.inwrote in message
news:B0**********************************@microsof t.com...
Hi,

I have file of relatively larger size (4-5 Mbs) on client machine. I want
to
send this file to Server. For this I am using web services.

Following is my perception, Please correct me if I am wrong
There can be two approches.

1. Push Model - In this content of the file is first read into byte array
and then it is pushed/send from client to Server. But with this model
problem
lies when the file size is large.

2. Pull Model - In this whole file is pulled from client to server using
MTOM, DIME technique. But this requires the authentication.

what can be the most effictive way to send the file ?

Atul Sureka


Jul 13 '06 #2
Ya I thought of it. But for every chunk we have to call the web service,
which may reduce the performance. I wanted to know is there any direct
approch/technique to send large file.
"Sherif El-Meteny" wrote:
Greetings

Did you think about sending the file in Chunks?
"AtulSureka" <at*********@persistent.co.inwrote in message
news:B0**********************************@microsof t.com...
Hi,

I have file of relatively larger size (4-5 Mbs) on client machine. I want
to
send this file to Server. For this I am using web services.

Following is my perception, Please correct me if I am wrong
There can be two approches.

1. Push Model - In this content of the file is first read into byte array
and then it is pushed/send from client to Server. But with this model
problem
lies when the file size is large.

2. Pull Model - In this whole file is pulled from client to server using
MTOM, DIME technique. But this requires the authentication.

what can be the most effictive way to send the file ?

Atul Sureka


Jul 13 '06 #3
You can directly upload the file on to the server, bypassing the webservice.

The server path can be stored in web.config file.
Required credentials can be stored either in the web.config file or an
application pool that runs on a user name having the required credentials can
be used.

Push model is effective if you are dealing with Clients out of your network.
if the clients are located in the same network, pull model could be effective.

We use Push model for all our applications.

"AtulSureka" wrote:
Ya I thought of it. But for every chunk we have to call the web service,
which may reduce the performance. I wanted to know is there any direct
approch/technique to send large file.
"Sherif El-Meteny" wrote:
Greetings

Did you think about sending the file in Chunks?
"AtulSureka" <at*********@persistent.co.inwrote in message
news:B0**********************************@microsof t.com...
Hi,
>
I have file of relatively larger size (4-5 Mbs) on client machine. I want
to
send this file to Server. For this I am using web services.
>
Following is my perception, Please correct me if I am wrong
There can be two approches.
>
1. Push Model - In this content of the file is first read into byte array
and then it is pushed/send from client to Server. But with this model
problem
lies when the file size is large.
>
2. Pull Model - In this whole file is pulled from client to server using
MTOM, DIME technique. But this requires the authentication.
>
what can be the most effictive way to send the file ?
>
Atul Sureka
>
>
Jul 13 '06 #4

Yes there is. FTP.
"AtulSureka" <at*********@persistent.co.inwrote in message
news:BB**********************************@microsof t.com...
Ya I thought of it. But for every chunk we have to call the web service,
which may reduce the performance. I wanted to know is there any direct
approch/technique to send large file.
"Sherif El-Meteny" wrote:
Greetings

Did you think about sending the file in Chunks?
"AtulSureka" <at*********@persistent.co.inwrote in message
news:B0**********************************@microsof t.com...
Hi,
>
I have file of relatively larger size (4-5 Mbs) on client machine. I
want
to
send this file to Server. For this I am using web services.
>
Following is my perception, Please correct me if I am wrong
There can be two approches.
>
1. Push Model - In this content of the file is first read into byte
array
and then it is pushed/send from client to Server. But with this model
problem
lies when the file size is large.
>
2. Pull Model - In this whole file is pulled from client to server
using
MTOM, DIME technique. But this requires the authentication.
>
what can be the most effictive way to send the file ?
>
Atul Sureka
>
>

Jul 14 '06 #5

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

Similar topics

1
by: Cindy Lee | last post by:
when I try to send a large web service message with a c# client, I get a read time out (it has nothing to do with timing out). It's not a sever problem, cus it works fine with a java client and...
7
by: flowergardener | last post by:
I am learning ASP.NET from the book, "ASP.NET for Dummies". An example for sending email using SMTP fails on my PC. What does this error mean and how to fix it. I am running Windows XP and I...
9
by: B-Dog | last post by:
I've built a small app that sends mail through our ISP's SMTP server but when I try to send through my local exchange server I get CDO error. Does webmail use SMTP or does it strictly rely on...
0
by: Burak | last post by:
Hello, I know of two main ways by which structured information is sent : - web services - sending a flat file Is there any other way, possibly tcp-ip based, to send structured information?...
1
by: Cindy Lee | last post by:
I get a readtimeout error when I send a webservice over 80k. I don't think a c# string can handle that lengh, or do i need to reserve memory for it? It's not a time out error, because if I send a...
1
by: tshad | last post by:
We have a web service that is not sending a field in the Soap Envelope. For example, when we add a web reference, we get something like: ***************************************************...
1
by: news | last post by:
At the end of a PHP script, I'm sending a file via FTP to a server. I thought it'd be best to use a shell script in order to automate the FTP (logging in, changing to binary, putting the file,...
5
by: ofiras | last post by:
Hi everyone, As far as I know, you cannot connect directly to a SQL Server database from a web browser application because of the security restrictions. Is there any other way to connect to a SQL...
3
by: swethak | last post by:
Hi, i placed the php in windows server 2003 manually , set the path in Environmental variables , and place the php.ini file in windows. Now php works fine in my server sytem.When i write the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.