title: Attempting to download an image in Blackberry Cascades QT, and QML
body: <p>I am attempting to download images in Blackberry Cascades, C++, QT.</p>
  
  <p>I am basically using code that looks like this:</p>
  
  <pre><code>void MyClass::download() {
  
      QUrl url(imagePath);
      QNetworkRequest request(url);
      Q_ASSERT(connect(networkAccessManager_, SIGNAL(finished(QNetworkReply *)), this, SLOT(saveImage(QNetworkReply *))));
  
      networkAccessManager_-&gt;get(request);
  
  }
  
  void MyClass::saveImage(QNetworkReply *) {
      QByteArray imageData = reply-&gt;readAll();
  
      if (reply-&gt;error() != QNetworkReply::NoError) {
          qDebug() &lt;&lt; "an error occured downloading the image";
          return;
      }
  
      qDebug() &lt;&lt; imageData;
      //...
  </code></pre>
  
  <p>When I do this, the imageData just contains: "Ã¿Ã˜Ã¿Ã, instead of the entire content of the image I downloaded.</p>
  
  <p>Can someone explain this to me?, and how can I make this work?</p>