Jump to content

(Archived) Evernote not support to upload TIF image


Recommended Posts

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>Uploaded
from  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 advance

Sajira

Link to comment
  • Level 5*

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?

Link to comment

Thank you for your response !

 

Configurations as like below

 

1) 656 bytes is the TIF file size

2) 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 OS

4) Using free evernote account

 

Thank you

Sajira

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...