I didn't test it but I assume that the the filename dles not have to match your local filename - 'foo.png' should be fine.
You will likely need to post the content of your local file in a multipart request:
'A multipart of subtype form-data that will include a section with a JSON object describing the static resource to be created, and another section containing the content of the static resource.'
This can be tricky as Jive has it's own idea how multipart request must be formed to be accepted. See also Rest Api Examples.
You might want to start with the createStaticData which takes a file data resource (form-data). The method is for createStatic is expecting the supplied filename to already exist so that it can reference it which means you have to create the static resource first.