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
Post a Comment