🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #150

Adding a jpeg to a postscript file

#150
From: Eric_Burton
Date: Thu, 01 Jan 2009 22:39
7 lines
1312 bytes
I have an application that needs to be able to convert a jpeg into hex ascii, and then put that hex ascii into a postscript file. I know of one way to put this jpeg into postscript, but that's without using the jpeg's hex - instead, it uses a local path to a filename. I need to know two things:

1. Within a jpeg, how can I extract the hex ascii to use in postscript, in a way that postscript will understand it? Do I need all the header information? If anyone has done this before, please shed some insight. I have found the red book to be not as helpful for this specific problem as I would like.

2. Within said postscript file, how do I enter the hex of the jpeg back so that it will display properly?

Thank you very much.
Technical Details
Message-ID: <59b76798.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2!news.glorb.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,6c91da5fbb73e921,start
X-Google-Attributes: gid10c61a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Eric_Burton@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2!news.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.postscript.programming
Subject: Adding a jpeg to a postscript file
Message-ID: <59b76798.-1@webcrossing.la2eafNXanI>
Date: Thu, 1 Jan 2009 14:39:32 -0800
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit