Currently, I can upload files(exist) with Grails's RestBuilder. However, I want to upload a file without creating a file . I want to create binary data (= Text File) in a program and send it directly Is it possible?
RestBuilder rest = new RestBuilder()
RestResponse resp = rest.post(url){
contentType("multipart/form-data")
setProperty("dataFile",[filePath])// <- it can
setProperty("dataFile",[ byte[] or inputStream() or String ? ])// <- Is it possible?
}
'''