[mono-android] Retrieving an image from Assets
tcorrigan5
tom at corrigan.com
Mon Feb 27 02:54:28 UTC 2012
I have placed a .png file in Assets but get the following error when I
attempt to retrieve it using the following code:
var input = Assets.Open("theImage.png");
The variable /input/ that is returned in this case is an
Android.Runtime.InputStreamInvoker whose Length and Position properties both
have the value System.NotSupportedException: Operation is not supported.
Anyone having any insights to this?
I have no trouble accessing a text file (an .html file, actually) using the
same code. Also the file name does show up in the array returned by
Assets.List().
--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Retrieving-an-image-from-Assets-tp5517857p5517857.html
Sent from the Mono for Android mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120226/29a72609/attachment.html>
More information about the Monodroid
mailing list