<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Content-Analysis on Pi Stack</title>
    <link>https://www.pistack.xyz/tags/content-analysis/</link>
    <description>Recent content in Content-Analysis on Pi Stack</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 21 Jun 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.pistack.xyz/tags/content-analysis/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Self-Hosted MIME Type Detection Libraries: libmagic vs Apache Tika vs file-type</title>
      <link>https://www.pistack.xyz/posts/2026-06-21-mime-type-detection-libraries-libmagic-apache-tika-file-type/</link>
      <pubDate>Sun, 21 Jun 2026 00:00:00 +0000</pubDate>
      <guid>https://www.pistack.xyz/posts/2026-06-21-mime-type-detection-libraries-libmagic-apache-tika-file-type/</guid>
      <description>&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;Determining a file&amp;rsquo;s type is a deceptively hard problem in software engineering. File extensions are unreliable — users rename files, uploads arrive without extensions, and &lt;code&gt;.jpg&lt;/code&gt; could contain executable code. This is where MIME type detection libraries come in: they inspect file content (magic bytes, structure patterns, encodings) to accurately determine what kind of data a file contains.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
