dcsimg
How can I upload a binary file to a URL using ftp.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Wolf_Ehrke
Posted On:   Friday, April 20, 2001 12:30 PM

I am trying to upload a file to a url connection using getOutputStream, but I am getting the error "protocol doesn't support output". Does ftp in the URLConnection class not support output or depends it on my server configuration? How do I send the username/password to the server when anonymous access isn't permitted?

Re: How can I upload a binary file to a URL using ftp.

Posted By:   Tim_Rohaly  
Posted On:   Friday, April 20, 2001 03:05 PM

URLConnection doesn't support uploading files
vi FTP, just like the error says. There are a number
of third-party FTP classes written in Java that you may
use for this purpose. Search the Networking FAQ for
pointers to these.
About | Sitemap | Contact