Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

WCF FileStreams

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CsaaGuy - 29 Feb 2008 16:21 GMT
Sorry for the cross post but his group is far more active. I have a
need to pass mutiple file streams in WCF Is this possible? I can do
this as a regular web service. Simply pass a FileStream[] filled with
file streams. But don't how to do this with WCF

thanks
bruce barker - 29 Feb 2008 21:36 GMT
you can't do it with a webservice either. file streams are not serializable,
so can not be sent over either service.

you need to create you own file stream objects that are. just serialize the
context info (filename, current offset), then when the client does a read
from the stream, your stream object makes a call back to the server to get
another block of data. on the server side, open the file, seek to the offset,
then return a block of data, then close the file.

-- bruce (sqlwork.com)

> Sorry for the cross post but his group is far more active. I have a
> need to pass mutiple file streams in WCF Is this possible? I can do
> this as a regular web service. Simply pass a FileStream[] filled with
> file streams. But don't how to do this with WCF
>
> thanks
CsaaGuy - 29 Feb 2008 21:49 GMT
On Feb 29, 2:36 pm, bruce barker
<brucebar...@discussions.microsoft.com> wrote:
> you can't do it with a webservice either. file streams are not serializable,
> so can not be sent over either service.
[quoted text clipped - 15 lines]
>
> - Show quoted text -

Thats a bummer, i was able to do it when it was in the same solution
with different projects so i was hoping it could be done.
Alvin Bruney [ASP.NET MVP] - 01 Mar 2008 00:56 GMT
How did you get it to work even in the same solution? How did it serialize
as a webservice?

Signature

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------

On Feb 29, 2:36 pm, bruce barker
<brucebar...@discussions.microsoft.com> wrote:
> you can't do it with a webservice either. file streams are not
> serializable,
[quoted text clipped - 19 lines]
>
> - Show quoted text -

Thats a bummer, i was able to do it when it was in the same solution
with different projects so i was hoping it could be done.
CsaaGuy - 01 Mar 2008 11:40 GMT
I'm not an expert with c# or wcf but I smply created an arry of
filestreams and passed them. It worked fine. I have since tried
different projects and run into issues. I am now getting an error
saying timeouts are not supported in this stream.I have a co-worked
who claimns he is passing a stream with Message header and Message
body but he can only do one at a time.

On Feb 29, 5:56 pm, "Alvin Bruney [ASP.NET MVP]" <www.lulu.com/owc>
wrote:
> How did you get it to work even in the same solution? How did it serialize
> as a webservice?
[quoted text clipped - 40 lines]
>
> - Show quoted text -

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.