Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Text Or Binary

Thread view: 
freesoft_2000 - 31 Jul 2006 14:59 GMT
Hi everyone,

I do not actually have web page i can test this with but would really
appreciate anyone with experience on this topic.

You see i am trying to upload a html page called wt.html from my disk to a
website called http://www.rt.com/rf/wt.html using the HttpUrlConnection by
first authenticating myself into the server getting its outputstream and
getting rady to transfer the data.

Here is where my program begins, when a html file is involved do i
transfer the data in text form by reading the html tags one by one from
the html file on my disk and transferring the html tags one by one using
the PrintStream class

Or

can i just use the FileInputStream class to transfer the file from my disk
to the server.

For zip files and other data format, i know that i can use the
FileInputStream
and do this but for html i am not really that sure and hope that someone
can shed some light on this topic for me or anyone that has experience in
this arena as i do not actually have a webpage to test this problem with

Any help is greatly appreciated

Thank You

Yours Sincerely

Richard West
Oliver Wong - 31 Jul 2006 15:31 GMT
> Hi everyone,
>
[quoted text clipped - 21 lines]
> can shed some light on this topic for me or anyone that has experience in
> this arena as i do not actually have a webpage to test this problem with

   Without answering the questions you asked, I'd just send the data over
as "binary". The only issue that might come up is that you'd be using a
different line-ending string on your local machine than the server expects,
but any decent web server should be able to deal with that almost
effortlessly.

   - Oliver


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.