Sajira 0 Posted May 16, 2013 Posted May 16, 2013 Hi, I am trying to upload a scanned TIF file. But the the uploaded TIF file is not listed in evernote. Below is the note body for my TIF image noteBody = "<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"><en-note>Uploadedfrom Evernote plugin: CppModule<br/><en-media type="*/*"hash="d8d56f6362ceef3eb86e31f939d9e7a4"/>" I think this is due to unsupported TIF image MIME type. Below is the code block for creating note body that i have used. noteBody = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; noteBody += "<!DOCTYPE en-note SYSTEM \"http://xml.evernote.com/pub/enml2.dtd\">"; noteBody += "<en-note>Uploaded from Evernote plugin: CppModule<br/>"; for(size_t i=0;i< m_fileList.size();i++) { file = m_fileList; wsFileName = file.FilePath; GetFileData(wsFileName, data); wstring wsMimeType = objHttp.GetFileContentType(wsFileName); rc.__isset.data = true; rc.data = data; rc.__isset.mime = true; rc.mime = string(wsMimeType.begin(),wsMimeType.end()); /*attr.__isset.fileName = true; attr.fileName=string(file.FileName.begin(),file.FileName.end()); rc.__isset.attributes = true; rc.attributes = attr;*/ note.__isset.title = true; note.title = "MyTitle"; note.__isset.resources = true; note.resources.push_back(rc); note.__isset.content = true; noteBody += "<en-media type=\""+rc.mime+"\" hash=\"" + data.bodyHash + "\"/>"; } noteBody += "</en-note>"; Please help me to solve this problem.Give me feedback ? Thanks in advanceSajira
Level 5* GrumpyMonkey 4,320 Posted May 16, 2013 Level 5* Posted May 16, 2013 Hi. I don't work much with TIF files, but it should be fine, because Evernote doesn't actually need to recognize the file type in order to store it within a note. (1) How big is the TIF?(2) How did you "upload" it?(3) What client (Web, Mac, Windows, etc.) are you using?(4) Are you Premium or Free?
Sajira 0 Posted May 16, 2013 Author Posted May 16, 2013 Thank you for your response ! Configurations as like below 1) 656 bytes is the TIF file size2) I am trying to upload a scaned TIF file using a cpp plugin, this TIF uploaded using Evernote web app.3) I am using Win7 64 bit English OS4) Using free evernote account Thank youSajira
Level 5* jefito 5,598 Posted May 16, 2013 Level 5* Posted May 16, 2013 This is a developer question, no?
Sajira 0 Posted May 17, 2013 Author Posted May 17, 2013 Thank you for your quick response ! The defect is fixed by adding MIME type as "image/tiff" Thanks Sajira
Recommended Posts
Archived
This topic is now archived and is closed to further replies.