473,662 Members | 2,724 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File Transfer with a Web Service

UJ
I have a web service that is going to need to transfer back to the calling
program a file. The file can be up to 1MB in size. What's the easiest way to
do this?

I could do an HTTP get on the file but being as how that's not secure it
doesn't leave me feeling very comfortable.

Any thoughts/suggestions?

TIA - Jeff.
Dec 8 '05 #1
4 10127
Look into using DIME.

http://msdn.microsoft.com/msdnmag/is...E/default.aspx

HTH,

John Scragg

"UJ" wrote:
I have a web service that is going to need to transfer back to the calling
program a file. The file can be up to 1MB in size. What's the easiest way to
do this?

I could do an HTTP get on the file but being as how that's not secure it
doesn't leave me feeling very comfortable.

Any thoughts/suggestions?

TIA - Jeff.

Dec 8 '05 #2
Hi Jeff,

You can read the file into a byte array and return it from the web-service.
The major disadvantage is that the binary data will suffer a base64
transformation, therefore increasing the overall size. Despite of this
disadvantage, this is IMO the best choice at this time: you could use DIME
or MTOM (both allow you to transfer data in its raw mode), however DIME is
part of WSE toolkit and do not really compose very well with the remaining
WS-* specs - also, is mainly supported by Microsoft; Concerning MTOM: this
will be probably the best solution, however it is not available at this
time... I think we'll have to wait for WCF (aka Indigo).

--

Best regards,

Abel Eduardo Pereira
"UJ" <fr**@nowhere.c om> wrote in message
news:Op******** *****@TK2MSFTNG P09.phx.gbl...
I have a web service that is going to need to transfer back to the calling
program a file. The file can be up to 1MB in size. What's the easiest way
to do this?

I could do an HTTP get on the file but being as how that's not secure it
doesn't leave me feeling very comfortable.

Any thoughts/suggestions?

TIA - Jeff.

Dec 8 '05 #3
GCR
I agree about MTOM being the best solution to your problem, but you don't
have to wait for Indigo (by the way, the official name is "Windows
Communication Foundation", quite somptuous, ain't it ;-)). You can use Web
Services Enhancements 3.0. The current available version is still CTP right
now, but the RTM version it's going to be available soon (sooner than Indigo
anyway).

"Abel Eduardo Pereira" wrote:
Hi Jeff,

You can read the file into a byte array and return it from the web-service.
The major disadvantage is that the binary data will suffer a base64
transformation, therefore increasing the overall size. Despite of this
disadvantage, this is IMO the best choice at this time: you could use DIME
or MTOM (both allow you to transfer data in its raw mode), however DIME is
part of WSE toolkit and do not really compose very well with the remaining
WS-* specs - also, is mainly supported by Microsoft; Concerning MTOM: this
will be probably the best solution, however it is not available at this
time... I think we'll have to wait for WCF (aka Indigo).

--

Best regards,

Abel Eduardo Pereira
"UJ" <fr**@nowhere.c om> wrote in message
news:Op******** *****@TK2MSFTNG P09.phx.gbl...
I have a web service that is going to need to transfer back to the calling
program a file. The file can be up to 1MB in size. What's the easiest way
to do this?

I could do an HTTP get on the file but being as how that's not secure it
doesn't leave me feeling very comfortable.

Any thoughts/suggestions?

TIA - Jeff.


Dec 8 '05 #4
Yes, you're correct. I forgot WSE 3.0.

--

Best regards,

Abel Eduardo Pereira
"GCR" <GC*@discussion s.microsoft.com > wrote in message
news:FC******** *************** ***********@mic rosoft.com...
I agree about MTOM being the best solution to your problem, but you don't
have to wait for Indigo (by the way, the official name is "Windows
Communication Foundation", quite somptuous, ain't it ;-)). You can use Web
Services Enhancements 3.0. The current available version is still CTP
right
now, but the RTM version it's going to be available soon (sooner than
Indigo
anyway).

"Abel Eduardo Pereira" wrote:
Hi Jeff,

