Expert Answer Center > Experts On Demand > View Answer
EMAIL THIS
Experts on Demand
  EXPERTS ON DEMAND HOME     POSE A QUESTION     VIEW ANSWERS     BROWSE BY TOPIC        RSS FEEDS  
My question revolves around using XML and binaries (i.e., pictures, sound files and avis). I realize the preferred solution is provide a link and let them download the linked file. However, should that not be possible and it is necessary to transmit the actual binary, how would I do this? Do you recommend conversion to Base64 encryption, serialization or another method? QUESTION POSED ON: 25 JAN 2005
QUESTION ANSWERED BY: Daniel Cazzulino It depends on how you're transferring the message from the server to client (or vice versa). If you're using Web services, you should definitely read Matt Powell's article at MSDN as it explains all the issues related to that. If you just have to put the binary elements into a regular XML, then Base64 is your only choice. Beware that Base64 is NOT encryption -- it's just encoding. You will have quite a bit of size increases using it, but it's the most compatible. If you couple it with compression (i.e., using the #ziplib, you will be OK.
HomeExperts on DemandIT Expert Webcast SeriesExpert KnowledgebaseSite Index
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts