Post

Replies

Boosts

Views

Activity

URLSession how to inflate content-type application/binary with encoding deflate
I'm processing a POST response from a web server where the content-type is application/binary and the content-encoding is deflate. I'm using XCode 13.x with pure SwiftUI. How can I "inflate" the response before passing the bytes on to a connected bluetooth printer via the session outputStream? I cannot change the response from the server.
2
0
811
Aug ’22