Forum Discussion

Mark's avatar
Mark
New Contributor II
4 years ago
Solved

Is there a way to generate Excel files and not write them to disk?

I have and Excel Formatter and a Rest Post Snap. I want to send the Excel File in the Rest Post Snap. Why do I have to write the Excel file to disk first? Can I create the Excel file in memory and pass that to the Rest Post Snap somehow without going to disk first?

  • @Mark

    You can send the binary content(file) in the HTTP entity field of the REST Post snap also:

    Rest Post Snap can get the content of the file from the upstream snap, without storing the file.

3 Replies

  • SpiroTaleski's avatar
    SpiroTaleski
    Valued Contributor

    @Mark

    You can send the binary content(file) in the HTTP entity field of the REST Post snap also:

    Rest Post Snap can get the content of the file from the upstream snap, without storing the file.

  • SpiroTaleski's avatar
    SpiroTaleski
    Valued Contributor

    @Mark

    You can save the file on SLDB first, and then reference the file in REST POST Single File Upload option.

    REST Post

    BR
    Spiro Taleski

  • Mark's avatar
    Mark
    New Contributor II

    thats what im doing. I dont need to save it on the disk though. seems like a waste of time. Seems like I should be able to pass a variable to the rest post snap pointing to the file in memory and not write (file writer) then read (rest post) from disk. But, OK.