Imported from previous forum
Hello,
I am trying to use the fastapi library for a client application that talks FAST with a server.
I see that fastapi is designed to work with files. Is there a way to work with buffers instead?
For example, I need to encode a message and send it on a socket. I encoded a message to a codec. How do I serialize it to a buffer?
And the other way around - I have a buffer read from a socket. How do I decode it?
Any help will be appreciated.
Thanks and regards,
Noam.
Hi Noam,
the current version of the fastapi doesn’t have support for this.
I’d guess there would be fixes out there that add buffer support.
For example, I believe SIAC made some mods to the fastapi for
their sample decoder.
/Rolf
Hello,
I am trying to use the fastapi library for a client application that
talks FAST with a server. I see that fastapi is designed to work with
files. Is there a way to work with buffers instead?For example, I need to encode a message and send it on a socket. I
encoded a message to a codec. How do I serialize it to a buffer? And
the other way around - I have a buffer read from a socket. How do I
decode it?Any help will be appreciated. Thanks and regards, Noam.