mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:02:44 +00:00 
			
		
		
		
	 77d32fcb5f
			
		
	
	
		77d32fcb5f
		
	
	
	
	
		
			
			Some steps are still to be implemented, namely: * Properly aborting the read algorithm * Handling BinaryString type properly * Setting error on any error But as it stands, this is enough functionality for the basic case of reading the contents of a blob using the FileReader API.
		
			
				
	
	
		
			3 lines
		
	
	
	
		
			265 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			3 lines
		
	
	
	
		
			265 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| 1: readAsText(): 'This is some data to be read! 🦬' error: 'null'
 | |
| 2: readAsDataURL(): 'data:application/octet-stream;base64,VGhpcyBpcyBzb21lIGRhdGEgdG8gYmUgcmVhZCEg8J+mrA==' error: 'null'
 | |
| 3: readAsArrayBuffer(): 'This is some data to be read! 🦬' error: 'null'
 |