www.data to array

I have

if (www.error == null)
{
    Debug.Log("WWW Ok!: " + www.data);
 
} else {
    Debug.Log("WWW Error: "+ www.error);
} 

How to make this www.data value into array in c#?

Hej there. Depends on what kind of data you want to read. For binary like this.

byte[] data;
if (www.error != null)
{
	Debug.Log("WWW Error: "+ www.error);
 
} else {
    data = www.byte;
}