Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7888317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:48:06+00:00 2026-06-03T05:48:06+00:00

Can someone please show me/link a simple multipart form data, http post file upload

  • 0

Can someone please show me/link a simple multipart form data, http post file upload script I can convert to an applet? Looking for someone that who will go easy on me, I’ve been after this goal for over a month now and just need this. I’m very new to java and have had several small victories on my way to finishing this project but I absolutely need help with this.

I’ve already got a few signed scripts working, so I’ve done a lot on my own, but I need one here bad. I’m just so confused.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:48:07+00:00Added an answer on June 3, 2026 at 5:48 am

    The easiest approach to do an http post from your applet is to use Apache HTTP Client. You’ll need to add the jar file to your applet’s classpath. A simple example:

    HttpClient client = new DefaultHttpClient();
    HttpPost httppost = new HttpPost("http://example.com/test");
    MultipartEntity entity = new MultipartEntity();
    entity.addPart("file1", new FileBody(new File("filetoUpload.jpg"), "application/jpg"));
    post.setEntity(entity);
    client.execute(post)
    client.getConnectionManager().shutdown();
    

    If for some reason you cannot use HTTP Client you can still do it with java.net.URL but it’s a lot more complicated:

    Using java.net.URLConnection to fire and handle HTTP requests

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone please show a simple, but complete example of how one could use
can someone please show me documentation on this method? i have the following line:
Given the example below, can someone please show me how this could be called?
Can someone please tell me how to show all privileges/rules from a specific user
Can someone please tell me why this doesn't work? I'm trying to show and
Can someone please derive a concrete example from the following: http://www.urdalen.com/blog/?p=210 ..that shows how
Can someone please show me how to do this basic thing using Zend Framework
Can someone please show me an example of a Cocoa Obj-C object, with a
Can someone please show me the code for sorting an NSMutableArray? I have the
Can someone please show me how i can preg_match this so that it just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.