Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Base64 Encoded String within XML from File (VBA-Access 2007)

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 8/6/2009 6:17:00 PM
MarkTheAccountant wrote:

> Where I’m struggling is with taking an external file on my local machine 
> (say a PDF format file) and converting this to a Base64 string for including 
> in XML.  I can save the resultant XML as a file and convert a text string to 
> Base64 it’s just accessing this external file and converting it which is 
> challenging.
> 
> I note a solution that uses OLE objects but wanted to do this without this 
> if possible.  (see 
> http://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/72575a42-3cb9-4637-9ce5-43b78076cf7a).

What do you want to do, reading a PDF document into a VBA byte array? 
Have you considered to use ADODB.Stream
http://msdn.microsoft.com/en-us/library/ms675032(VS.85).aspx
for that?

-- 

	Martin Honnen --- MVP XML
	http://msmvps.com/blogs/martin_honnen/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent