• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 568
  • Last Modified:

upload a file using http

I want to upload  a file as attachment to my IIS server using http.Due to certain constraints i can't use java mail or other technology like xml soap.I can only use java.net .Please help.
Thanks in advance

0
chakra-march-04
Asked:
chakra-march-04
  • 2
  • 2
2 Solutions
 
WebstormCommented:
Hi chakra-march-04,

You can use an URL object to POST the file content :
http://java.sun.com/j2se/1.4.2/docs/api/java/net/URL.html
http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLConnection.html
or you can use the PUT http method.

0
 
WebstormCommented:
0
 
gnoonCommented:
Also you can use w3JMail component to do upload attachments.
http://www.dimac.net/Products/w3JMail/Version43/Examples/Attachments.htm
0
 
gnoonCommented:
>Also you can use w3JMail component to do upload attachments.
Sorry, it's w3Upload component, not w3JMail.
http://www.dimac.net/Products/w3Upload/Reference/Upload.htm#example
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now