 					for (var name:String in urlRequest.requestHeaders)
 						xhr.setRequestHeader(name, urlRequest.requestHeaders[name], false);
 					
-					if (urlRequest.responseType === ResponseType.UINT8ARRAY)
+					if (urlRequest.responseType === ResponseType.UINT8ARRAY || urlRequest.responseType === ResponseType.DATAURI)
 						xhr.responseType = ResponseType.ARRAYBUFFER;
 					else
 						xhr.responseType = urlRequest.responseType;

						
						if (urlRequest.responseType === ResponseType.UINT8ARRAY)
							result = new JS.Uint8Array(result);
						
						resolve(result);
						done = true;


	public class URLRequestUtils implements IURLRequestUtils
	{
		private function byteArrayToDataUri(byteArray:/*Uint8*/Array, mimeType:String):String
		{
			return "data:" + (mimeType || '') + ';base64,' + JS.global.btoa(byteArray);
		}
		
		private function byteArrayToString(byteArray:/*Uint8*/Array):String
		{
			var CHUNK_SIZE:int = 8192;
