Include binary files in template/XML

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59760
interpreted = N
texte = Hi I have a problem - I need to generate a XML-file with image-files included in the XML tags. At first i did not think it would be any problem - my plan was to use [write file] with the XML tags and information from the database. And in the image-tag I planned on using [include file=...&raw=t] and [encrypt method=base64] - but sadly the include can't read the file - because the file is a binary file - and not a text file. Example: [Encrypt method=base64][include file=image.jpg&raw=t][/Encrypt] I would like this to return the data-stream from from the file - base64 encoded. Honestly I really don't know much about this subject - Have anybody made Webcat read binary files? Is it posible at all? I found a way to do it using .NET: http://www.perfectxml.com/Answers.asp?ID=2 But since our system uses Webcatalog - i would prefer making a solution i webdna. Hope you guys can help me... Kind Regards Morten Madsen ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Include binary files in template/XML (SOLVED/Request ( "Morten Madsen" 2004)
  2. Re: Include binary files in template/XML (SOLVED/Request new ( Stuart Tremain 2004)
  3. Re: Include binary files in template/XML (SOLVED/Request new ( "Sal D'Anna" 2004)
  4. Re: Include binary files in template/XML (SOLVED/Request new ( "Morten Madsen" 2004)
  5. Include binary files in template/XML ( "Morten Madsen" 2004)
Hi I have a problem - I need to generate a XML-file with image-files included in the XML tags. At first i did not think it would be any problem - my plan was to use [write file] with the XML tags and information from the database. And in the image-tag I planned on using [include file=...&raw=t] and [encrypt method=base64] - but sadly the include can't read the file - because the file is a binary file - and not a text file. Example: [Encrypt method=base64][include file=image.jpg&raw=t][/Encrypt] I would like this to return the data-stream from from the file - base64 encoded. Honestly I really don't know much about this subject - Have anybody made Webcat read binary files? Is it posible at all? I found a way to do it using .NET: http://www.perfectxml.com/Answers.asp?ID=2 But since our system uses Webcatalog - i would prefer making a solution i webdna. Hope you guys can help me... Kind Regards Morten Madsen ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Morten Madsen"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WC 2.0 frames feature (1997) deadlock (2000) https validation (2001) stumped on simple sort (1999) NT IIS number of files limit (2003) Multiple prices (1997) WebCat2b15MacPlugin - showing [math] (1997) search double negative comparison (2001) Whats going on with my SERIAL NUMBER??? (1998) Running _every_ page through WebCat ? (1997) Some Questions (1997) Credit card arrangement (2005) Webstar SSL and Non-SSL question (1998) 4.5 Upgrade (2003) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) UK credit card info follow-up (1997) emailer w/F2 (1997) input type=file has no value? (2003) question: webmerchant connection (1997) taxtotal question (2002)