Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

[Help]Failed to download a large file via dcc.download

$
0
0

My code is attached below, very simple. I test the download function successfully with a small sample (1MB). However, I need to return a large file about 1 GB, it raise the Memory Error. What should I do ?

dbc.Button('Download', color='primary', id='btn_data',outline=True),
                                dcc.Download(id="download-image")
@app.callback(
    Output("download_data", "data"),
    Input("btn_data", "n_clicks"),
    prevent_initial_call=True,
)
def func(n_clicks):
    return dcc.send_file(
        "./download/1218.csv"
    )

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images