-
-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Support for image file type #343
Comments
Hey @DhruvThu , Right now, you can use something like this:
But this is a good idea, I will create a helper function for it. |
Hey, Thank you so much for quick support. I have tried with the code which you have sent. But I am getting this error. thread 'actix-rt|system:0|arbiter:0' panicked at 'called This is the code which I am using. from robyn import Robyn, static_file app = Robyn(file) app.start(port=5000) |
I think you are using an async function right now. It only works with |
I have tried to run code after removing async. Code is working but I am getting a broken image when I run localhost. My code is as follows:
|
Hey @DhruvThu , The issue has been fixed in the latest release. You can find the latest docs here: https://sansyrox.github.io/robyn/#/examples?id=serving-files-to-download |
Hey, I am new to Robyn framework. Can someone help me to provide an image as response to get request?
Thanks!!
The text was updated successfully, but these errors were encountered: