Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
Here's how I grab my images from my drive today: MyImagePath = "~/Userdata/L-" & Session("Leaguenum") & "/Albums/A" ' Do the images cmd.CommandText = "select convert(varchar,albumnum) + '/' + picturefilename + '-t' + picturetype from pictures where picturenum > " & MyRowCount1 & " order by picturenum asc" Image2.ImageUrl = MyImagePath & Trim(cmd.ExecuteScalar()) cmd.CommandText = "select convert(varchar,albumnum) + '/' + picturefilename + '-t' + picturetype from pictures where picturenum > " & MyRowCount2 & " order by picturenum asc" Image3.ImageUrl = MyImagePath & Trim(cmd.ExecuteScalar()) Here is some code I already have for rescaling images: ' work out the width/height for the thumbnail. Preserve aspect ratio and honour max width/height ' Note: if the original is smaller than the thumbnail size it will be scaled up If (originalimg.Width / Lx) > (originalimg.Width / Ly) Then L2 = originalimg.Width newWidth = Lx newHeight = originalimg.Height * (Lx / L2) If newHeight > Ly Then newWidth = newWidth * (Ly / newHeight) newHeight = Ly End If Else L2 = originalimg.Height newHeight = Ly newWidth = originalimg.Width * (Ly / L2) If newWidth > Lx Then newHeight = newHeight * (Lx / newWidth) newWidth = Lx End If End If
Join the community of 500,000 technology professionals and ask your questions.