This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
Pie
Posts: 42967
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