I want to send a binary instead of a link to a file

Hi.
We have a program, it stores all our documents inside (as binary data).

My task is to take a binary from our system, open it in a frame in onlyoffice, edit, and save it again in our system.

To do this, I took examples from a site. And now I can open a document by direct link, install server community edition in the docker. I call saveAs and get link to the file I want to save.

Everything is great.

But, I need to send a binary file to the onlyoffice frame, I do not have an external link at all, people get access to files only from our system, so there are no direct links.

Can I solve this problem in any way?

Thx.

Hello,
This is not possible. You have to provide a document via URL to edit it with the Document Server.
https://api.onlyoffice.com/editors/open

Hello, I just wanted to see it, no need to edit it.

I just want to preview pdf, xlsx, docx in binary

Hello @orson

Mode for the document, i.e. view or edit, is defined by the initialization config. In general, it there is no difference in which mode document is being opened, the link to the document must be absolute as per document.url parameter description.