Hirize
  • Welcome
  • Getting Started
    • Getting Started with Hirize
    • EXTRACTION DETAILS
      • Supported file types
      • Supported languages
      • Volume and file limits
      • Credit usage
      • Backend Codes & Tools
  • Documents
    • Resume Parser
    • Job Parser
    • AI matcher
    • Hirize IQ
    • Finance parser
    • Hirize Lumina
  • INTEGRATIONS
    • Greenhouse
    • Zapier
  • CONTACT & SUPPORT
    • API status
    • FAQ
    • Contact us
    • Tutorials
Powered by GitBook
On this page
  1. Getting Started
  2. EXTRACTION DETAILS

Backend Codes & Tools

Sending Files in Base64

Send us the file you want to parse in Base64 format, without any file reading or text extraction. Send it as raw Base64. For example, you can use the following code:

import base64

def file_to_base64(file_path):
    with open(file_path, "rb") as file:
        base64_encoded = base64.b64encode(file.read()).decode("utf-8")
    return base64_encoded

# Example usage
file_path = "bill-gates.pdf"  # Change this to your file path
base64_string = file_to_base64(file_path)
print(base64_string)
PreviousCredit usageNextResume Parser

Last updated 3 months ago