If File.Exists(imageFile) Then Dim binStream As FileStream = File.OpenRead(imageFile) Dim objImage As System.Drawing.Image = System.Drawing.Image.FromStream(binStream) Page.Response.Write("<html><body style='font-size:10px;margin:0px;padding:0px;padding-left:4px;'>") Page.Response.Write("<center><span style='color:blue;'>" + Path.GetExtension(imageFile).ToLower().Replace(".", "") + "</span>") Page.Response.Write(" w: <b>" + objImage.Width.ToString() + "</b> h: <b>" + objImage.Height.ToString() + "</b>") Page.Response.Write("</center></body></html>") objImage.Dispose() binStream.Close() Page.Response.End() End If
Gain unlimited access to on-demand training courses with an Experts Exchange subscription.Get Access
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Connect with Certified Experts to gain insight and support on specific technology challenges including: