How to tweet update with media?


i had error when using update with media,in window 8 app using web auth broker i had get userOAuthToken & userOAuthTokenSecret successfully.
i had update tweet with text also successfully. i get error when update media content. what are the header parameter required to create signature for media post and how do i upload my media content whether by blob or binary data. how to create header parameter?