• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Using WDDX > Binary Content in WDDX Packets

Binary Content in WDDX Packets

So far, the WDDX packets you've seen in this chapter have contained data that can be expressed as a string. Sure, the data might be arranged in complex data structures such as arrays, recordsets, and structures, and the data might contain dates or numbers surrounded by <number> or <dateTime> elements. But the individual pieces of data have all been easy for WDDX to express as a string between the actual <number>, <dateTime>, <string>, and other data elements.

WDDX also allows you to include binary data in packets. For purposes of this discussion, binary data means any data that doesn't have an obvious plain-text counterpart. The most obvious examples of binary data are the contents of nontextual files such as image files, database files, executables, Word or other application-specific documents, and so on. Basically, any file that shows up as “garbage” in a text editor (such as Macromedia Dreamweaver or Windows Notepad) should probably be considered to be a binary file for our purposes here.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint