473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

strip out file header and footer

Hi All,
My problem may sound irrelevant to this forum. I have been searching the web to find an answer for the following:
how do I determine the header and the footer and their length in any type of file?.
The purpose of it is that I'm trying to develop and a c# application to determine the data type without looking into the header nor the footer. But I need first to strip out the header and the footer to get precise result where unique characters and strings are going to be one of the determinants of the data type.
Or, I'll be grateful if you could tell me about an available application that strip out header and footer automatically.
Dec 4 '12 #1
5 2561
Rabbit
12,516 Expert Mod 8TB
Header and footer of what? Data type of what? You need to share with us the definitions of the terms you're talking about because they can mean many many things.
Dec 4 '12 #2
Thanks Rabbit,,
Any data type, such as pdf, docx, jpg.... But the question is the header length of any file type.
to be precise, what is the header and the footer length of pdf, jpg, docx, mp3 files?.
Dec 5 '12 #3
Rabbit
12,516 Expert Mod 8TB
You can find those lengths by reading the white paper file specifications. You just need to google the file type with the phrase file spec and start reading how the files are laid out.
Dec 5 '12 #4
Thanks again Rabbit,
I already did, but I found no answer. The specification information at most tells you how the file is arranged but does not go through bytes level and location.
Dec 10 '12 #5
Rabbit
12,516 Expert Mod 8TB
Are you sure you're looking at the right file? And are you sure you're reading carefully?

It took me 5 minutes to find the JPEG "header". In JPEG, it's called a "start of frame segment" rather than a "header". And is 10-12 bytes long.
Dec 10 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: ad | last post by:
How can I set the page's header, footer of IE when IE in preview or print mode?
2
by: Jurjen de Groot | last post by:
When printing my webpage, IE inserts a header (name of the webform + pageNr ) and a footer (URL + date) Does anyone know of a way to supress this behaviour, I'd like to print a letter / invoice...
3
by: ruca | last post by:
Can I add dinamicaly (in my code) a header and a footer for each time I want to print a web page from my web application? NOTE: The print command made for my is a click in a button that I have in...
7
by: JIM.H. | last post by:
Hello, Is it possible to change a datagrid Header and Footer text in code behind dynamically? Thanks, Jim.
1
by: Gabriel Lozano-Morán | last post by:
I was wondering if it is possible to change the header/footer (See menu file -> Page setup in IE) by using meta tags. We have a module that uses the ActivePDF Webgrabber component to generate PDF...
5
by: Elena | last post by:
I need the VB.NET code to change the header/footer of an Excel spread sheet, ASAP. I am doing it through a VB application. I can change the ranges/cell values using code, but I do not know how to...
4
by: jmalvika | last post by:
Hi all, I'm trying to generate an excel report from an ASP web page using .. "response.ContentType = "application/vnd.ms-excel" .... I need to add a custom header & footer to the excel...
4
by: stevesj | last post by:
I have a web form that generates 4 or 5 printed pages of html and a few images. I know how to insert CSS page breaks. Is there a way to calculate on the server where the page will break - like...
3
by: HugeBob | last post by:
Hi All, Is it possible to access the browser's print header/footer. I want to create a printable version of a page and alter the printout's header and footer. Is this possible? Thanks!
3
by: Noorain | last post by:
I designed a site. i want to header,footer,left & right column fixed but body information only scrolling. this site screen to be 800/600 px. i designed this way but when i used position fixed all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.