July 27, 2007
July 24, 2007
Simple Unified Process
I found unified process web sites that match for the education.
I think it is cool. You can read it. For students it is enough.
tightly coupled. it is bad.
Some library or applications are tightly coupled by design. They are dependent on each other component so it is not easy to use in the other projects. Sometimes the library needs specific control like Component One or others, and cannot using native control . Phew.
It makes me sad since I have to buy the control and the library just to make sure the project done and quickly deployed to the customer.
Just now I still develop controls and library so I can make it on every project; and then I can using native control or downloadable control.
Loading Image from website
In the System.Drawing, Image can only get from the file and don’t have methods to download the images from the internet. The code below is getting from the url. First define the url. and download the data using stream.
private Image LoadFromURL(string url)
{
Image image = null;
MemoryStream ms = null;
byte[] data = null;
Uri uri = new Uri(url,UriKind.RelativeOrAbsolute);
WebClient webClient = new WebClient();
data = webClient.DownloadData(uri);
ms = new MemoryStream(data);
if (ms != null)
{
image = Image.FromStream(ms);
}
return image;
}