Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Jewb2 #1
Extracting the info from a file
Dear All,
I am receiving information from a third party (I have no control over the
format). When I receive the infomation I have to run ToBinary on it to get it
into the attached codes format.
My question is this, how can I know extract the information from this file?
I have not put all the contents in as it was some 50K, all I have removed is
the encoded part towards the end which is Base64 representation of a file
detailed higher up in the text.
Ideally I would like to be able to get the file name 10022005.jpg in this
instance and the actual Base64 encoded date to repeat the ToBinary on and save
it as the correct file name.
Bit stumped here. If anyone can help it would be much appreciated.
Regards,
Lee (attached code should start below this line)
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: multipart/related; boundary="HeSTTjzfaCZwGf/X7PcA4AAAAGg=";
start="<mms.smil>"; type="application/smil"
--HeSTTjzfaCZwGf/X7PcA4AAAAGg=
Content-Type: application/smil; name=mms.smil
Content-Id: <mms.smil>
Content-Transfer-Encoding: 7bit
<smil>
<head>
<layout>
<region id="Text" top="130" left="8" height="58" width="160" />
<region id="Image" top="5" left="8" height="120" width="160" />
</layout>
</head>
<body>
<par dur="5000ms">
<text src="Lee.txt" region="Text" />
<img src="10022005.jpg" region="Image" />
</par>
</body>
</smil>
--HeSTTjzfaCZwGf/X7PcA4AAAAGg=
Content-Type: text/plain; name=Lee.txt; charset=utf-8
Content-Location: Lee.txt
Content-Transfer-Encoding: 8bit
Lee
--HeSTTjzfaCZwGf/X7PcA4AAAAGg=
Content-Type: image/jpeg; name=10022005.jpg
Content-Transfer-Encoding: binary
Content-Location: 10022005.jpg
???? JFIF ?? ?
$.'
--HeSTTjzfaCZwGf/X7PcA4AAAAGg=--
Jewb2 Guest
-
Extracting IPTC info
Anyone know of a script that will extract image IPTC info so that I can place it in on a page to go with the image? Would make the process of... -
cfloop and extracting info from fields
Hi I am trying to extract information from an old database into a newer one, and I have a problem that I have been trying to solve for a while.... -
Extracting info from a variable
i want to take the following string .cfm?PID=76?UMversion=2.9&blahblahblah I need to only extract the variable after PID however I am getting... -
Extracting info from memo field
Hi I have an Access datafile (ASSESSMENTS) indexed by a number (ASSESSCODE). It has a memo field (CHEMS) which is used to collect information on... -
Extracting EXIF/IPTC info from jpeg and tiff files
Hi everybody I need to extract the information (EXIF and IPTC) from jpeg/tiff image files. After that i have to allow my client to modify and put...



Reply With Quote

