By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,504 Members | 1,473 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,504 IT Pros & Developers. It's quick & easy.

Read binary file as hex

P: n/a
I'm using ASP to generate an RTF (rich text) file, via the FSO. No
problems with text, but when it comes to inserting images, the files
have to be embedded as either binary or hex.

Try as I might, I can't get binary to work (Word b0rks trying to open
the resulting file). When I create a simple RTF in Wordpad and then view
its source, Wordpad seems to be embedding the image as hex.

Does anyone have a suggestion as to how I could read an image file off
the disk in hex format for writing into my RTF?

Any suggestions gratefully received.

drew.
Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
DrewM <nu**@allinthehead.com> wrote in news:#G0A9PBwEHA.1976
@TK2MSFTNGP09.phx.gbl:

Have you checked out if there are any third party components that would
either do that, or at least do an intemediate conversion?

I'm using ASP to generate an RTF (rich text) file, via the FSO. No
problems with text, but when it comes to inserting images, the files
have to be embedded as either binary or hex.

Try as I might, I can't get binary to work (Word b0rks trying to open
the resulting file). When I create a simple RTF in Wordpad and then view
its source, Wordpad seems to be embedding the image as hex.

Does anyone have a suggestion as to how I could read an image file off
the disk in hex format for writing into my RTF?

Any suggestions gratefully received.

drew.


Jul 21 '05 #2

P: n/a
s_m_b wrote:
DrewM <nu**@allinthehead.com> wrote in news:#G0A9PBwEHA.1976
@TK2MSFTNGP09.phx.gbl:

Have you checked out if there are any third party components that would
either do that, or at least do an intemediate conversion?


Yes, but I haven't managed to find anything yet.

Thanks

drew.
Jul 21 '05 #3

P: n/a
"DrewM" <nu**@allinthehead.com> wrote in message
news:e$****************@TK2MSFTNGP10.phx.gbl...
: s_m_b wrote:
: > DrewM <nu**@allinthehead.com> wrote in news:#G0A9PBwEHA.1976
: > @TK2MSFTNGP09.phx.gbl:
: >
: > Have you checked out if there are any third party components that would
: > either do that, or at least do an intemediate conversion?
:
: Yes, but I haven't managed to find anything yet.

http://www.motobit.com/tips/detpg_re...nary-files.htm

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.