Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

IOException when Uploading Videos to YouTube via Java API -


i have been attempting upload videos youtube via javaapi using direct uploading. have been having problem when call insert() method, ioexception error message

"error writing request body server"

i have verified file object creating correct details in videoentry object. have been using fiddler monitor activity machine , no request made upload api problem not there. here summary of code using:

videoentry newvideo = new videoentry(); //defined video properties such title , description here. mediafilesource ms = new mediafilesource(videofile, "video/flv"); newvideo.setmediasource(ms); videoentry createdentry = settings.insert(new url(apiurl), newvideo); 

the ioexception thrown on insert call (settings youtubeservice instance) , api url appears correct.

prior have succeeded in uploading video using c# api know video file valid.

--update apiurl value:

http://uploads.gdata.youtube.com/feeds/api/users/default/uploads

make videofile points correct local file. file(string) constructor won't verify exists. mediafilesource constructor , videoentry.setmediasource() method never check file valid. error message "error writing request body server" sounds insert method can not find body of message trying send.

file videofile = new file("..."); if (videofile.exists() == false) {     system.err.println("fail"); } 

to test if file exists.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -