views:

144

answers:

0

Hello,

I am trying to read a list that contains a field of type Publishing Image in a sandbox webpart. However as soon as I reference the field with the following line, I get an error.

SPList List = Web.Lists["ListName"]; SPItem Item = List.GetItemByID(1);

Object o = Item["Image"];

The error is the type Publishing.Image is not marked as serializable.

Do you think what I am trying to do is not possible? If not, how should I go about it?

Any help is appreciated.

Thanks, Krantz