Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 01:00 AM
Tor Erik Sønvisen
Guest
 
Posts: n/a
Default EOF-file missing

Hi

From a client I read a file into a string using read().
On the server-side (it's a HTTPServer) i access the same string through the
input stream rfile.
However all useful read-methods (readlines, readline, read) expect an EOF
before terminating.
And for some reason the stream doesn't have the seek method either, so it's
impossible to set the file-pointer to the end of the stream.
how can I access the whole string then?
Is it possible to add an EOF to the string before sending it from the
client? Or maybe there are other solutions?

regards


  #2  
Old July 19th, 2005, 01:00 AM
infidel
Guest
 
Posts: n/a
Default Re: EOF-file missing

You can use the Content-Length header to tell the server how long the
string is.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles