cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Learn more about how Connie, a member of the Community, uses Dropbox here!

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to upload image form picturebox to dropbox using api C#

how to upload image form picturebox to dropbox using api C#

fazalabbas
Explorer | Level 3

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 1

Re: how to upload image form picturebox to dropbox using api C#

Greg-DB
Dropboxer

 

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

 

Poll
Are you starting new work habits this year?
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?