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:
Searching Numbers (2004)
Multiple 'Users.db' files not possible (1997)
Country & Ship-to address & other fields ? (1997)
The Form authentication trick (2000)
[LOOKUP] (1997)
WebCat editing, SiteGuard & SiteEdit (1997)
math variable security [VERY LONG] (2000)
SERIAL NUMBER PROBLEM *AGAIN*!!! (1998)
frames & carts (1997)
Creating 404 Not Found pages (1999)
WC2b12: Yes, Formulas.db is for real (1997)
b12 cannot limit records returned and more. (1997)
For those of you not on the WebCatalog Beta... (1997)
FWD: Autoproxy Bug with WebCatalog and FireSite (1997)
linetiems in thankyou.tpl (1997)
Quickie question on the email templates (1997)
Record size (1998)
protect tag on NT IIS (1997)
webDNA and ASP pages (1997)
Fun with dates (1997)