title: Xamarin Android passing data from class to activity
body: <p>I made a Web API for my Xamarin Android app. And now I pass through the data from the Web API to android using JSON (JArray). And now I filled up a class with the JSON data, but I'm not sure how to get the data from the class into my android Activity.</p>
  
  <p>Codes:
  This is for requesting the JArray in my Web API to the Activity, and convert it to the class I made.</p>
  
  <pre><code>WebClient request = new WebClient();
  Uri uri = new Uri("http://IPHERE/Database/api/Surfboards/GetSurfboards");
  string surfboardsString = request.DownloadString(uri);
  JArray theArray = JArray.Parse(surfboardsString);
  Surfboard[] surfboard = (Surfboard[])JsonConvert.DeserializeObject(theArray.ToString());
  </code></pre>
  
  <p>This is my Surfboard.cs (Class)</p>
  
  <pre><code>class Surfboard
  {
      public string Name { get; set; }
      public double Price { get; set; }
      public string Type { get; set; }
      public byte[] Picture { get; set; }
      public string Description { get; set; }
  }
  </code></pre>
  
  <p>And eventually I have another question, I can upload an image that gets converted to a byte array for the JSON, but how can I turn it back into the image if the byte array is in the android app?</p>
  
  <p>Thanks!</p>