Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
pickoid  
#1 Posted : Friday, November 20, 2009 4:08:41 AM(UTC)
pickoid

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.
pickoid  
#2 Posted : Friday, November 20, 2009 7:38:54 AM(UTC)
pickoid

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.aspx

and 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.
Tamila  
#3 Posted : Friday, November 20, 2009 8:05:13 PM(UTC)
Tamila

Rank: Advanced Member

Groups:
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];

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
pickoid  
#4 Posted : Monday, November 23, 2009 6:40:41 AM(UTC)
pickoid

Rank: Newbie

Groups: Member
Joined: 10/12/2009(UTC)
Posts: 5

That worked perfectly. Many thanks Tamila.
Users browsing this topic
Guest
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.