Thanks for your help, but I still have a problem, and I don't really know whats wrong. This is my code :<br><br>            AssetBase asset = scene.AssetService.Get(item.AssetID.ToString());<br>            byte[] byteArray = asset.Data;<br>
            using (MemoryStream ms = new MemoryStream(byteArray))<br>            {<br>                Bitmap img = (Bitmap)Image.FromStream(ms);   <---------   error, parameter is not valid<br>            }<br><br>It seems that my MemoryStream is not valid, and I think it's because the byte array is not correct to convert to Image. But the object I retreive is an image, so I don't understand what's wrong. OpenSim does modification of this array ?<br>
<br>Thank you a lot,<br>Valentin<br><br><div class="gmail_quote">On Wed, Feb 17, 2010 at 1:45 AM, Alan M Webb <span dir="ltr"><<a href="mailto:alan_webb@us.ibm.com">alan_webb@us.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br><font face="sans-serif" size="2">Hi Valentin</font>
<br>
<br><font face="sans-serif" size="2">If you look at the Rest application
plug-in, it supports the retrieval and uploading of inventory data, both
catalog data and the assets themselves.</font>
<br><font face="sans-serif" size="2"><br>
Best regards<br>
Alan<br>
-------------------<br>
T.J. Watson Research Center, Hawthorne, NY<br>
1-914-784-7286<br>
<a href="mailto:alan_webb@us.ibm.com" target="_blank">alan_webb@us.ibm.com</a></font>
<br>
<br>
<br>
<table width="100%">
<tbody><tr valign="top">
<td><font color="#5f5f5f" face="sans-serif" size="1">From:</font>
</td><td><font face="sans-serif" size="1">Valentin Castan <<a href="mailto:valentin.castan@gmail.com" target="_blank">valentin.castan@gmail.com</a>></font>
</td></tr><tr valign="top">
<td><font color="#5f5f5f" face="sans-serif" size="1">To:</font>
</td><td><font face="sans-serif" size="1"><a href="mailto:opensim-dev@lists.berlios.de" target="_blank">opensim-dev@lists.berlios.de</a></font>
</td></tr><tr valign="top">
<td><font color="#5f5f5f" face="sans-serif" size="1">Date:</font>
</td><td><font face="sans-serif" size="1">02/15/2010 02:16 AM</font>
</td></tr><tr valign="top">
<td><font color="#5f5f5f" face="sans-serif" size="1">Subject:</font>
</td><td><font face="sans-serif" size="1">[Opensim-dev] How to retreive pictures
from the inventory ?</font></td></tr></tbody></table>
<br>
<hr noshade>
<br>
<br>
<br><font size="3"><div><div></div><div class="h5">Dear all, <br>
<br>
I'm working on a project where I have to process images, using another
application, and then display something in OpenSim. I would like to let
users to upload their pictures on OpenSim, but I have to retreive these
pictures, and copy them in a special directory.<br>
My problem is in the code of OpenSim, I only can find how to retreive an
InventoryItemBase from the inventory, but I didn't find any way to retreive
a picture, to be able to copy it. <br>
Does someone know how can I retreive pictures from the Inventory, but not
as an InventoryItemBase, but as something I can use as a picture ?<br>
<br>
Thank you a lot for your help,<br>
Best regards,<br></div></div>
Valentin Castan</font><tt><font size="2">_______________________________________________<div class="im"><br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
</div></font></tt><div><div></div><div class="h5"><a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank"><tt><font size="2">https://lists.berlios.de/mailman/listinfo/opensim-dev</font></tt></a><tt><font size="2"><br>

</font></tt>
<br>
<br></div></div><br>_______________________________________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
<br></blockquote></div><br>