Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 17974
Number of posts: 55343

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Reading JPEG Headers Posted by Russell Moore on 7 Jul 2004 at 12:12 AM
I am writing a steganography program and I need to figure out where the JPEG header ends and where the image data begins. I know that JPEG's don't officially have a formal header apparently, which makes them a bit more difficult to work with than bitmaps, since their headers aren't a fixed size like bitmap files. So far, I have trashed 3 jpegs with no success. If someone has source code on a JPEG header parser, or just the right jpeg header marker to look for and its length bytes, it would be a great help.

Thanks in advance,
Russell
Report
Re: Reading JPEG Headers Posted by DjSpirit on 7 Jul 2004 at 1:19 AM
: I am writing a steganography program and I need to figure out where the JPEG header ends and where the image data begins. I know that JPEG's don't officially have a formal header apparently, which makes them a bit more difficult to work with than bitmaps, since their headers aren't a fixed size like bitmap files. So far, I have trashed 3 jpegs with no success. If someone has source code on a JPEG header parser, or just the right jpeg header marker to look for and its length bytes, it would be a great help.
:
: Thanks in advance,
: Russell
:
Can't you just LoadPicture the image into a hidden picturebox and Point(x,y) the data you need?

There is a faster way than Point(x, y) to get the data out, but I don't seem to get the code for getting the pointer to the data area of a picturebox to work correctly.

DjSpirit, just a thought

Report
Re: Reading JPEG Headers Posted by Russell Moore on 7 Jul 2004 at 8:50 AM
: : I am writing a steganography program and I need to figure out where the JPEG header ends and where the image data begins. I know that JPEG's don't officially have a formal header apparently, which makes them a bit more difficult to work with than bitmaps, since their headers aren't a fixed size like bitmap files. So far, I have trashed 3 jpegs with no success. If someone has source code on a JPEG header parser, or just the right jpeg header marker to look for and its length bytes, it would be a great help.
: :
: : Thanks in advance,
: : Russell
: :
: Can't you just LoadPicture the image into a hidden picturebox and Point(x,y) the data you need?
:
: There is a faster way than Point(x, y) to get the data out, but I don't seem to get the code for getting the pointer to the data area of a picturebox to work correctly.
:
: DjSpirit, just a thought

:
That might work, but I also need to know where it begins in the file so I can write over those bytes in the image.
Report
Re: Reading JPEG Headers Posted by Ray0925 on 18 May 2007 at 7:43 PM
: I am writing a steganography program and I need to figure out where
: the JPEG header ends and where the image data begins. I know that
: JPEG's don't officially have a formal header apparently, which makes
: them a bit more difficult to work with than bitmaps, since their
: headers aren't a fixed size like bitmap files. So far, I have
: trashed 3 jpegs with no success. If someone has source code on a
: JPEG header parser, or just the right jpeg header marker to look for
: and its length bytes, it would be a great help.
:
: Thanks in advance,
: Russell
:
I'm a student, iam working with an image processing program, dealing with bitmap and jpeg files. and i am also stuck at this point, do you have any solution now?
i need to know how big is the JPEG(or JFIF) header?
how to take the width and height out?
when is the header finish and where the data start.

many thanks,
Ray



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.