Ask a Question related to ASP.NET General, Design and Development.
-
Mike John #1
How To Browse for an image file and save it to image server folder
I trying to browse for an image file and save it to the
server image folder.
in other words , upload the picture.
I tried html and aspx.net code:
html:***************************************
<INPUT id="UpLoadFile" style="Z-INDEX: 140; LEFT: 248px;
WIDTH: 87px; POSITION: absolute; TOP: 538px; HEIGHT: 2px"
type="file" onchange="UpLoadFileImage()" size="1"
runat="server">
asp.net:*** Dim hpfIS As HttpPostedFile
hpfIS = UpLoadFile.PostedFile ' uploadfile is the
id of an intput type 'file' that I have created in html
If hpfIS.ContentLength = Nothing Then
Exit Sub
End If
hpfIS.SaveAs(Server.MapPath("images") & "\" &
Me.txtRecID.Text & ".jpeg")
*********************************
but I have receieved an error.
err :
Object reference not set to an instance of an object.
the object in this case is hpfis
please help
sincerely yours
Mike John
Mike John Guest
-
How to extract/export/save a vector image from a PDF file?
How to extract/export/save a vector image that is inside a PDF file? The "Advanced/Document Processing/Export all images" of Acrobat Pro 8 on Mac... -
How do I read a jpeg image from a folder on a server
Hi, How do I read a jpeg image from a folder on a server, and give it to a user as a file that his browser would download it (stream it) directly... -
how can I save an image file to database?
how can I save an image file to database? -
save image to server
guys, After lots of searching, there seems to be lots of tutorials on how to output a resized image to the browser, but none to save it to a... -
Save image on SQL from Xml file
Hi all, have a really big problem, I have saved on bin.base64 node of my Xml an image (jpg format), and now I want read this node and convert...



Reply With Quote

