Hi,
I am trying to wrap a (very simple!) http api around an existing library that is currently loading images from disk.
Ideally, I want to be able to post an image to an endpoint and have an in-memory file-like object that I can read from. A char* in memory would probably be fine also.
I did find the json_rpc example which was helpful; and I figured out how to get text working w/POST. I think I need to use onion_request_get_data and/or onion_block_data to access the raw responses; but I have not been able to get it working.
Appreciate any tips.
thanks,
- bri