473,386 Members | 1,758 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,386 software developers and data experts.

How to scan file from start to finish looking for Hex codes?

Samishii23
246 100+
Ok. Say for example, I have a file that is a proprietary img file with extra headers for the program its used in. But its a jpg file in essence.

I know that all JPEG files start with FFD8FFE0, and end with FFD9. So how would I go about basicly scanning the file 'til I find the starting hex characters, then reading up to the ending hex, and saving all that data to display a JPEG image. Either just for display or actually saving the image from the other format to real jpg...

No idea where to begin on this one... Help please.
Jun 17 '11 #1
0 1326

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

Similar topics

12
by: Randy Webb | last post by:
Running Apache2 and PHP 4.3.3 on Windows, is there any way that I can have PHP read an image file and out put its color content? Preferably, I would like for it to read a .bmp file and output a...
3
by: juli jul | last post by:
Hello, I have a text file and I have to check if the line I read contains some word,the problem is how to read it in a loop and check because if I am doing something like this: ...
3
by: Wardeaux | last post by:
All, I've written a "setup" wrapper that calls a sequence of "setup.exe", and all works except when I call the setup.exe for the MSDE, then it gets about half way through and then hangs... The...
0
by: John Alexander | last post by:
Hi, I have a text file I need to import into Postgres, v. 7.2. The file has a header row. I want to begin the import at the line below the header row. Is this possible, or will I have to...
0
by: bonita | last post by:
If I add the code for user to download the file (e.g. if(File.Exists(FILE_NAME)){......}), the ASP.NET will give the following timeout error: Timeout expired. The timeout period elapsed prior to...
1
by: lottaviano | last post by:
My table lists pieces of equipment and the date/time they are taken down for maintenance, and date/time maintenance is complete (put back up to production). Sometimes these dates/times are within...
12
by: Katie | last post by:
Hi, I am doing a binaryWrite to allow users to download files. The problem occurs if the file is too big. Some of the files i have are close to 100 megs. I read on msdn that if the data is...
1
by: akiko | last post by:
i am student and i must to do project about web app by Ruby on rails i can not do past upload file.i try looking code but i just meet upload file image. i want to code upload file that it must to...
3
by: jake | last post by:
I am new to xml. I have a routine that parses xml files using a regular XmlReader class. Unfortunately, the XmlReader chokes (throws an exception) on character codes such as "É". I...
2
by: Joe Farage | last post by:
I'm looking to start making QR Codes and I'm trying to figure them out. I've downloaded an add-in for adobe indesign that will create QR Codes automatically but it only works for notes and for...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.