Umbraco 11 - Create media from Stream - c#

I'm developing a package for the new Umbraco 11 version, In there I need to create media and get its URL using byte stream.
Seems it's a bit different from the older version such as version 7/8.
Can anybody suggest me way of doing it or clear documentation or an article that I can get some support?

I think you're looking for this example, it's from the official Umbraco 9+ docs: https://docs.umbraco.com/umbraco-cms/reference/management/services/mediaservice#creating-a-new-media-item-from-a-stream

I got the support from Umbraco forum for this issue and now it's solved. Please follow this URL
https://our.umbraco.com/forum/using-umbraco-and-getting-started/110866-umbraco-11-create-media-from-stream

Related

MAUI/Xamarin.iOS: How to let user pick a file to save now that documentPickerMode is deprecated?

I have tried going through StackOverflow and the picker doc. Unfortunately, all the answer for my need use documentPickerMode which is deprecated since iOS 14.
Looking at Apple documentation on UIDocumentPickerViewController I know I need to use init(forExporting: [URL]). However, I cannot find any similar binding in Xamarin.
My question is:
How do I create such UIDocumentPickerViewController? I have successfully make a open dialog but not a save dialog.
In the future, if I read Apple documentation, how can I find the equivalent class in C#? I do not know Swift well yet and apparently parameter name is part of their signature? In that case how does the Xamarin.iOS team translate it into C# considering there maybe multiple overloads with the same signature? Also I am assuming Swift init is C# constructor, is it correct?
google xamarin ios UIDocumentPickerViewController has link .Net / .. / UIKit / UIDocumentPickerViewController Class.
So far the class API documentation says Xamarin.iOS; so my comment above about rebranding to .Net for iOS is not relevant. Easier to find what you need as xamarin. TBD exactly what Microsoft will decide.
Usually the corresponding C# method is easily found. If not obvious from doc page, add Apple's method name to the google query:
xamarin ios UIDocumentPickerViewController SOMEMETHODHERE.
However, those init... methods Microsoft implements as Constructors; I think you want UIDocumentPickerViewController(NSUrl, UIDocumentPickerMode) on that page.

How to add video-ads?

I have read that WP8 now supports video-ads.
Through the pubCenter I can only create Text / Image ads, but no video-ads.
Nowhere on the internet I could find any info on this. So how can I add video-ads to my app?
You don't choose a specific kind the advertises do that for you.
Here is an article about it
http://advertising.microsoft.com/en-us/blogpost/128708/microsoft-advertising-blog/microsoft-advertising-releases-new-ad-sdk-to-enable-enhanced-rich-media-experiences-on-window
Here is the MSDN Documentation for the new AD SDK
http://msdn.microsoft.com/en-US/library/advertising-mobile-windows-phone-sdk-intro(v=msads.20).aspx

Documentation for Web API in Windows Store apps (Metro apps)

I remember seeing a few months ago some documentation on MSDN for accessing a Web API from within a Windows Store app, with samples, but I cannot find this page anymore, and a Google search doesn't yield a single related result for MSDN.
Anyone know where the documentation for this is?
[nkvu - moving out of the comments and into answers in case anyone else is looking for a similar thing]
I don't know where it on MSDN but there seems to be a downloadable sample here. And docs here and here showing code but no downloadable sample.
Most of the System.Net.Http namespace which includes the HttpClient is available for Windows Store apps.
See http://msdn.microsoft.com/en-US/library/System.Net.Http.aspx

How to generate RSS using Asp.Net

I use Asp.net Web Forms and C# 4.
I have content in DataBase table and I would like publish it as RSS for my website.
My questions:
Does Asp.Net framework provide a namespace or tool to automatically
doing it?
In case no, could you point me out a good tutorial or tool?
I read the article: http://weblogs.asp.net/scottgu/archive/2006/02/22/Awesome-ASP.NET-2.0-RSS-Tool_2D00_Kit-Released.aspx
this tool is for Asp.Net 2.0 could be used nowadays or is out of date?
Thanks
Don't do it by hand - use the built-in System.ServiceModel.Syndication classes to generate the feed for you. Then you know it's compliant with whichever format (RSS or ATOM) you generate.
Here's an article that walks you through it:
[How to create a syndication feed for your website][1]
[1]: http://dotnetslackers.com/articles/aspnet/How-to-create-a-syndication-feed-for-your-website.aspx [NOT WORKING]
Well, MSDN has a relatively-straightforward tutorial on how to generate RSS 2.0 from ASP.NET, found at http://msdn.microsoft.com/en-us/library/aa478968.aspx. It's really not terribly hard, so I would recommend doing it if you're wanting to learn something.
You can found this tool very useful
Creating SQL Based RSS Feed [DEAD LINK]

Programatically adding "Birthday" to Google Contacts using Google contact API?

I am trying to add "Birthday" value to Google Contact using Google Contact API (C#).
Can anyone help me out here.
I am using Google Data API Setup(1.4.0.2).
I got one solution as specified on this link
But to implement accepted solution i need to upgrade to the latest version of the client library i.e API 3.0.
But for .Net i am not getting Version 3 API.
What should i do in such situation?
Thanx
The answer is here:
http://www.google.com/support/forum/p/apps-apis/thread?tid=5dfdb7ff0609cb80&hl=en
The .NET client library only uses Version 2... Birthday API functions are availble in Verison 3. My suggestion is to recompile the .NET client library using Version 3 of the API and try to iron out a few things of the errors yourself. It's a good exercise for fun and certainly not impossible.
Much better answer than just saying "It's impossible".
You might want to check the API Documentation of Google Contact APIs for .NET.
There is an example on that Exact page on how you add contacts.

Categories