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._______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid