مُعرّف Magic البت: أخطاء شائعة وكيفية إصلاحها
أنماط الفشل التي تحدث فعلًا، وكيف تبدو في المخرجات، وطريقة الإصلاح المحددة.
طريقة الاستخدام
- تحقق أولًا من ترميز المدخلات — علامة ترتيب بايت زائدة أو لصق بغير UTF-8 يُفسد النتيجة قبل أن تعمل الأداة أصلًا.
- ابحث عن الاقتطاع الصامت: إذا كان طول المخرجات رقمًا مستديرًا بشكل مريب، فقد قُطع شيء ما.
- تأكد من أن الخيار الذي غيّرته هو ما تحتاجه المهمة؛ فالقيمة الافتراضية المنسية هي السبب الأشهر لنتيجة معقولة لكنها خاطئة.
- أعد التشغيل بمدخلات صغيرة يمكنك التحقق منها يدويًا، ثم أعد إدراج بياناتك الحقيقية.
أمثلة
The PNG signature followed by the start of its IHDR chunk.
الإدخال
89504E470D0A1A0A0000000D49484452
الإخراج — النتائج
Bytes: 89 50 4E 47 0D 0A 1A 0A ASCII: .PNG.... Detected: PNG image Signature matched: 89504E470D0A1A0A → PNG image Detection is by file signature, not by extension — this is how servers should validate uploads, since a client can rename anything to .png.
تشغيل
الوصف
Identify a file type from its signature bytes rather than its extension — the safe way to validate uploads.
أدوات ذات صلة
محوّل الملفات to Base64Encode any local file to Base64 — nothing is uploaded.Base64 to الملفات DownloaderDecode Base64 back into the original file.فاحص الملفات التجزئةMD5/SHA-1/SHA-256/SHA-512 of any file, computed locally.الملفات Metadata ViewerInspect name, MIME type, size and modification time.حازم الملفات to ZIPBundle multiple files into a ZIP archive locally.ترميز Base64Encode text, JSON, URLs or files to Base64, standard or URL-safe.