curl - How to send a photo to a rest service -


what best approach able send photo iphone client rest service (jax-rs) , save there? current server code:

@post @path("/newphoto/{eventid}")  @consumes("application/octet-stream")  public void newphoto (@pathparam("eventid") string eventid,                        inputstream pict)       throws exception  {          // save photo } 

is ok or recommend else? , how can test service on terminal curl command?

it looks me. usually, put inputstream first param, checked , it's ok.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -