Rank: Newbie
Groups: Member
Joined: 10/12/2009(UTC) Posts: 5
|
Hi.
On the uploader, beneath each image thumbnail, there is an option for the user to 'Edit Description'. I would like to be able to take these descriptions and add them to the 'Comments' property field of the actual image (using EXIF Metadata). I already have a method in C# for adding the comment to the image, so that is not an issue.
I would be very grateful if somebody would be kind enough to explain to me how I actually capture these descriptions, preferably as a string, so that I can pass it to my method. I have been trawling through the documentation and I cannot figure out how to do this!
So to recap, how do I capture the descriptions a user has given an image so that I can pass it, in some way, to a c# method.
Many thanks.
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 10/12/2009(UTC) Posts: 5
|
I have actually managed to find the documentation for this now at: http://www.aurigma.com/S...rSideUploadCode.htm.aspxand have now implemented the following code Code:HttpPostedFile mainImage = Request.Files["Thumbnail1_" + i];
mainImage.SaveAs(Server.MapPath(imageGalleryRootPath + tempFolderName + "/" + counter + "_P.jpg"));
HttpPostedFile description = Request.Files["Description_" + i];
string imageDescription = Convert.ToString(description);
imgHandler.addImageComment(imageGalleryRootPath + tempFolderName + @"\" + counter + "_P.jpg", imageDescription);
but now I have a new problem! Although the Thumbnail1_N is working fine, Description_N just returns a null every time, even though I have physically added a description to the image! Will someone please help me with this!! Many, many thanks in advance.
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 3/9/2008(UTC) Posts: 554
Was thanked: 1 time(s) in 1 post(s)
|
Hi, To get Description value from POST request you should use the following code: Code:string imageDescription = Request.Form["Description_" + i];
|
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 10/12/2009(UTC) Posts: 5
|
That worked perfectly. Many thanks Tamila.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.