Author: na_luke | Posted on: 10/8/2008 7:39:51 PM | Views : 432

 Hello,
I have an app that sends information to a blogging site called tumblr (www.tumblr.com) and I want to send a picture but I am a bit stuck. The tumblr API supports the POST method to sumbit images.
I am thinking I need to convert the image to a byte array and send it. I am using a FileUpload control for the user to choose the image.
So basically I'm after an example in c# to get the image from the FileUpload control, convert it to a byte array and send it off  through the postData += "&data=" +  ??.
Code is below. Thanks.

 
  
"form1" runat="server">

"FileUpload1" runat="server" />



"TextBox1" runat="server" TextMode="MultiLine&qu ...

Go to the complete details ...