New Post: Get user blogs array?
I guess the "get-category-function" work the same way with the array so maybe I can use something like this I just came up with: Category[] returnMe = new Category[3]; returnMe[1].categoryid = "1";...
View ArticleNew Post: Create new categories?
I just read on http://msdn.microsoft.com/en-us/library/bb463260.aspx about "supportsNewCategories" for the manifest file.I didnt see this method in the xmlrpc.ashx.cs so can I add it myself somehow?
View ArticleNew Post: Upload photos?
The metaweblog should support fileupload but when I try to upload a picture I get a error message telling me that my blog isn't supporting fileuploading.I have this options added to my manifest.xml...
View ArticleNew Post: Upload photos?
Ah now I got it. The code was sending an exception so the function never returned anything. But now it returns an empty string so atleast I dont get the error no more.But how do I get info about the...
View ArticleNew Post: Get user blogs array?
Here is my userblog[] method:[XmlRpcMethod("blogger.getUsersBlogs")]public UserBlog[] getUsersBlogs(string appKey, string username, string password) {#region BTgetUsersBlogs List<UserBlog>...
View ArticleNew Post: Get user blogs array?
did you try this: return returnMe;nyqa wrote:I guess the "get-category-function" work the same way with the array so maybe I can use something like this I just came up with: Category[] returnMe = new...
View ArticleNew Post: Create new categories?
yes, you should add it your self, if you say in your wlw that your blog does not support something you do not need to implement it (there is an exception, not sure but i thing that wlw allways calls...
View ArticleNew Post: Upload photos?
when your user adds an image to wlw he can resize it in wlw, then wlw makes two uploads (original and thumbnail). If you really wish you can resize your file when you save it on your server, you should...
View ArticleNew Post: Upload photos?
ah right. I just noticed that. But how do I get access to the file and save it on my webserver?Do i need to use the "File.WriteAllBytes" method?
View ArticleNew Post: Upload photos?
you can save it however you like it, i used file.writeallbytes because i find it most convenient
View ArticleNew Post: Upload photos?
Ah yeah but how do I use that method? I tried it but I dont really know how to use it.
View ArticleNew Post: Upload photos?
string fileUrl = HttpContext.Current.Request.PhysicalApplicationPath + @"somedir\filename.jpg"; File.WriteAllBytes(fileUrl, mediaObject.bits);
View ArticleNew Post: Upload photos?
I guess that saves the file in a folder in WLM but how do I then save it on my webserver?Thanks for you help. edit: I tried your code but it didnt work. What is the @ character doing? Do i need to...
View ArticleNew Post: Upload photos?
Just so I could see what PhysicalApplicationPath looked like I used this code for sending it to a string: string testing = HttpContext.Current.Request.PhysicalApplicationPath.ToString();But with this...
View ArticleNew Post: Upload photos?
my code saves file to your server.this error you get might be because embeding is not approved in wlwmanifest ?
View ArticleNew Post: Upload photos?
oh... lol sorry... I thought that the "applicationdir" was the local directory of WLW. :PThen I get it. :)supportsEmbeds is enabled and that code isn't saving anything it just puts a value inside the...
View ArticleNew Post: Get user blogs array?
Yeah I did but that didn't work. Just gave me an error.I got all my categories saved in a database so I need to loop them through and create and array from them.Any idea how to post the return?
View ArticleNew Post: Get user blogs array?
This code didn't give me any error: public Category[] getCategories(string blogid, string username, string password) {#region MSWLWgetCategories Category[] returnMe;return returnMe;#endregion }But how...
View ArticleNew Post: Upload photos?
@ sing is for literal string definition.is there any error when you upload images?
View ArticleNew Post: Get user blogs array?
what was the error?to return list of categories please refer to above UserBlog[] method, where you can see how to return array of n elements.
View Article
More Pages to Explore .....