[英]Restlet ServerResource for binary data
我可以像這樣從Restlet客戶端發送二進制數據
Representation representation = new InputRepresentation(new ByteArrayInputStream(bytes), MediaType.APPLICATION_OCTET_STREAM);
request.setEntity(representation);
但是,如何從Restlet ServerResouce中接收此數據?
我的起點將是帶有這樣簽名的方法?
@Put
public MyCustomResponse AddNewDocument(Form data)
{
...
}
但是,如何獲得二進制流?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.