Want to know more about Dash? Check out how Amy uses Dropbox and Dash to make her day easier here! 

Forum Discussion

santod2020's avatar
santod2020
New member | Level 2
3 years ago

image from python to a website

My Python program produces a .png image that I would like to post for viewing on a website. I understand I may be able to only post a link to the image, but actually posting the image is preferable. I'd like to post the image (or link) to a free website, such as Google Site. I think this is going to require an API, but I'm a beginner and I don't know how to to get the key, or how to write the proper code in my program to post the image.

3 Replies

  • Jay's avatar
    Jay
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    Hi santod2020, thanks for messaging the Community.

     

    Could you clarify how your program links to Dropbox?

     

    Are the images stored on your Dropbox account?

     

    This will help me to assist further!

  • santod2020's avatar
    santod2020
    New member | Level 2
    3 years ago

    Hi, Jay. Thanks for your response.

    My Python (Ver 3.9) program does not connect to Dropbox yet. An updated line graph is produced every 65 seconds in a loop, and a .png image is saved on the raspberry pi that's running Raspberry Pi OS. The RP is connected to wifi. I'm looking for help getting those images from my rp to some free, personal website to share with the world. Maybe a Google site is the easiest, or Wordpress, or others have suggested getting a link to Google Sheets. ChatGPT told me that Dropbox could help in the sharing 🙂

  • Jay's avatar
    Jay
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    You are able to store images on Dropbox and you can upload them to the site using a file request, or directly via the Dropbox API.

About Create, upload, and share

Find help to solve issues with creating, uploading, and sharing files and folders in Dropbox. Get support and advice from the Dropbox Community.

Need More Support

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!