Re: [WebDNA] ReturnRaw and binarybody

This WebDNA talk-list message is from

2013


It keeps the original formatting.
numero = 110517
interpreted = N
texte = --Apple-Mail=_6C1EAB13-150A-427F-A5DB-9777EC77C057 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Tom You are correct about writing the image. What you need to do is write the file to disk and then use [SHELL] = script to decompress the file. You could save the var as a text file and then [INCLUDE] it in the same = manner as I showed you. Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 24/07/2013, at 10:02 PM, Tom Duke wrote: > Stuart, >=20 > Hi - thanks, that works and is obviously the correct way to Base64 = encode an image - which is great. But after much messing around there = does not appear to be a way in WebDNA to decode a Base64 image and = either write it to disk or serve it out. So I guess this approach (i.e = including the image directly in the WebDNA code) is not going to work. >=20 > Just to clarify, I am trying to improve our web bug (i.e. tracking = pixel) code - so I can add something like: >=20 > =20 >=20 > to an email, add stuff to a log file when the image is accessed, and = then serve back a 1x1 px blank image. I'm trying to avoid a situation = where the 1x1 blank image is not available on the local site. >=20 > I'll try a different approach to check for the existence locally of = the blank image and then use [tcpconnect] to pull the image down off a = remote site and write locally if it doesn't exist. >=20 > Thanks > - Tom >=20 >=20 >=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 --Apple-Mail=_6C1EAB13-150A-427F-A5DB-9777EC77C057 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii Tom

You are correct about writing the image.

What you need to do is write the file to disk and then use [SHELL] script to decompress the file.

You could save the var as a text file and then [INCLUDE] it in the same manner as I showed you.



Regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA




On 24/07/2013, at 10:02 PM, Tom Duke <tom@revolutionaries.ie> wrote:

Stuart,

Hi - thanks, that works and is obviously the correct way to Base64 encode an image - which is great.   But after much messing around there does not appear to be a way in WebDNA to decode a Base64 image and either write it to disk or serve it out.   So I guess this approach (i.e including the image directly in the WebDNA code) is not going to work.

Just to clarify, I am trying to improve our web bug (i.e. tracking pixel) code - so I can add something like:


to an email, add stuff to a log file when the image is accessed, and then serve back a 1x1 px blank image.   I'm trying to avoid a situation where the 1x1 blank image is not available on the local site.

I'll try a different approach to check for the existence locally of the blank image and then use [tcpconnect] to pull the image down off a remote site and write locally if it doesn't exist.

Thanks
- 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

--Apple-Mail=_6C1EAB13-150A-427F-A5DB-9777EC77C057-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] ReturnRaw and binarybody (WebDNA 2013)
  2. Re: [WebDNA] ReturnRaw and binarybody (Tom Duke 2013)
  3. Re: [WebDNA] ReturnRaw and binarybody (WebDNA 2013)
  4. Re: [WebDNA] ReturnRaw and binarybody (Tom Duke 2013)
  5. Re: [WebDNA] ReturnRaw and binarybody (WebDNA 2013)
  6. Re: [WebDNA] ReturnRaw and binarybody (WebDNA 2013)
  7. Re: [WebDNA] ReturnRaw and binarybody (Tom Duke 2013)
  8. Re: [WebDNA] ReturnRaw and binarybody (WebDNA 2013)
  9. [WebDNA] ReturnRaw and binarybody (Tom Duke 2013)
--Apple-Mail=_6C1EAB13-150A-427F-A5DB-9777EC77C057 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Tom You are correct about writing the image. What you need to do is write the file to disk and then use [shell] = script to decompress the file. You could save the var as a text file and then [include] it in the same = manner as I showed you. Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 24/07/2013, at 10:02 PM, Tom Duke wrote: > Stuart, >=20 > Hi - thanks, that works and is obviously the correct way to Base64 = encode an image - which is great. But after much messing around there = does not appear to be a way in WebDNA to decode a Base64 image and = either write it to disk or serve it out. So I guess this approach (i.e = including the image directly in the WebDNA code) is not going to work. >=20 > Just to clarify, I am trying to improve our web bug (i.e. tracking = pixel) code - so I can add something like: >=20 > =20 >=20 > to an email, add stuff to a log file when the image is accessed, and = then serve back a 1x1 px blank image. I'm trying to avoid a situation = where the 1x1 blank image is not available on the local site. >=20 > I'll try a different approach to check for the existence locally of = the blank image and then use [tcpconnect] to pull the image down off a = remote site and write locally if it doesn't exist. >=20 > Thanks > - Tom >=20 >=20 >=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 --Apple-Mail=_6C1EAB13-150A-427F-A5DB-9777EC77C057 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii Tom

You are correct about writing the image.

What you need to do is write the file to disk and then use [shell] script to decompress the file.

You could save the var as a text file and then [include] it in the same manner as I showed you.



Regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA




On 24/07/2013, at 10:02 PM, Tom Duke <tom@revolutionaries.ie> wrote:

Stuart,

Hi - thanks, that works and is obviously the correct way to Base64 encode an image - which is great.   But after much messing around there does not appear to be a way in WebDNA to decode a Base64 image and either write it to disk or serve it out.   So I guess this approach (i.e including the image directly in the WebDNA code) is not going to work.

Just to clarify, I am trying to improve our web bug (i.e. tracking pixel) code - so I can add something like:


to an email, add stuff to a log file when the image is accessed, and then serve back a 1x1 px blank image.   I'm trying to avoid a situation where the 1x1 blank image is not available on the local site.

I'll try a different approach to check for the existence locally of the blank image and then use [tcpconnect] to pull the image down off a remote site and write locally if it doesn't exist.

Thanks
- 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

--Apple-Mail=_6C1EAB13-150A-427F-A5DB-9777EC77C057-- 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:

cookies and [returnraw] (1997) WebCatalog Hosting (1996) flushdatabases (2000) 5.0: Blank shopping carts & other weirdness (2003) searching illegal HTML (2002) Cookie problems using Mozilla and Camino browsers (2004) Quit revisited (1997) Is this possible, WebCat2.0 and checkboxes (1997) showif and cart (1997) Problem displaying search result (1997) Closing Databases (1998) Word search (1997) off topic - dna snipets (1997) Keep away (1997) WebMerchant still not working!! (1999) [append] vs. [appendfile] delta + question? (1997) Secure Web Server (1999) WebCat editing, SiteGuard & SiteEdit (1997) [WebDNA] [OT] Social Media Share Buttons (2013) WebCat for News Gathering (1999)