Re: [WebDNA] Decode Base64 Image

This WebDNA talk-list message is from

2019


It keeps the original formatting.
numero = 114680
interpreted = N
texte = 2302 --0000000000009b7467058fa9cb45 Content-Type: text/plain; charset="UTF-8" Stuart, This works for me. - Tom [!] ### Write the image-data to disk ### [/!][writefile file=/img/[varIMAGEID].txt][varBASE64STRING][/writefile][!] ### Load and decode the image-data ### [/!][writefile file=/img/[varIMAGEID].jpg][!] [/!][shell]base64 -d '/full-path-to-the-image/[varIMAGEID].txt'[/shell][!] [/!][/writefile][!] ### Delete the image-data text file ### [/!][deletefile file=/img/[varIMAGEID].txt] ============================================== Digital Revolutionaries 1st Floor, Castleriver House 14-15 Parliament Street Temple Bar,Dublin 2 Ireland ---------------------------------------------- [t]: + 353 1 4403907 [e]: [w]: ============================================== On Fri, 9 Aug 2019 at 05:57, Stuart Tremain wrote: > I have come up against the wall trying to save a Base64 string as an image. > > Has anyone had success doing this ? > > Any ideas ? > > > Kind regards > > Stuart Tremain > Pharoah Lane Software > AUSTRALIA > webdna@plsoftware.com.au > > > On 3 May 2017, at 08:31, Tom Duke wrote: > > Hi all, > > So I can Base64 encode an image using: > > [encrypt method=Base64&file=my-test.jpg][/encrypt] > > How do I decode the Base64 data back using WebDNA? > > - Tom > > > --------------------------------------------------------- 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 > > > > > > > > > > > > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list talk@webdna.us > To unsubscribe, E-mail to: talk-leave@webdna.us archives: > http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us --0000000000009b7467058fa9cb45 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Stuart,

This works for= me.

- Tom



[!]

### =C2=A0Write the image-data= to disk =C2=A0###

[/!][writefile file=3D/img/[varIMA= GEID].txt][varBASE64STRING][/writefile][!]

### =C2= =A0Load and decode the image-data =C2=A0###

[/!][writ= efile file=3D/img/[varIMAGEID].jpg][!]
[/!][shell]base64 -d '/f= ull-path-to-the-image/[varIMAGEID].txt'[/shell][!]
[/!][/writefi= le][!]

### =C2=A0Delete the image-data text file = =C2=A0###

[/!][deletefile file=3D/img/[varIMAGEID].tx= t]



=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Digital Revolutionaries
1st Floor, = Castleriver House
14-15 Parliament Street
Temple Bar,Dublin 2
Irel= and
----------------------------------------------
[t]: + 353 1 44039= 07
[e]: <mailto:tom@revolutionaries.ie>
[w]: <http://www.revolutionaries.ie/><= br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D


On Fri, 9 Aug 2019 at 05:57, Stuart Tremain <webdna@plsoftware.com.au> = wrote:
I have come up against the wall trying to save a Base64 string= as an image.

Has anyone had success doing this ?
<= div>
Any ideas ?


Kind regards
=
Stuart Tremain
Pharoah Lane Software
AUSTRALIA


On 3 May 2017, at 08:31, Tom Duke <tom@revolutionaries.ie> wrote:

Hi all,

So I can Base64 encode an image using:<= /div>

=C2=A0 =C2=A0 [encrypt method=3DBase64&file=3D= my-test.jpg][/encrypt]

How do I decode the Base64 = data back using WebDNA?

- Tom

=

--------------------------------------------------------- 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: suppo= rt@webdna.us


=




<= /div>


=

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@w= ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppo= rt@webdna.us --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --0000000000009b7467058fa9cb45-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Decode Base64 Image (Stuart Tremain 2019)
  2. Re: [WebDNA] Decode Base64 Image (Tom Duke 2019)
  3. Re: [WebDNA] Decode Base64 Image (Stuart Tremain 2019)
  4. Re: [WebDNA] Decode Base64 Image (Tom Duke 2019)
  5. Re: [WebDNA] Decode Base64 Image (Stuart Tremain 2019)
  6. [WebDNA] Decode Base64 Image (Tom Duke 2017)
