Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

could i use https protocol for file sending?

 
Kaleeswaran Karuppusamy
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have few question how https usefull for file sending and downloading..could i this and can we send large file 20 MB through
URL url=new URL("........")
url.getStream()

server side

request.getStream();

i am sending file using URL class and request object in server


please suggest me can i use this for large client application/
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The HttpClient library can help greatly in implementing file upload over HTTP, and the FileUpload library can handle the server part (assuming that the server is a servlet engine). See http://faq.javaranch.com/java/FileUpload for detail.
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic