Hi,
I'm using activiti 6.0 rest api and trying to save a process .png image as BLOB in my database.
I run a rest get call to the image contentUrl (http://localhost:8080/activiti-rest/service/repository/deployments/1234/resourcedata/image.png) present in my process resources:
restResponse = rest.get(result[1]['contentUrl']){
auth username,password
}
How do I convert this response to a byte[ ]?
thanks for your help
What's rest client library do you use in the following code?
Java data type that you will receive depends on the implementation on the client side(Rest client library).
If now you receive it as InputStream, you can convert it to byte[] by the method of the following article.
bytearray - Convert InputStream to byte array in Java - Stack Overflow