0 Replies Latest reply on Feb 4, 2013 5:17 AM by 983057

    how to upload file using restful service

      I want to upload file using restful service

      This is my code to send file to rest service

      MultipartEntity reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);
      FileBody bin = new FileBody(f);
      FormBodyPart bodypart = new FormBodyPart("file", bin);

      HttpClient httpclient = new DefaultHttpClient();
                HttpPost httppost = new HttpPost(url + args);
                StringBuilder str = null;
                HttpResponse response = httpclient.execute(httppost);

      But how can i retrive at server side in restful service using plsql?

      thank you