Ask a Question related to ASP Database, Design and Development.
-
sunj #1
Uploading Image to server problems
I am trying to upload an image to the server from the browser using a form
and an ADODB binary stream. The file successfully saves to the correct
loaction and appears to be the correct size, but it wont display. When it
opens it is all just binary like symbols.
Here is the code:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<%
var fileStream = Server.CreateObject("ADODB.Stream");
var bytesReceived;
var data;
fileStream.Type = 1;
bytesReceived=Request.TotalBytes;
data = Request.BinaryRead(bytesReceived);
fileStream.Open();
fileStream.Write(data);
var path = Server.MapPath("../businesses_Images/testPicture5.jpg");
fileStream.SaveToFile(path);
%>
Thanks
sunj Guest
-
Uploading image
I'm got a cool uploading images tutorial from Asfusion.com. I got it working but this is my issue. I created a db table called "photos", in the... -
Problems uploading MP3's to server
Hi, recently I've been having a problem uploading MP3's to the server. I get an error: There was no response from the server while transferring the... -
uploading imageready image map
hello, i'm pretty new to photoshop and have just made my first image map with rollovers using photoshop and imageready. when i preview it in the... -
uploading fiels from one unix server to another server usin perl cgi script.
Hi all, I have a task at hand , that of uplaoding file from server to another server and also pass 6 paramteres along with the file. ... -
Atrax #2
Re: Uploading Image to server problems
OK, first up, is there a particular reason you're not using an upload
component?
________________________________________
Atrax. MVP, IIS
[url]http://rtfm.atrax.co.uk/[/url]
newsflash : Atrax.Richedit 1.1 in beta with Mozilla-compatibility.
[url]http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/[/url]
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Atrax Guest
-
Bullschmidt #3
Re: Uploading Image to server problems
Here is a pure ASP resource that has worked for me for letting the user
upload a file which is something that was unfortunately not built into
ASP:
ASP File Upload Using VBScript by John R. Lewis - 7/10/2000
[url]http://aspzone.com/posts/160.aspx[/url]
Best regards,
J. Paul Schmidt, Freelance ASP Web Consultant
[url]http://www.Bullschmidt.com[/url]
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Devdex [url]http://www.devdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bullschmidt Guest



Reply With Quote

