Saving Images To A Folder And Then Retrieve
Mar 31, 2010I am developing a Web Based Art Gallery. I need to save images to a folder and then retrive them.(I don't want to save images to a database) How should I proceed on it?
View 7 RepliesI am developing a Web Based Art Gallery. I need to save images to a folder and then retrive them.(I don't want to save images to a database) How should I proceed on it?
View 7 Replieshow to upload images to server(application/images folder) and retrive(display) from and on client PC for asp.net. its just for uplaoding logo directly to server folder and retriving from server to client. i am not getting server path on client pc for image.
View 5 RepliesI have a trouble in saving an image to a folder on local server which is sent to the server using AJAX.
The image on the canvas of HTML5 is taken using Canvas.todataurl() function.
[code]....
Without opening savedialog box, the image has to be saved to a folder on local server with a filename given to it.
How should i go about this?
Here is what I am basically trying to accomplish I want to upload images to the server separated into categories and save the file path into the database. I have found plenty of documentation on saving to a file and the file path to a database. But, I haven't found anything that will allow me to seperate the images into categoies.
I have made three tables in the database
[code]....
What I am trying to do is create a gallery for our clients to browse and download different vesions of posters and ad cards.
I want to show on one of my pages a slideshow type page. Basically I want it to show a selection of images from a folder and have the images scroll from right to left.
View 8 RepliesI have a simple photo album. I have some catories in db and corresponding folders. For example, when user creates a category called "Asp Net" in db then a folder called "AspNet" is created. Then user can upload photo and all photos are displayed as thumbnail. No photo is saved in db, they are directly saved lets say AspNet folder. I just fetch filelist from intended folder and list them. However I want user to be able to update category name or delete it. To keep consistency, corresponding folder should be updated or deleted. But when I try it throws exception: Access to the path 'xxxxx" is denied.
View 1 RepliesI wanted to combine app_themes css files into one on the fly. I did so using Mads Cristensen technique. But now all elements that has background image defined through css (see picture) don't display image. I believe that is because css files are not relatively referenced anymore (../), but through axd file. I'm trying to fix this by changing reference to image files without success. I already tried background: url("~/App_Themes/44/images/myimage.gif") and this works for pages that combined css. But the problem is that there are other pages in this project that don't use this css combining and now they lost reference to background images.
View 1 RepliesHow can I save images in SQL Server 2005 and then read them using VB .Net 2010 and telerik:RadBinaryImage.
View 8 RepliesI'm developing a new aspnet website with 200k images in a /Images/ -folder.Many operations in Visual Studio is slow because it access the folder, adding a web service takes 10 minutes.The images is not checked into scm (svn).ow should I structure the tree of code, to improve performance in VS?It would also be neat if not all developers needed to copy 200k images to their local disk to be able to develop on the site.
View 5 RepliesI created a website with a file manager where the client can upload, delete, preview etc. This works fint but the problem is that the folders where the files are going to be saved will be on another server. I am testing this locally for now but will deploy it once finished
I setup my website in the IIS. Created a 'Virtual Directory' and linked the directory to a folder in my 'C://'. The virtual Dir path is "~/upload" but when i user Server.Mappath() it gives me "C:/inetpub/wwwroot/website/upload" insted of the actual dir path "C:Documents and SettingsUserMy DocumentsVisual Studio 2008WebSitesWebsiteuploads"
I've seen on some sites where one is unable to save the images from that site. Is there a property or something that I would use where I can prevent users from saving images from my site?
I'm using VS 2008 and asp.net 3.5
I need to take an uploaded image, resize it, and save it to the database. Simple enough, except I don't have access to save any temp files to the server. I'm taking the image, resizing it as a Bitmap, and need to save it to a database field as the original image type (JPG for example). How can I get the FileBytes() like this, so I can save it to the database?Before I was using ImageUpload.FileBytes() but now that I'm resizing I'm dealing with Images and Bitmaps instead of FileUploads and can't seem find anything that will give me the bytes.
View 3 Repliesi have an image file which is of (600* 800 size) or any size . now i need to convert them into an thubnail image size which is of size **(110*110)**
but if i reduce the size of an image i should not change the Quality of image. as once we reduce an image size the the Quality of the image is gone
is there any way without affecting the Quality of the image we can convert them into an thumbnail image[ is there any built in class for that in .net)
i have build an MSI file for my project. Now what i need i am having some text boxes on my form. If i click on save i would like to save it as text file to the application installed folder.
View 3 RepliesIs this right way to save a cookie across several pages in one web folder?
It does not seem to be working
Code:
Response.Cookies("LoggedIn").Value = 1
Response.Cookies("LoggedIn").Expires = Now.Date.AddHours(1)
What is wrong?
I have a work request web page that now has a need for my users to add screenshots to.
View 2 RepliesAny way to compress bitmaps, jpeg, png images for space. The reason being i have a webform that takes in n number of images from a user and stores it to a mapped drive. what i want to do is compress those images to optimize on space on the drive.
View 1 RepliesI am trying to google search on how to resize image but i cant find the perfect one.. I want to resize 144 * 144..
below are my codes..
if (FileUpload1.HasFile) {
string strFilePath = Server.MapPath("~/Uploaded/") + "" + this.FileUpload1.FileName;
this.FileUpload1.SaveAs(strFilePath);
[CODE].....
I am generating some text on my application just like as below;
KgQa5MgxIXH6czaTSue/zcjQ6p5d4BCK2uNgscHq3+h/gbbrfEPvWGySnZGy88ntm28DPFp3KhDFQhXHNkZecQI0HyBq7BDJTop6n0VgTWc2AQEnZWPvEgHc4vMTDIfnoY+/04414vOUdatD8G+CZexcJQr0Tz4jLkDEsI58xcc=
I wanna save this text in my sql db as binary.I wanna retrive it any time I want and read text and view it. How can I do that in c#. Aslo what should my table row type? binary(1000) is ok?
I am building a website using asp.net and this website will host users images and will give them options to edit these images by resizing, cropping, watermarking,.... am thinking of 2 ways to save images and want someone to recommend one or advice me with something different better.1- The user will upload his images, i will put them in a folder called "original" then the user will edit these image, i will put the edited images in a folder called "edited" also will have another folder called "thumb" will contain thumbnails from these images for previewing on the website.
View 1 Repliesi am new to asp.net mvc,we have loading images for form when we are saving or deleting ,we have written that code in master page and its working fine,but the thing is we are using a inline popup within asp.net mvc form,by using div tag we are developing a inline popup in asp.net mvc,when we are saving data in inline popup in this case loding images is not displaying on the pop up.
View 2 RepliesI have a crystal report as reportDoc. In reportDoc.ExportToDisk function it is asking only file name. So let me where should I mention path and how should store in my server folder. I want that file to be saved in particular folder in server in pdf format. Report is converting to pdf. I have no problems in converting. Please let me know how to save that pdf file into my project folder.
View 1 Repliesi used a file upload control to upload file..after uploading i want to preview image without storing its path or storing in DB or solution explorrer folder.when i upload using fileupload control..path of image comes in fileupload control now i used a button so,that on button click image should be displayed in image control..
View 1 RepliesI am using an anchor tag in my application for which I am assigning href an image url which i am saving in code behind. Images are saving perfectly from code behind but are not updated in anchor tag. I think this may be a browser dependency because I checked the property of fresh page rendering in IE option then all the things are working fine but this is recommendable.
View 1 RepliesI am facing a problem with retrieving an image and showing it on asp.net grid. I migrated MS Access database to sql server. Image are visible in Crystal report when fetched from the same database (migrated sql server database). But same images are not visible in ASP.Net grid view or simple asp.net image control. Following is my code
SqlConnection oConn =
new
SqlConnection(ConfigurationManager.ConnectionStrings["csr"].ToString());
oConn.Open();
SqlCommand oraCmd = oConn.CreateCommand();
oraCmd.CommandText = "select top 1 photo from [test] where photo is not null";
SqlDataReader dr =
null;
dr = oraCmd .ExecuteReader ();
if(dr.Read ())
if (dr["photo"] !=
null)
{
Response.ContentType = "image/gif";
Response.BinaryWrite((byte[])dr["photo"]);
}
This function is getting called from another page . "hlopen" is hyper link in the grid. hlopen.NavigateUrl = "GetPhoto.aspx?id=1";