Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to upload file using restful service

983057Feb 4 2013
Hi
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);
reqEntity.addPart(bodypart);

HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(url + args);
httppost.setEntity(reqEntity);
StringBuilder str = null;

HttpResponse response = httpclient.execute(httppost);



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

thank you

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 4 2013
Added on Feb 4 2013
0 comments
312 views