Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

io.stream

Status
Not open for further replies.

kbromwich

Programmer
Feb 17, 2004
6
AU
does anyone know much about the io.stream

i have a file on the client pc. i want to open that file and process it. fine easy. the catch is that there is quite a lot of business logic to be done on the file and its contents.

the processing of this then will have to sit on the business layer. here is the catch. at the moment the business layer etc is all on the client pc but in the future the business and data access layer are going to be broken away and will be turned into a web service. if i pass the io.stream over to the web service will the processing of the file still work.

i dont really want to have to read the whole file in and then pass the whole thing across as a string.

so i suppose the crux. io.stream. does it pass across the whole file. is it like an xml stream. will the readstream work for a file that is on a remote computer


cheers
 
To access a file stream on a remote computer, the server would need read permissions directly to the disk of that computer. I doubt if this is the case, when you are using XML web services.

Since you rightly don't want to pass the entire file across as a string, I can only suggest that you strip out the pertinent parts of it on the client, and send this across to the server for business processing.

I'm not experienced with web services, so I could be wrong.

Mark

Mark [openup]
 
You can't pass a stream to a web service because it's a series of bytes that is usually read from a file. Unless the webservice has a means of reading the file via the network, the stream will be broken.

Instead, extract from the stream the information that the webservice needs (put it in a class or string) and pass it as a parameter to the webservice.

The important thing to keep in mind is that the calling process and the webservice could be on opposite sides of the world. Once you have that down, you'll be more likely to treat the webservice as a "black box".

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
cheers for that. it is what i thought. the stream cannot really be used in a remote process.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top