Re: [WebDNA] Decode Base64 Image

This WebDNA talk-list message is from

2019


It keeps the original formatting.
numero = 114681
interpreted = N
texte = 2303 --Apple-Mail=_44B802D8-1A66-49A0-99A0-B9DE11F5352F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Thanks Tom I got it working using Imagemagick but I like your solution - no relying = on another piece of software. Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@plsoftware.com.au > On 9 Aug 2019, at 17:05, Tom Duke wrote: >=20 > Stuart, >=20 > This works for me. >=20 > - Tom >=20 >=20 >=20 > [!] >=20 > ### Write the image-data to disk ### >=20 > [/!][writefile = file=3D/img/[varIMAGEID].txt][varBASE64STRING][/writefile][!] >=20 > ### Load and decode the image-data ### >=20 > [/!][writefile file=3D/img/[varIMAGEID].jpg][!] > [/!][shell]base64 -d = '/full-path-to-the-image/[varIMAGEID].txt'[/shell][!] > [/!][/writefile][!] >=20 > ### Delete the image-data text file ### >=20 > [/!][deletefile file=3D/img/[varIMAGEID].txt] >=20 >=20 >=20 > =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 > Ireland > ---------------------------------------------- > [t]: + 353 1 4403907 > [e]: > > [w]: > > =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 >=20 >=20 > 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. >=20 > Has anyone had success doing this ? >=20 > Any ideas ? >=20 >=20 > Kind regards >=20 > Stuart Tremain > Pharoah Lane Software > AUSTRALIA > webdna@plsoftware.com.au >=20 >> On 3 May 2017, at 08:31, Tom Duke > wrote: >>=20 >> Hi all, >>=20 >> So I can Base64 encode an image using: >>=20 >> [encrypt method=3DBase64&file=3Dmy-test.jpg][/encrypt] >>=20 >> How do I decode the Base64 data back using WebDNA? >>=20 >> - Tom >>=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 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > --------------------------------------------------------- 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 = ------------------------------------------------= --------- 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 --Apple-Mail=_44B802D8-1A66-49A0-99A0-B9DE11F5352F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Thanks Tom

I got it working using Imagemagick but I like your solution - = no relying on another piece of software.

Kind regards

Stuart Tremain
Pharoah Lane Software
AUSTRALIA







On 9 Aug 2019, at 17:05, Tom Duke <tom@revolutionaries.ie> wrote:

Stuart,

This works for me.

- Tom



= [!]

= ###  Write the image-data to disk  ###

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

= ###  Load and decode the image-data  ###

= [/!][writefile file=3D/img/[varIMAGEID].jpg][!]
= [/!][shell]base64 -d = '/full-path-to-the-image/[varIMAGEID].txt'[/shell][!]
= [/!][/writefile][!]

###  Delete = the image-data text file  ###

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



=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
Ireland
----------------------------------------------
[t]: + 353 1 4403907
[e]: <mailto:tom@revolutionaries.ie>
[w]: <http://www.revolutionaries.ie/>
=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 ?

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:

  =   [encrypt method=3DBase64&file=3Dmy-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=3D55= 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=3D55 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=3D55 Bug Reporting: support@webdna.us --Apple-Mail=_44B802D8-1A66-49A0-99A0-B9DE11F5352F-- . 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)
2303 --Apple-Mail=_44B802D8-1A66-49A0-99A0-B9DE11F5352F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Thanks Tom I got it working using Imagemagick but I like your solution - no relying = on another piece of software. Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@plsoftware.com.au > On 9 Aug 2019, at 17:05, Tom Duke wrote: >=20 > Stuart, >=20 > This works for me. >=20 > - Tom >=20 >=20 >=20 > [!] >=20 > ### Write the image-data to disk ### >=20 > [/!][writefile = file=3D/img/[varIMAGEID].txt][varBASE64STRING][/writefile][!] >=20 > ### Load and decode the image-data ### >=20 > [/!][writefile file=3D/img/[varIMAGEID].jpg][!] > [/!][shell]base64 -d = '/full-path-to-the-image/[varIMAGEID].txt'[/shell][!] > [/!][/writefile][!] >=20 > ### Delete the image-data text file ### >=20 > [/!][deletefile file=3D/img/[varIMAGEID].txt] >=20 >=20 >=20 > =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 > Ireland > ---------------------------------------------- > [t]: + 353 1 4403907 > [e]: > > [w]: > > =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 >=20 >=20 > 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. >=20 > Has anyone had success doing this ? >=20 > Any ideas ? >=20 >=20 > Kind regards >=20 > Stuart Tremain > Pharoah Lane Software > AUSTRALIA > webdna@plsoftware.com.au >=20 >> On 3 May 2017, at 08:31, Tom Duke > wrote: >>=20 >> Hi all, >>=20 >> So I can Base64 encode an image using: >>=20 >> [encrypt method=3DBase64&file=3Dmy-test.jpg][/encrypt] >>=20 >> How do I decode the Base64 data back using WebDNA? >>=20 >> - Tom >>=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 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > --------------------------------------------------------- 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 = ------------------------------------------------= --------- 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 --Apple-Mail=_44B802D8-1A66-49A0-99A0-B9DE11F5352F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Thanks Tom

I got it working using Imagemagick but I like your solution - = no relying on another piece of software.

Kind regards

Stuart Tremain
Pharoah Lane Software
AUSTRALIA







On 9 Aug 2019, at 17:05, Tom Duke <tom@revolutionaries.ie> wrote:

Stuart,

This works for me.

- Tom



= [!]

= ###  Write the image-data to disk  ###

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

= ###  Load and decode the image-data  ###

= [/!][writefile file=3D/img/[varIMAGEID].jpg][!]
= [/!][shell]base64 -d = '/full-path-to-the-image/[varIMAGEID].txt'[/shell][!]
= [/!][/writefile][!]

###  Delete = the image-data text file  ###

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



=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
Ireland
----------------------------------------------
[t]: + 353 1 4403907
[e]: <mailto:tom@revolutionaries.ie>
[w]: <http://www.revolutionaries.ie/>
=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 ?

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:

  =   [encrypt method=3DBase64&file=3Dmy-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=3D55= 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=3D55 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=3D55 Bug Reporting: support@webdna.us --Apple-Mail=_44B802D8-1A66-49A0-99A0-B9DE11F5352F-- . Stuart Tremain

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:

Fufillment e-mail? (1998) Frames and WebCat (1997) Bug Report, maybe (1997) How can I Add several Items into the cart at once? (1997) still facing truncated [texta] problem (2000) WebCat2 - [format thousands] (1997) no word on MacAuthorize... (1997) Interpret (2000) Help with UPS Shipping (2006) Table Loop Hoops (2000) Date problems (1997) won't [sendmail] inside of a [search] (2007) emailer error type 103 (1997) [WebDNA] Retrieving a PDF from an email - SOLUTION (2008) flushdatabases (2000) [format xs] freeze (1997) Silly Question (1997) TPC Connect (1999) Vanity counter side note (1998) WebCatalog/Mac 2.1b2 - PIXO (1997)