This will create a URL object that contains the location of your file on disk. You can then use this to output a valid file://
URL string that can be used within img
tags.
NSURL* fileURL = [[NSBundle mainBundle] URLForResource:@"temp" withExtension:@"jpg"];
NSLog(@"", fileURL.absoluteString);