Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

mime

How should I detect the MIME type of an uploaded file in ASP.NET?

September 1, 2022 by Magenaut

How do people usually detect the MIME type of an uploaded file using ASP.NET?

Categories ASP.NET, Q&A Tags asp.net, mime, types Leave a comment

File extensions and MIME Types in .NET

September 1, 2022 by Magenaut

I want to get a MIME Content-Type from a given extension (preferably without accessing the physical file). I have seen some questions about this and the methods described to perform this can be resumed in:

Categories ASP.NET, Q&A Tags .net, asp.net, content-type, file-extension, mime Leave a comment

ASP.NET/IIS6: How to search the server’s mime map?

August 30, 2022 by Magenaut

i want to find the mime-type for a given file extension on an IIS ASP.NET web-server from the code-behind file.

Categories ASP.NET, Q&A Tags asp.net, iis, mime, mime-types Leave a comment

Display ASP.NET generated pdf byte[] to web page without saving the file

August 26, 2022 by Magenaut

I’m using iTextSharp for generating a pdf. I can save the PDF file from the PDF byte[].

Categories ASP.NET, Q&A Tags asp.net, c#, itextsharp, mime, pdf Leave a comment

How to find the mime type of a file in python?

August 21, 2022 by Magenaut

Let’s say you want to save a bunch of files somewhere, for instance in BLOBs. Let’s say you want to dish these files out via a web page and have the client automatically open the correct application/viewer.

Categories Python, Q&A Tags mime, python Leave a comment

Sending Multipart html emails which contain embedded images

August 19, 2022 by Magenaut

I’ve been playing around with the email module in python but I want to be able to know how to embed images which are included in the html.

Categories Python, Q&A Tags attachment, email, mime, multipart, python Leave a comment

What are the “parts” in a multipart email?

August 14, 2022 by Magenaut

A bit of context… Some time ago, I wrote Python a program that deals with email messages, one thing that always comes across is to know whether an email is “multipart” or not. After a bit of research, I knew that it has something to do with emails containing HTML, or attachments etc… But I … Read more

Categories Python, Q&A Tags email, imap, mime, python, python-3.x Leave a comment

How can I get an email message’s text content using Python?

August 12, 2022 by Magenaut

Given an RFC822 message in Python 2.6, how can I get the right text/plain content part? Basically, the algorithm I want is this:

Categories Python, Q&A Tags email, mime, python, rfc822 Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress