Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Image RenderContent Method
Message
 
 
À
25/06/2008 11:35:46
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:
01335570
Vues:
19
>>
>>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

Here is an interesting article on the topic
Article

I need to adapt it for my more complex case, though. In my case I retrieve all data using SP and put them back using SP as well. I'm also using UserControl. My field in SQL Server is varbinary(max). Do you have something like step by step approach using FileUpload for my situation?

Thanks again.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform