Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8134577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:05:06+00:00 2026-06-06T10:05:06+00:00

I interested to work with data types and file formats. For example I want

  • 0

I interested to work with data types and file formats.
For example I want to open a jpeg file with php and work with it.
For example get the size, or change it to black and white without any library.
I want to know that how can decode bytes of a file and get information about it?
I opened a jpeg file with HxD and saw some data in hexadecimal.
Please give me a reference to know more about files and structures…
Sorry for bad English.
Thanks a lot …

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T10:05:09+00:00Added an answer on June 6, 2026 at 10:05 am

    A lot of image files are encoded using the Exchangeable Image File Format

    In PHP you could use something like this method:

    http://php.net/manual/en/function.exif-read-data.php

    That will allow you to have access to the different properties of an image which are stored in the image header, such as resolution, endianess, etc. which you can then use to read in the raw image data.

    The raw image data is usually stored immediately after the image header.

    Here is the spec for the Jpeg File Interchange Format (JFIF):

    http://www.jpeg.org/public/jfif.pdf

    Also, in PHP if you’re just reading raw image data you would use:

    $file = 'picture.jpg';
    readFile($file);
    

    and you can then display it in a browser using:

    header('Content-type: image/jpeg');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm interested in using F# for numerical work, but my platforms are not windows
Today i have been interested in answers on this: where you create your work
There are two data types: tasks and actions. An action costs a certain time
I have two non-overlapping sets of types and want to make other set which
I work with Apache, PHP, and MySQL for web development and local applications. For
I'm interested in how the protocols (and game loop) work for these type of
What types of algorithms would work the quickest for a search of just what's
I want to know your opinion about using data-aware components in projects. Which are
I'm designing an interface to display sets of data. I'm interested in organizing the
With really small sets of data, the policy where I work is generally to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.