Skip to content

Sending large files from Oak server to the client #624

@M3cubo

Description

@M3cubo

I am reaching out to inquire about the functionality of sending FormData directly from a Deno Oak server to a client. I am using a base64 solution, but that is very inefficient. My primary concern revolves around the handling of large files. Currently, when dealing with substantial file sizes, the common method of converting files to Base64 before transmission often leads to issues or failures.

I understand that sending FormData is possible with Deno's standard library. However, I am particularly interested in knowing if there is a way to send FormData objects directly from an Oak server to a client without needing to resort to Base64 encoding or similar operations. The ability to do this would significantly streamline the process of handling large files and enhance the overall efficiency.

Could you please provide any insights, documentation, or examples on how to achieve this within the Oak framework? This feature, if available, would be immensely beneficial for applications that require the transfer of many large files, all at once.

Thank you for your time and assistance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions