PDA

Click to See Complete Forum and Search --> : Combining multiple JPEGs into one file...


ozymandiaz2
Feb 11th, 2001, 03:44 PM
I need to make a program that will show basically a slide show of JPEGS from files that will distributed separately. Each file would have a varying amount of pictures in it. But the point is it needs to be one file.
What I mean is, ther user will load this one file in the program and then he will be able to browse through the 30 or 50 or whatever number of pictures that are inside this file.

My question is, how would I go about stringing 30 jpeg files together into one file that I could then use in my program? How could the program look at this one file and then show the separate jpegs contained in it? And how could I add extra information to the file that the program would use (the number of pictures in the file, the artist of each photograph... like an ID3 tag)?

kedaman
Feb 11th, 2001, 08:36 PM
Having a UDT primary header for file amount and a secondary header for file offset and size and Tag data that is followed by the jpg's themself.
You need to open your file binary, use get and put statements to read and write your udt structures to your file, the secondary header being dynamic in amount has to be redimmed after getting it from the primary header.