Fast SQL-Insert with C# and SqlBulkCopy
In .NET, there is a very fast and easy way to pump a variety of entities into an SQL database: SqlBulkCopy
Read Blog PostIn .NET, there is a very fast and easy way to pump a variety of entities into an SQL database: SqlBulkCopy
Read Blog PostThis pretty simply snippet exports your Image into a byte-array.
1public static byte[] ToByteArray(this System.Drawing.Image image)
2{
3 using(MemoryStream memoryStream = new MemoryStream())
4 {
5 image.Save(memoryStream);
6 return memoryStream.ToArray();
7 }
8}
Usage:
1System.Drawing.Image myImage = .....
2
3byte[] imageAsByteArray = myImage.ToByteArray();
ImageSharp uses the same signature to export bytes into a MemoryStream
Read Blog PostThe most current and currently recommended way to download .NET Framework, .NET Standard or .NET Core files from the Internet is the HttpClient class.
Read Blog PostThe GoPro Hero series is the most popular action cam on the market. The current GoPro Hero 7 also offers USB-C, a micro-HDMI port as well WiFi and Bluetooth. However, the GoPro is just too good to have a life in a bag until I’m next on holiday. That’s why I had the idea to replace my Logitech 720p webcam with my the GoPro Hero 7.
Read Blog PostWhen ASP.NET Core receives a web request, it routes the request to a specific action - a method that matches the route - of a controller.
Read Blog PostI gave my PC a new Windows installation and run into the following error:
Unable to start process C:\Program Files\dotnet\dotnet.exe. The web server request failed with status code 500, Internal Server Error. The full response has been written to C:\Users\Ben\AppData\Local\Temp\HttpFailure.html.
Read Blog Post
Due to my daily business, I have created a series of sample projects how to develop and evolve a modern API with the help of ASP.NET Core.
Read Blog PostAzure DevOps aka Visual Studio Team Services aka VSTS got a pretty nice new interface and design the last month - but has one huge disadvantages for all you guys out there: all orgnization of a user are visible.
Read Blog PostSometimes you still have the requirement that the .NET Framework is needed - but you still want to use ASP.NET Core and Docker.
Read Blog PostLeider hat mich mal wieder ein Hardware-Defekt meines Arbeits-PCs für ein paar Stunden lahmgelegt.
Gearbeitet bis Nachts um 2 hat am nächsten Morgen um 10 Uhr das System den Start verweigert. Mein 10 Monate alter CPU-Kühler Arctic Liquid Freezer 240 {target=_blank rel=noopener} hat leider von jetzt auf nachher ohne vorherige Ankündigung den Geist aufgegeben: Pumpe defekt. Dies hat sich durch eine entsprechende Fehlermeldung beim Start des Systems bemerkbar gemacht: CPU FAN ERROR.
Read Blog Post