2302 --0000000000009b7467058fa9cb45 Content-Type: text/plain; charset="UTF-8" Stuart, This works for me. - Tom [!] ### Write the image-data to disk ### [/!][writefile file=/img/[varIMAGEID].txt][varBASE64STRING][/writefile][!] ### Load and decode the image-data ### [/!][writefile file=/img/[varIMAGEID].jpg][!] [/!][shell]base64 -d '/full-path-to-the-image/[varIMAGEID].txt'[/shell][!] [/!][/writefile][!] ### Delete the image-data text file ### [/!][deletefile file=/img/[varIMAGEID].txt] ============================================== Digital Revolutionaries 1st Floor, Castleriver House 14-15 Parliament Street Temple Bar,Dublin 2 Ireland ---------------------------------------------- [t]: + 353 1 4403907 [e]: [w]: ============================================== On Fri, 9 Aug 2019 at 05:57, Stuart Tremain wrote: > I have come up against the wall trying to save a Base64 string as an image. > > Has anyone had success doing this ? > > Any ideas ? > > > Kind regards > > Stuart Tremain > Pharoah Lane Software > AUSTRALIA > webdna@plsoftware.com.au > > > On 3 May 2017, at 08:31, Tom Duke wrote: > > Hi all, > > So I can Base64 encode an image using: > > [encrypt method=Base64&file=my-test.jpg][/encrypt] > > How do I decode the Base64 data back using WebDNA? > > - Tom > > > --------------------------------------------------------- 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 > > > > > > > > > > > > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list talk@webdna.us > To unsubscribe, E-mail to: talk-leave@webdna.us archives: > http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us --0000000000009b7467058fa9cb45 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Stuart,

This works for= me.

- Tom



[!]

### =C2=A0Write the image-data= to disk =C2=A0###

[/!][writefile file=3D/img/[varIMA= GEID].txt][varBASE64STRING][/writefile][!]

### =C2= =A0Load and decode the image-data =C2=A0###

[/!][writ= efile file=3D/img/[varIMAGEID].jpg][!]
[/!][shell]base64 -d '/f= ull-path-to-the-image/[varIMAGEID].txt'[/shell][!]
[/!][/writefi= le][!]

### =C2=A0Delete the image-data text file = =C2=A0###

[/!][deletefile file=3D/img/[varIMAGEID].tx= t]



=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Digital Revolutionaries
1st Floor, = Castleriver House
14-15 Parliament Street
Temple Bar,Dublin 2
Irel= and
----------------------------------------------
[t]: + 353 1 44039= 07
[e]: <mailto:tom@revolutionaries.ie>
[w]: <http://www.revolutionaries.ie/><= br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D


On Fri, 9 Aug 2019 at 05:57, Stuart Tremain <webdna@plsoftware.com.au> = wrote:
I have come up against the wall trying to save a Base64 string= as an image.

Has anyone had success doing this ?
<= div>
Any ideas ?


Kind regards
=
Stuart Tremain
Pharoah Lane Software
AUSTRALIA


On 3 May 2017, at 08:31, Tom Duke <tom@revolutionaries.ie> wrote:

Hi all,

So I can Base64 encode an image using:<= /div>

=C2=A0 =C2=A0 [encrypt method=3DBase64&file=3D= my-test.jpg][/encrypt]

How do I decode the Base64 = data back using WebDNA?

- Tom

=

--------------------------------------------------------- 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: suppo= rt@webdna.us


=




<= /div>


=

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@w= ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppo= rt@webdna.us --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --0000000000009b7467058fa9cb45-- . Tom Duke

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:

Carrying Forward (1998) So [OT] it's not even funny (2003) Multiple Pulldowns (1997) HELP WITH DATES (1997) [OT] Colored source code in IE? (2007) Word Bolding (1996) HTTP "host" header (2003) Custom Shipping Charges (1997) Location of Browser Info.txt file (1997) Starting WebCat under linux (2000) Strange intermittent WebDNA problems Workaround (2008) Re(6): Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (1998) Redirect (2003) Erotic Sites (1997) Questions about maximum (1999) is [Bankres] an internal webcat variable? (1999) [shipTotal] or [shippingTotal] ??? (1998) webcat2b12 CGI -- Date comparisons (1997) Web Catalog 2 demo (1997) Grep to convert characters to html entities (2006)