remrow Posted October 31, 2007 Share Posted October 31, 2007 Hey, can any help me to upload a picture by asp.It takes a longer time to upload a picture directly so the picture can be changed into binary and again unchange them to picture. how to do it??please help with the asp codes.thank you Link to comment Share on other sites More sharing options...
justsomeguy Posted October 31, 2007 Share Posted October 31, 2007 ASP doesn't natively make it very easy to handle file uploads, so you'll need to find an ASP upload component to use. If you do a Google search you'll find quite a few. If you want to store the binary data you can open and read the picture like any other file using the filesystemobject. Displaying the binary data as an image requires sending a header to say that the data is an image, and then just writing out the data. Link to comment Share on other sites More sharing options...
Reg Edit Posted November 1, 2007 Share Posted November 1, 2007 [...]It takes a longer time to upload a picture directly so the picture can be changed into binary and again unchange them to picture. [...](Edited) I think Remrow means a compression/decompression mechanism... any suggestions?Remrow, are you talking about pictures in your site's html pages? Or something a user can upload to your site. Please say which it is.If relevant: consider saving your image in a different format (jpg, gif, etc), as some formats result in a much bigger file than other formats, so take longer to transfer. Link to comment Share on other sites More sharing options...
justsomeguy Posted November 1, 2007 Share Posted November 1, 2007 You can probably also find an unzipping component to allow people to upload zip files that you can extract and read the files from. I've done something like that in PHP, I assume that ASP has some sort of zip component. Link to comment Share on other sites More sharing options...
remrow Posted November 2, 2007 Author Share Posted November 2, 2007 (Edited) I think Remrow means a compression/decompression mechanism... any suggestions?Remrow, are you talking about pictures in your site's html pages? Or something a user can upload to your site. Please say which it is.If relevant: consider saving your image in a different format (jpg, gif, etc), as some formats result in a much bigger file than other formats, so take longer to transfer. Yes, i meant compression and decompression mechanism, and thats for my asp page for other users to upload pics on it and store it the ~ way. Link to comment Share on other sites More sharing options...
justsomeguy Posted November 5, 2007 Share Posted November 5, 2007 When I set up an ASP application that allows zip file uploads I downloaded a command-line unzip utility and then used a system call to run the unzip utility, extract all the files, and then check the unzipped directory with ASP. I used this utility:http://www.powerarchiver.com/pacl/ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.