Advertisement
5_2007-2008 Internet/ Browsers/ HTML #175348

Image upload with preview

The scope of this code is to allow the client to select a image on their harddrive and preview it before they submit it to your server, this source uses memory streams and swaps image objects and byte arrays back and forth to resize the image to a standard previewable size while the original image stays unchanged so you can store it. You can store the image to a database with related user data input or just save the image to a directory when the client does their final submit. Comments and suggestions are welcome, I have found this to be the easiest way to make this happen as IE7 does not allow you to load images from the users harddrive to the browser with client-side script. Please share if you have another way to do this in VB.NET

AI

Riepilogo AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Codice sorgente
original-source
Upload
Upload
Commenti originali (3)
Recuperato da Wayback Machine