You can read the file into a byte array and return it from the
web-service.
The major disadvantage is that the binary data will suffer a base64
transformation, therefore increasing the overall size. Despite of this
disadvantage, this is IMO the best choice at this time: you could use
DIME
or MTOM (both allow you to transfer data in its raw mode), however DIME
is
part of WSE toolkit and do not really compose very well with the
remaining
WS-* specs - also, is mainly supported by Microsoft; Concerning MTOM:
this
will be probably the best solution, however it is not available at this
time... I think we'll have to wait for WCF (aka Indigo).

--

Best regards,

Abel Eduardo Pereira
"UJ" <fr**@nowhere.c om> wrote in message
news:Op******** *****@TK2MSFTNG P09.phx.gbl...
>I have a web service that is going to need to transfer back to the
>calling
>program a file. The file can be up to 1MB in size. What's the easiest
>way
>to do this?
>
> I could do an HTTP get on the file but being as how that's not secure
> it
> doesn't leave me feeling very comfortable.
>
> Any thoughts/suggestions?
>
> TIA - Jeff.
>
>


Dec 9 '05 #5

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

Similar topics

2
4950
by: Steve Mack | last post by:
I was downloading from the MSDN subscription site and used the File Transfer Manager, and was wondering if that was something I could use for my site? Is there an API that allows me to build this functionality into my website? My problem is that I have a site that has hundreds of files on it, and my customers would like to select 5 or 6 of them and queue them up to download. Is this possible?
6
2650
by: clintonG | last post by:
After the last six days trying to download VS2005 Professional it seems there may be a problem with my instance of the File Transfer Manager (FTM) or somewhere in the network in between. I can't even download the measely 1.5MB GIF animator which is in the Tools folder at subscriber downloads. The FTM keeps recycling with retries until it finally times out regardless of the configuration settings. I've been talking with MSDN Customer...
3
353
by: clintonG | last post by:
That's the title of the suggestion I just left at MSDN Product Feedback Center . Please login, use that string to find the suggestion I made and vote for it to support my outrageous demands. If you login, you can read the whole story why I have gone over the edge and why something must be done about the File Transfer Manager (FTM). Briefly, I (we) are agreeing that the FTM is crippleware and needs to include the ability to report the...
6
3094
by: ad | last post by:
I have a compressed file in client. How could we send this compressed file (.zip) to server by web service?
3
2601
by: Joseph Geretz | last post by:
I'm working on an file transfer gateway using WSE with DIME for file attachments. Our goal is to replace our direct file repository access (via windows network folder sharre) with the Web Service gateway for security purposes. As it stands now, all workstations have direct read-write access to the file repository share. The Web Service gateway will secure this for us. While the web service gateway is more secure, it doesn't perform...
3
7953
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images C:\Inetpub\wwwroot\RunReportASP is the directory of my virtual directory for my app. In it's properties I did check "Write" as a permission. What else do I need to do?
2
3260
by: UJ | last post by:
Is it reasonable to use a web service to transfer a large file (current < 1MB but could end up being 1Gig in the future.) The reason for my thought of using a web service is that then I can make a userid/password parameters. I'm currently using a page where that will return the file but there's no security on it which means that people could just send the appropriate URL and it will work. I'm trying to put in a least a little bit of...
2
3714
by: Mark Irvine | last post by:
Hi, I'm working on an application that needs to be able to transfer Excel files from remote users (using tablet pc's) to a central server. Is it possible to encode the Excel file in such a way so as to use web services to transfer the file? If not are there any other good solutions? Any help would be appreciated,
6
2404
by: Piotrekk | last post by:
Hi I have theoretical problem. In my web service project there was a need to implement file download/upload using WS. I have created UploadChunk and DownloadChunk methods which transfer files in chunks - consecutive web method calls. The problem is, that when i am testing this approach it seems that the transfer time ( many file sizes ) takes twice long, comparing to when the transfer is stream based using regular...
0
8857
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
8768
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
8547
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7368
agi2029
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...
0
4181
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
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2763
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
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1754
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.