Uploading Files with different formats to a URL using Java client
<p>I need to write some code in Java to upload a file(.tz format) to a URL(prqs@vks.com) by using HTTP PUT/POST and SMTP.I have no idea how to do this and my application is not a web based application i have to write a pure java client to do this. I searched the net but could not find a suitable tutorial on how to do this also i found a lot of stuff where in they are uploading file using a HTML form to a server. but that is not what i want.</p>

<p>Can you please let me know how this is to be done. If you can direct me to a tutorial or provide any sample code then it would be very helpful. I am scratching my head on this for a long time now.</p>

<p>Thanks
vikeng21</p>
