Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

How many different kinds of data can a VB.NET windows service accept? I have written those that accept simple things like int and string and double. And I have one that accepts a dataset.

 

But what are some other types?

What if I want to pass a whole file, like a small text file or csv?

Wanna-Be C# Superstar
Posted
I believe you can, I dont know what you mean by accept, but I have accessed and parsed several files (text,xml, etc ..) using a windows service.
Dream as if you'll live forever, live as if you'll die today
Posted

Okay cool.

 

So you have a text file, say text.txt, and you want to send it across time and space to a web service. How do you go about that?

 

<Web Method>_ Public Function GetFile as File

Wanna-Be C# Superstar
Posted

You cannot return Files through a web service

 

You can do as PlausiblyDamp told you if you are talking about small files, but I think if you are planning to transfer huge files then you are better of with downloading or uploading files (FTP for example might do you good), However , to use FTP you will have to use third party utilities. It is not directly supported in .NET

 

 

Hope this helps...

Dream as if you'll live forever, live as if you'll die today

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...