Getting images from Firebase JSON
<p>I was wondering if it were possible to fetch an image from the Firebase Database? I know that I can use the storage but for my particular situation it needs to be altered a lot and would be a lot easier if I could enter in the information into the JSON tree and fetch it that way. </p>

<p>So in short, my question is can I use the URL from the storage section of Firebase and copy and paste that into a child in the JSON tree and retrieve it as I would any other number or string in the database?</p>

<p>Every time I code it out it says trying to unwrap a nil value which means it is not finding the image that the URL is pointing to, I assume.</p>

<p>Thanks in advance. Here is the Fetch code that I am using:</p>

<pre><code>let newsimage1 = cell.viewWithTag(3) as! UIImageView
let fetch2 = BASE_URL.child("/AA News Feed 1/Image")
fetch2.observeEventType(.Value, withBlock: { snapshot in
    let base64EncodedString = snapshot.value
    let imageData = NSData(base64EncodedString: base64EncodedString as! String,
                options: NSDataBase64DecodingOptions.IgnoreUnknownCharacters)
    let decodedImage = UIImage(data:imageData!)!
    newsimage1.image = decodedImage
}, withCancelBlock: { error in
    print(error.description)
})
</code></pre>