We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
fazalabbas
6 years agoExplorer | Level 3
how to upload image form picturebox to dropbox using api C#
Hi guys i am using dropbox api for uploading image .it works fine when i give location of image form drives.but i want to upload image form picturebox which i m using in winform app (C#).
please anybody help me.
1 Reply
- Greg-DB6 years ago
Dropbox Community Moderator
I'm not sure I understand your question. Can you add some more context, e.g., show what you have so far, and let us know what's not working?
For C#, we recommend using the official Dropbox API v2 .NET SDK if you can. With that, you can upload files using the upload methods, such as UploadAsync. You supply a Stream of the file data to upload to the 'body' parameter. Exactly where you get that Stream from is up to you. There's an example of using that method here.
If you're having trouble getting something working, the following can be helpful:
- the name and version number of the platform and SDK/library you are using, if any
- the steps to reproduce the issue, including relevant code snippet(s)
- the full text of any error or unexpected output
About Discuss Dropbox Developer & API
Make connections with other developers
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, Facebook or Instagram.
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!