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 7495481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:09:45+00:00 2026-05-29T18:09:45+00:00

I have code to browse a file . i have to send the file

  • 0

I have code to browse a file .

i have to send the file to server side.
I dont know how to pass file to Server Using RPC.

  formPanel.addFormHandler(new FormHandler() {

        public void onSubmitComplete(final FormSubmitCompleteEvent event) {
            // TODO Auto-generated method stub
            Window.alert(event.getResults());
        }

        public void onSubmit(final FormSubmitEvent event) {
            // TODO Auto-generated method stub
            event.setCancelled(true);
        }
    });
 formPanel.setMethod(FormPanel.METHOD_POST);
 formPanel.setEncoding(FormPanel.ENCODING_MULTIPART);
 formPanel.setWidget(holder);
 holder.add(upload);
 btnAdd.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            // *
        }
    });

 // holder is vertical Panel

on this btnAdd clickhandler i have to transfer a file to server with all its contents.
On serverside i have to read the content, file name.
Plz help me with the Interface ,interfaceAsync ,service , and server side.

  • 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-05-29T18:09:48+00:00Added an answer on May 29, 2026 at 6:09 pm

    Please see the link below.

    http://commons.apache.org/fileupload/using.html

    Also pls keep in mind that when you deploy the app you’ll need commons-io-2.1.jar too.

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

Sidebar

Related Questions

I have two very similar pieces of ASP.NET code that send a file in
I have code like this: var newMsg = new Msg { Var1 = var1,
I try to read a local file from server. I have been googling this
I want to write a server side code. It should work with popular browsers
I have some code that is used to programmatically create a Document to send
I am using a servlet as my server to send updates to my jsp
I have example of code below. <script type=text/javascript src=assets/scripts/somescript.php>. </script> So, will my browser
I have a java script code that works fine when run through a browser,
What code do you need to add in PHP to automatically have the browser
I have code that references a web service, and I'd like the address of

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.