Hi all,
I'm trying to create a document (i.e. .doc,.html) with embedded images with objective-c.
The images are stored locally on the iPhone.
For example, I've created an html using img tag and the file uri scheme. Then I saved the html code on a .doc file. But the images are not displayed.
The same thing happens if I save the html code as an .html file.
where absolutePath is the path of the image on the device (I printed it and it's right).
Any suggestion?
Thank you in advance,
Fran
I'm trying to create a document (i.e. .doc,.html) with embedded images with objective-c.
The images are stored locally on the iPhone.
For example, I've created an html using img tag and the file uri scheme. Then I saved the html code on a .doc file. But the images are not displayed.
The same thing happens if I save the html code as an .html file.
Code:
[body appendString:@"<img src='"];
[body appendFormat:@"file:/%@", absolutePath];
[body appendString:@"' />"];
Any suggestion?
Thank you in advance,
Fran