473,325 Members | 2,342 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,325 software developers and data experts.

how do i pass a filestream to a webservice?

Hi everyone,

I have a windows form application that creates a filestream object and then
calls my webservice passing the filestream object.

I got an error message can't convert windows application filestream to type
webservice filestream.

They are both the same type nothing too crazy here.

Cheers.
Jun 9 '06 #1
2 4679
well i alway send binary date as a string ( encodebase 64 ) then on the
other side i perfom a decodebase 64 and write it out to whatever i want
regards

Michel Posseth [MCP]
"Mark" <Ma**@discussions.microsoft.com> schreef in bericht
news:1B**********************************@microsof t.com...
Hi everyone,

I have a windows form application that creates a filestream object and
then
calls my webservice passing the filestream object.

I got an error message can't convert windows application filestream to
type
webservice filestream.

They are both the same type nothing too crazy here.

Cheers.

Jun 10 '06 #2
Mark,

Unless I'm mistaken, passing the stream object itself won't work; it's
just a reference to a file on the client computer, and doesn't have any
actual meaning on the server side. Instead, you'll need to load the
contents of the file into memory (as, say, a byte buffer), and pass the
contents to the web service.
Nate
Mark wrote:
Hi everyone,

I have a windows form application that creates a filestream object and then
calls my webservice passing the filestream object.

I got an error message can't convert windows application filestream to type
webservice filestream.

They are both the same type nothing too crazy here.

Cheers.


Jun 11 '06 #3

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

Similar topics

2
by: elora_c | last post by:
I'm making a call to a webservice from my ASP.NET page. The web application has anonymous access turned off and Integrated Windows auth turned on. The web.config has <identity impersonate=true>. ...
2
by: Anil Pundhir | last post by:
What is the best way to pass data to a web service. The client(to send data) has .net environment and also the server on which the web service is hosted also has the .net environment. Should I...
0
by: talkie1 | last post by:
Hi, i work with Visual Studio 2003 und i have a C# - WebApplication in which i make a stream from a *.doc file! Code WebForm1: ... DimeAttachment attachment = new...
0
by: Stefano Magni | last post by:
I've a WebService that execute this code : FileStream stream = File.OpenRead(fileName); WebService launch an exception .. is it possible read a file thuought a WebService ? Thanks Stefano
6
by: placek | last post by:
Hi all. I would like to create two web services: - The first one - ImportData - should take as an input parameter a XML document and return an integer saying if passed XML document was valid...
5
by: David++ | last post by:
Hi folks, I would be interested to hear peoples views on whether or not 'pass by reference' is allowed when using a Web Service method. The thing that troubles me about pass-by-reference into...
0
by: francovincent | last post by:
I am creatting webservice proxy in C++ dll to consume a webservice. But i am not able to pass credentials to that . Can anyone help me on this? I am setting the url of the webservice with...
0
by: =?Utf-8?B?Sko=?= | last post by:
I have a requirement where I need to transfer a web.config from one webservice to another webservice. The environment for this will be intranet only. I will use a xaml win app client to initiate...
5
by: Remote_User | last post by:
Hi, Is there any way I can pass a file as a parameter? ( maybe read it into a object) I am working on C# VS2005. Thanks.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.