Article View: borland.public.jbuilder.java.language
Article #18667Re: Reading JPEG image from a Memory array.
From: David Svensson
Date: Thu, 14 May 1998 00:00
Date: Thu, 14 May 1998 00:00
26 lines
1193 bytes
1193 bytes
Allen Pauna wrote in message <6jaib6$alc26@forums.borland.com>... >Hello, >Here is the problem I am having, I need to load an Image object with a image >that is stored in memory. >This is because the JPEG image is stored inside of another file, and I parse >through the file to get the image >data. I then store the image data into a int array. This int array contains >all the image data including the header >file. The JPEG image is a lossy baseline image, which as far as I can tell >will not decode using >MemoryImageSource class. Any suggestions would be helpful. > Try this: byte [] data; ... Image img = this.getDefaultToolkit().createImage(data); Mvh David
Technical Details
Message-ID:
<6jfjf0$4ob$1@cubacola.tninet.se>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6jaib6$alc26@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,e350162a80fb185 X-Google-Attributes: gidf74b3,public From: "David Svensson" <david.svensson@adrian.se> Subject: Re: Reading JPEG image from a Memory array. Date: 1998/05/14 Message-ID: <6jfjf0$4ob$1@cubacola.tninet.se> X-Deja-AN: 353301743 References: <6jaib6$alc26@forums.borland.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Algonet/Tninet Newsgroups: borland.public.jbuilder.java.language