Dim imgByte As Byte() = Nothing
Dim File As HttpPostedFile = FileUpload1.PostedFile
imgByte = New Byte(File.ContentLength - 1) {}
File.InputStream.Read(imgByte, 0, File.ContentLength)
inserting in to db
.Parameters.Add("@PictureBinary", SqlDbType.VarBinary).Value = imgByte
</div> <div class="first last"></div> <div class="first last">and the above code will upload the image in the table</div> <div class="first last">---------------------------------------
But I want to display three images of above the image..(uploaded Varbinary field) in different Size, in one of the .aspx page
zoom image- (H 700 width 600)
large image (Height 350 width 350)
small image (Height 200 width 200)</div> <div class="first last"></div> <div class="first last">Is there any way I can change the dimension of the image and display during the runntime. usually all the ecommerce portal use this type while showing the
product details..</div>
bsarahim
Member
14 Points
145 Posts
asp.net image
Oct 13, 2012 03:09 PM|LINK
Hi im having this code
<div class="first last">Dim f As New System.IO.FileInfo(FileUpl
Dim imgByte As Byte() = Nothing
Dim File As HttpPostedFile = FileUpload1.PostedFile
imgByte = New Byte(File.ContentLength - 1) {}
File.InputStream.Read(imgB
inserting in to db
.Parameters.Add("@PictureB
</div> <div class="first last"></div> <div class="first last">and the above code will upload the image in the table</div> <div class="first last">--------------------------
But I want to display three images of above the image..(uploaded Varbinary field) in different Size, in one of the .aspx page
zoom image- (H 700 width 600)
large image (Height 350 width 350)
small image (Height 200 width 200)</div> <div class="first last"></div> <div class="first last">Is there any way I can change the dimension of the image and display during the runntime. usually all the ecommerce portal use this type while showing the product details..</div>
ramiramilu
All-Star
95463 Points
14106 Posts
Re: asp.net image
Oct 13, 2012 04:55 PM|LINK
Resize image - http://stackoverflow.com/questions/249587/high-quality-image-scaling-c-sharp
code in above resource is in C#, to convert that to VB - http://www.developerfusion.com/tools/convert/csharp-to-vb/
Thanks,
JumpStart