Re: [WebDNA] ReturnRaw and binarybody
This WebDNA talk-list message is from 2013
It keeps the original formatting.
numero = 110515
interpreted = N
texte = TomThis will do the job for you:[TEXT]MyImage=3D[ENCRYPT method=3Dbase64&file=3Dtest.jpg][/ENCRYPT][/TEXT]=
![](3D"data:image/jpg;base64,[MYIMAGE]")
I have used a JPG so just swap to GIF etc.RegardsStuart TremainIDFK Web DevelopmentsAUSTRALIAwebdna@idfk.com.auOn 24/07/2013, at 6:37 PM, Tom Duke
wrote:> Stuart,>=20> Hi - thanks for the feedback. I'm on CentOS.>=20> I actually do want to show the image, I was hoping to be able to store =it as a Base64 encoded text string within the WebDNA template, and then =serve it out as a gif using [returnraw] - but it's not working.>=20> I then tried to [decrypt] it, write it to disk and then display the =image, but that's not working either. So if you try the following:>=20>=20> [text]myImage=3D[encrypt method=3Dbase64][include =file=3Dinput.gif][/encrypt][/text]>=20> [writefile file=3Doutput.gif][decrypt =method=3Dbase64][myImage][/decrypt][/writefile]>=20>
>=20>=20> it's not working at my end anyway. Would be interesting to hear if =it's working on other systems, or if there is a reason why it shouldn't =work.>=20> - Tom>=20>=20>=20>=20>=20> --------------------------------------------------------- This message =is sent to you because you are subscribed to the mailing list . To =unsubscribe, E-mail to: archives: =http://mail.webdna.us/list/talk@webdna.us Bug Reporting: =support@webdna.us
Associated Messages, from the most recent to the oldest:
TomThis will do the job for you:[text]MyImage=3D[ENCRYPT method=3Dbase64&file=3Dtest.jpg][/ENCRYPT][/TEXT]=
I have used a JPG so just swap to GIF etc.RegardsStuart TremainIDFK Web DevelopmentsAUSTRALIAwebdna@idfk.com.auOn 24/07/2013, at 6:37 PM, Tom Duke wrote:> Stuart,>=20> Hi - thanks for the feedback. I'm on CentOS.>=20> I actually do want to show the image, I was hoping to be able to store =it as a Base64 encoded text string within the WebDNA template, and then =serve it out as a gif using [returnraw] - but it's not working.>=20> I then tried to [decrypt] it, write it to disk and then display the =image, but that's not working either. So if you try the following:>=20>=20> [text]myImage=3D[encrypt method=3Dbase64][include =file=3Dinput.gif][/encrypt][/text]>=20> [writefile file=3Doutput.gif][decrypt =method=3Dbase64][myImage][/decrypt][/writefile]>=20>
>=20>=20> it's not working at my end anyway. Would be interesting to hear if =it's working on other systems, or if there is a reason why it shouldn't =work.>=20> - Tom>=20>=20>=20>=20>=20> --------------------------------------------------------- This message =is sent to you because you are subscribed to the mailing list . To =unsubscribe, E-mail to: archives: =http://mail.webdna.us/list/talk@webdna.us Bug Reporting: =support@webdna.us
WebDNA
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:
problems with 2 tags (1997)
Trouble with [fileinfo] (2004)
WebCatalog can't find database (1997)
japanese characters (1997)
Web Catalog vs. ICAT (1997)
Searching multiple fields (1997)
Error.html (1997)
Pgp&emailer (1997)
unable to launch acgi in WebCat (1997)
WebCat2b15MacPlugin - [protect] (1997)
Re:no template caching (1997)
WC2f3 (1997)
Opinion: [input] should be called [output] ... (1997)
Re:no [search] with NT (1997)
Help!!!! Purchases not going through! FIXED! (1997)
Email Set-Up? (1997)
Summing fields (1997)
Calendar (1997)
Cool new site (1996)
Trouble with Netscape (1998)