416-621-9348 cgreaves@chrisgreaves.com Visit www.ChrisGreaves.com for this image! Chris_GEDC1894_Head (Small).JPG
Home Services Products

Embedded images (Home) ; Obtain set of original images on disk ; Build application ; Try with images embedded as images in a GUI form within the application ; Switch to images embedded as numeric strings within the application ; Converting a stored image to an ASCII string ; Converting an ASCII string to a stored image ; Optimizing storage of the embedded string ; Function to insert an image from an embedded string ; Macro to drive the function ; Essay with a string as a parameter (statement) ; Converting An Embedded String To A String ; Converting A String To An Array Of VBA Statements ; Converting an string of VBA assignment statements to an array of VBA code ; Converting an array of VBA code to a macro .


Loading

Toronto and Mississauga, Sunday, December 05, 2010 3:06 PM

Copyright © 1996-2010 Chris Greaves. All Rights Reserved.

Converting An ASCII String To A Stored Image

The reverse of the process is straightforward - parse the delimited string, obtain the long value of each substring, and append the CHR of that to a string.

Write the assembled string to disk as a binary file.

“But I thought we were avoiding disk storage?”

Yes, we are, but we will create a transient image file on-the-fly and insert this transient image into your application document. We need the file for about one tenth of a second, so we feel safe in creating, inserting, and then deleting it.


Loading

Toronto and Mississauga, Sunday, December 05, 2010 3:06 PM

Copyright © 1996-2010 Chris Greaves. All Rights Reserved.