开发者

Uploading files in RESTful way?

开发者 https://www.devze.com 2022-12-17 22:22 出处:网络
I\'m designing a RESTful API tha开发者_JS百科t should handle binary file uploads. Should this be done the same way as html form upload or is there a better way?Take a look at the Amazon api for an ide

I'm designing a RESTful API tha开发者_JS百科t should handle binary file uploads.

Should this be done the same way as html form upload or is there a better way?


Take a look at the Amazon api for an idea. It uses a PUT query and then through sendREST it sends the content. Uploading files to Amazon S3 with REST API


A good way is to upload the binary information using streams. You could have a look at the JeCARS client project. To be exact the JC_RESTComm.java class performs the upload.

0

精彩评论

暂无评论...
验证码 换一张
取 消