answersLogoWhite

0

There is no single data type for images as there are many different ways to represent an image in computer memory. At best we can describe all image types as being a binary data type. In order to determine the actual type we must read the first few bytes of data looking for a known signature. Once we know the image type we can read the complete image header correctly and thus obtain the specific information we need to decode the payload properly.

Note that we cannot rely on the file extension to determine the data type. Changing a BMP extension to a JPG extension does not change the file's encoding, it merely changes its name (the extension is considered part of the fully-qualified file name). A file's extension simply provides a convenient method for the operating system to associate file types with the applications that use them without having to examine the file itself.

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions

What is the best datatype for storing your birthday?

in Unix: the datatype is "Date" in C++: the datatype is "char"


What is the best datatype for storing birthdays?

in Unix: the datatype is "Date" in C++: the datatype is "char"


Write a program that show size of datatype?

sizeof(datatype)


What is mean by parse in java?

It is used to convert the value of one datatype into a value of another datatype. Example- Integer.parseInt(in.readLine); It converts given value to Integer datatype.


What is Oracle RAW datatype?

The Oracle RAW datatype is used to store binary data in a variable-length format. It is typically used for storing non-character data such as images or files, and it can hold up to 32,767 bytes. Unlike the VARCHAR2 datatype, which is intended for character strings, RAW is specifically designed for raw binary data, making it suitable for applications that require precise data representation without character set conversion.


What is datatype of pointers?

pointer


C program to implement tower of hanoi using array implementation of stack abstract datatype?

stack abstract datatype


What is user define datatype and explain it?

Any datatype which the user creates in code, that isn't native to the language. A linked list can be an example of this


What datatype is weapon name?

double


How do you declare functions?

datatype function_name() { }


How do you Write a Database?

A database can be created using DML (data manipulation language). Example create table table_name (name datatype , name datatype...... ) .


What is the datatype of 3 in c?

integer literal