 					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;

							case ResponseType.UINT8ARRAY:
								return resolve(byteArray);
							case ResponseType.DATAURI:
								return resolve("data:" + (urlRequest.mimeType || '') + ';base64,' + JS.global.btoa(byteArray));
						}
					});
				});


	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;
