Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Image RenderContent Method
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01326440
Message ID:
01326642
Vues:
27
>>>
>>>Is the file local to this machine or on another machine? If it's on another machine, does the web server have a file share to it (or is the only way through http?)
>>
>>
>>The files may be on this server or on another machine in our network. At this time I do not know how to access directories outside the current web structure, so as far as having share access, I am not clear on this. It would be most convenient to use the URL's which are already present.
>>
>
>Without testing this, I think something like this might work:
>
>
>using System.Net;
>// Code removed...
>
>using (WebClient client = new WebClient())
>{
>   byte[] file = client.DownloadData("http://www.website.com/images/MyImage.jpg");
>   MemoryStream stream = new MemoryStream(file);
>   using (System.Drawing.Image bmp = new System.Drawing.Bitmap(stream))
>   {
>     // Manipulate image
>   }
>}
>
Thanks Paul, I will give this a try. "You're the man"

Glenn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform