Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Base64 Encoded String within XML from File (VBA-Access 2007) [Thread Next] Re: Base64 Encoded String within XML from File (VBA-Access 2007)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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
