Answered by:
Trying to write new IPTC into a JPG

Question
-
User-2120074532 posted
I've written an entire app to load and host photos, I allow the user to save IPTC in the DB and when the request a photo, I send the Photo as an attachment. I've just encountered a porblem as I cannot find any way to WRITE IPTC into the JPG before sending?? I use the below code to send the image. Does anyone knwo how I could update the IPTC before sending? The whole app depends on this.
Dim strMem As System.IO.MemoryStream = New System.IO.MemoryStream(CType(objDataReader("img_image"), Byte()))
Dim strWriter As System.IO.StreamWriter = New System.IO.StreamWriter(strMem)
strWriter.Flush()
strMem.Position = 0
Dim attachment As System.Net.Mail.Attachment = New System.Net.Mail.Attachment(strMem, objDataReader("img_filename"), "image/jpeg")
MailMsg.Attachments.Add(attachment)
Thursday, December 3, 2009 6:05 AM
Answers
-
User-1659704165 posted
Hi,
//writing
http://www.planet-source-code.com/vb/Discussion/AskAProShowPost.asp?lngTopicId=36106&TopicCategory=other&Flag=2&lngWId=10
//3rdpart tool
http://www.websupergoo.com/helpig6net/source/4-object_reference/3-graphic/4-graphiciptc/1-methods/1-add.htm
//Redaing
http://stackoverflow.com/questions/289794/check-for-duplicates-in-arraylist
http://www.techotopia.com/index.php/C_Sharp_List_and_ArrayList_Collections
chk the above link...
or u may also use Name value collection , and Dictonary collection also
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, December 3, 2009 7:15 AM
All replies
-
Thursday, December 3, 2009 7:12 AM
-
User-1659704165 posted
Hi,
//writing
http://www.planet-source-code.com/vb/Discussion/AskAProShowPost.asp?lngTopicId=36106&TopicCategory=other&Flag=2&lngWId=10
//3rdpart tool
http://www.websupergoo.com/helpig6net/source/4-object_reference/3-graphic/4-graphiciptc/1-methods/1-add.htm
//Redaing
http://stackoverflow.com/questions/289794/check-for-duplicates-in-arraylist
http://www.techotopia.com/index.php/C_Sharp_List_and_ArrayList_Collections
chk the above link...
or u may also use Name value collection , and Dictonary collection also
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, December 3, 2009 7:15 AM -
User-2120074532 posted
I can't use any of the suggestions below. 1 is for Python(?), and the 2 other are for Reading IPTC only. I wish to Write new IPTC.
Thursday, December 3, 2009 8:45 AM