Import image email attachment into app

I am trying to import email attachments into my iphone app. I am placing code in my info.plist with uti etc. I have successfully imported audio attachments (caf, aifc, aif, m4a, and mp3). But I am not being successful at all with image files. I want to import jpg, jp2, pic, tif, and png files.
I have written this code in my info.plist for the audio files.
Code: 
<dict> <key>LSItemContentTypes</key> <array> <string>com.apple.coreaudio-format</string> </array> <key>CFBundleTypeRole</key> <string>Viewer</string> <key>CFBundleTypeName</key> <string>.caf</string> <key>LSHandlerRank</key> <string>Alternate</string> </dict>
as I said this works fine for all the audio types I want.
But when I enter this code
Code: 
<dict> <key>LSItemContentTypes</key> <array> <string>public.png</string> </array> <key>CFBundleTypeRole</key> <string>Viewer</string> <key>CFBundleTypeName</key> <string>.png</string> <key>LSHandlerRank</key> <string>Alternate</string> </dict> 
for the images, nothing happens. The app icon doesn't show up in the modal view to tap and "open in" my app.
can anyone see any thing I am doing wrong here?
I have looked at what there is about this and nothing seems to suggest that you need to do any thing different for images than for audio files.
I appreciate any and all help.

I put the above code into my apps info.plist although I did change <key>UTExportedTypeDeclarations</key>  to <key>UTImportTypeDeclarations</key>
and then in the app delegate I am putting
-(BOOL)application:(UIApplication *)application
           openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
        annotation:(id)annotation {
    if (url != nil && [url isFileURL]) {
        // do something with the URL
    return YES;
and then this;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
    NSURL *url = (NSURL *)[launchOptions valueForKey:UIApplicationLaunchOptionsURLKey];
    if (url != nil && [url isFileURL]) {
       //it has been suggested that I put [self.viewcontroller handleOpenURL:url];
or self.window.rootViewController hanleOpenURL:url];
but neither work so I left them out. 
return YES;
I have also use the code:
<key>CFBundleDocumentTypes</key>
          <array>
                    <dict>
                              <key>CFBundleTypeName</key>
                              <string>.jpg</string>
                              <key>CFBundleTypeRole</key>
                              <string>Viewer</string>
                              <key>LSHandlerRank</key>
                              <string>Alternate</string>
                              <key>LSItemContentTypes</key>
                              <array>
                                        <string>public.jpeg</string>
                              </array>
                    </dict>
                    <dict>
                              <key>CFBundleTypeName</key>
                              <string>.au</string>
                              <key>CFBundleTypeRole</key>
                              <string>Viewer</string>
                              <key>LSHandlerRank</key>
                              <string>Alternate</string>
                              <key>LSItemContentTypes</key>
                              <array>
                                        <string>public.ulaw-audio</string>
                              </array>
                    </dict>
                    <dict>
                              <key>CFBundleTypeName</key>
                              <string>.aiff</string>
                              <key>CFBundleTypeRole</key>
                              <string>Viewer</string>
                              <key>LSHandlerRank</key>
                              <string>Alternate</string>
                              <key>LSItemContentTypes</key>
                              <array>
                                        <string>public.aiff-audio</string>
                              </array>
                    </dict>
                    <dict>
                              <key>CFBundleTypeName</key>
                              <string>.aif</string>
                              <key>CFBundleTypeRole</key>
                              <string>Viewer</string>
                              <key>LSHandlerRank</key>
                              <string>Alternate</string>
                              <key>LSItemContentTypes</key>
                              <array>
                                        <string>public.aifc-audio</string>
                              </array>
                    </dict>
                    <dict>
                              <key>CFBundleTypeName</key>
                              <string>.caf</string>
                              <key>CFBundleTypeRole</key>
                              <string>Viewer</string>
                              <key>LSHandlerRank</key>
                              <string>Alternate</string>
                              <key>LSItemContentTypes</key>
                              <array>
                                        <string>com.apple.coreaudio-format</string>
                              </array>
                    </dict>
                    <dict>
                              <key>CFBundleTypeName</key>
                              <string>.m4a</string>
                              <key>CFBundleTypeRole</key>
                              <string>Viewer</string>
                              <key>LSHandlerRank</key>
                              <string>Alternate</string>
                              <key>LSItemContentTypes</key>
                              <array>
                                        <string>public.mpeg-4-audio</string>
                              </array>
                    </dict>
                    <dict>
                              <key>CFBundleTypeName</key>
                              <string>.mp3</string>
                              <key>CFBundleTypeRole</key>
                              <string>Viewer</string>
                              <key>LSHandlerRank</key>
                              <string>Alternate</string>
                              <key>LSItemContentTypes</key>
                              <array>
                                        <string>public.mp3</string>
                              </array>
                    </dict>
          </array>
The audio files work great but I cannot get the image files to work.  I have tried .png, .tif, .pct, and .jp2 int the latter code.  Nothing seems to work. 
I don't know what I am doing wrong and I am finding it very frustrating without any help.
Thank you for any assistance you can render.

Similar Messages

  • I can't open a jpg file directly from an Outlook email attachment into Photoshop CC.

    When I try to open a jpg file directly from an Outlook email attachment into Photoshop CC I get this error message " Photyoshop CC.exe - Entry Point not found" with this string:

    I don't think I have ever been able to open an image directly from Outlook into Photoshop.  What you can do, is drag from outlook to desktop, and then from desktop into Photoshop.  Or, if seeing the windows at the same time is a problem, drag onto desktop, then minimise everything, and drag onto the Photoshop icon (if you have a Photoshop shortcut on your desktop).

  • Importing mass email addresses into Address Book?

    My boss just got a new Blackberry and wants to sync her contacts. Unfortunately, she is not very good at making address book entries.
    Is there a way to quickly import any email address into Address Book? She doesn't need the everything edited with name, address, etc...since she knows most of these people by their email address more than their first/last names!

    They aren't located anywhere. She has all her email messages archived in Mail.app for the last 3 years so she'd like to extract them from there.
    Is there some kind of built-in email address list in Mail.app, because it seems to auto complete any email address she types despite it not being in the Apple address book app.

  • Is there some way to import image files directly into an open document?

    Is there some way of importing a series of image files, say jpegs, directly into an open document, rather than having to open all the image files and having to drag and drop each individual one into the open document? Specifically, I'm a dentist and I often get digital xray images emailed to me from other offices. But they come as 16 or 18 individual image files and I have to put them into a virtual "xray mount", so I can view them all at once, rather than having to open all the images and toggle among them. So I open a blank document in PS (CS4), then I navigate to the folder containing all the image files I received, select all of them and open them all. Back in PS, I now have to select each image tab and drag the image into the blank "mount" and close the image. That new image then becomes its own layer in the "mount" document. But I have to repeat this 18 times for each patient! I was thinking if there was a way to open the new "mount" document then select all the image files and somehow "import" all the image files directly into document - essentially "automate" the process - that'd save me BOATLOADS of time and aggravation! Anyone out there have any suggestions? Thanks alot!! Dr. G.

    Thanks, Curt! When u say "animate" do u mean File | Automate...? Inside Automate, I can't find "Make Frames from Layers"...if you do mean "Animate" I can't find that menu. Zeno replied with a BRILLIANT clarification:
    <<Yes, but after you've got all your images as layers in a new document you can simply Select->All Layers and then drag them all to your document in one fell swoop.>>
    I tried that and it works like a charm! I select all 20 layers in the new document that "stacking" creates and just drag them all onto the virtual "mount" document. That's it! Then I just move each of these layers around as I would otherwise...it's just 1 click and 1 drag/drop. Unless someone comes up with a way to actually "import" all the images directly into the "mount" document, I think this appears to be the most efficient route to follow.
    I really appreciate your guys' assistance! It's so great that you guys monitor the forum and help us out with our Photoshop problems! What an awesome program it is, right?
    Thx again!
    Leon

  • Drag and drop an email attachment into SharePoint Library

    Is it true that it is not possible to drag and drop a file attached to an email directly into a SharePoint Library?
    When I try I get the transparent effect and then an error message. Windows 7, Office 2013, SharePoint 2013.
    I would like to make sure it's not some configuration that can be changed.

    HI,not possible to directly drag and drop email from out look.You can save the mail as outlook template in drive and do drag and drop.please find the below links that explains functionality.
    http://expertsharepoint.blogspot.de/2013/12/how-to-upload-multiple-documents-in.html
    Anil Avula[Partner,MCP,MCSE,MCSA,MCTS,MCITP,MCSM] See Me At: http://expertsharepoint.blogspot.de/

  • Is there a way to paste an email attachment into a pages template?

    Can I open an email attachment and copy it to Pages to create a Pages document that I can then edit; etc.?

    That depends of what format the attachment is off.

  • Import other email accounts into office 365 accounts

    Dear Forum memebers,
    I am using office 365 trial version, How I will import external email accounts to office 365 account.
    thank you
    AYAZ

    Double post. Answer on other post.

  • How do I import images from Aperture into Lightroom 5?

    I've just installed Lightroom 5 onto my Mac.  I waited for it to ask me which image management software I wanted to use as default (I currently use Aperture); then I went looking to find the 'source' to enable me to import images.  It doesn't recognise Aperture or the 3000+ images held in its folders.
    How can I import the images?

    Have you tried some of the online articles?
    e.g. http://lightroomsolutions.com/articles/migrating-from-aperture-to-lightroom-where-do-i-beg in/

  • How to import images of websites into FCP....any ideas?

    Hi,
    I was asked to cut several trailers for an award show. Which is nice. However, they have this category about "best website", and of course, they want to use images of those websites, the banners, the headlines and so on. I don't mean single images found on that website, but rather the site from head to toe, from top to bottom, left to right.
    I tried saving the websites from Safari as a PDF, and then convert them into a TIFF, import into FCP and it works....but it looks less than desirable.
    So even I have come to the conclusion that there is my way of doing this, and that there is a proper way of doing it. Does anybody have an idea how to do this at a reasonable resolution? I guess they want me to do a bit of Ken Burns as well, so the images would have to be larger than SD resolution.
    Thanks in advance for your help,
    Colin
    PowerMac G5 2.5GHz DP and PowerMac G4 500MHz DP   Mac OS X (10.4.7)   4.5GB RAM, Decklink Extreme

    The tiffs are probably the best solution but they are going to be bigger than the actual Web sites' graphics.
    Here's what I'd so: Tell your client (Is this a paid gig?) to give you the graphics they want you to use. Here's why. They'll go download it all and save it in one format.
    How will these be shown? What's your production format? It won't do much good to overresolve your sequence settings and doing so will drive up your processing times tremendously. You will need some blur on those tiffs. Another thing you want to do is experiment if you can with the display venue. KNow what your output is going to be shown on and insist or demand a chance to test it.
    bogiesan

  • How do I open a TIF image email attachment using windows photo gallery as the default instead of microsoft office picture manager?

    I have an internet fax program that sends faxes directly to my email as a TIF image attachment. When I download the attachment it lists Microsoft office picture manager as the default program to view the image. I would like to change the default program to view the image to Microsoft photo gallery. How do I change the default program to open an image attachment in firefox? Thank you

    OK I have it figured out! I was using google mail. For what ever reason the imac/pc safari using google would not display the PDF in the email even though the ipad/iphone did. I tried a different mail system through work (not google mail) and it EVERYTHING works GREAT!!!!! Wow, a lot of wasted time over something that was actually working.

  • Importing images from ipod into iPhoto

    I installed the iPhoto 9.2 update as part of the OSX10.7.2 and am now when I try import my pictures that are stored on my iPod Touch only my Mac shows up. The iPod used to show so I could import the images stored on it, but now that option doesn't exist, it's just the Mac.
    Am I doing something wrong here? Has the process changed? Do I have to activate Photostream just to import the pics locally?
    Any assistance would be greatly appreciated.

    I'm having the same problem importing pics into iphoto 9.2 from my iphone.  Photostream isn't working in the country I'm in (China) but when I connect the phone manually, it doesn't show up in iphoto...
    Also tried the image capture program (which maybe you could try molotovmouse...) but that also doesn't recognise the iphone...and yes it is unlocked...
    apple can't have removed the capability to import photos manually with a cable...can they?? especially as photo stream has not worked for me at all, and it is extremely limited anyway...

  • Help me import images from Photoshop into a Premiere Elements project!

    How do I add photos from Photoshop to existing Premire Elements project.

    If you have edited the Images in Photoshop, just Save_As PSD (or TIFF). Set the Still Duration to the desired time, in PrE's Edit>Preferences. Then, Import them into PrE. From the Project Panel, just drag the Image(s) to the Timeline, and to an appropriate Video Track. Say, if you want to place the Image between Clips, just drag it there, and the rest of the Clips/Images on that Video Track will Ripple.
    If you want to replace parts of a Clip, with that Image, just hold down Ctrl/Cmd and drag to the appropriate location.
    If you want to overlay it, with an existing Clip, just place it onto a higher Video Track. Note: this yields the same general result, as the method above.
    I strongly suggest that you Scale your Image in Photoshop, to match, or nearly so, the Frame Size of your Project's Preset.
    Good luck, and hope that helps,
    Hunt

  • Opening an image email attachment on 6280

    Trying to get to grips with my new 6280 on t-mobile uk.
    I would like to be able to open email attachments that i pick up via pop3 but the only option i can see is to save attachments and then go into gallery to view... any one have any ideas. my only experience of doing this was on a 9500/9300/6680 which did display the attachments with the email opened !!

    s60 and s80 phones both handle email attachments differently. the spec for s40 means that the attachment needs to be downloaded and saved prior to opening...

  • Getting image from attachment into image field in a form

    Hi all,
    I have a process where a customer sends in a PDF with an attached image. This image is then stored in a process variable and I need to put it in another form.
    Any ideas how to do this most efficiently?
    Sincerely
    Kim

    Hi Paul,
    I did what you suggested, here goes in more detail:
    1. I use processFormSubmission for getting the attacment out of the document (might be possible in another way though).
    2. I loop through the list of attachments to get to one I need
    3. When I find it I use "getDocContentBase64(doc)" method and saves to string
    4. I store the string in my xfaform (in a normal textfield)
    5. On the form I have some simple code on initialize that sets the data from the textfield to be assigned to the image field for the image.
    Thats it...simple eh :)
    PS: There is a glitch in the Help for LC 8.2, it says that there is a " getDocFromBase64(aString)" method available, but it is not there...
    Sincerely
    Kim

  • Importing images with text into Final cut pro

    I'm using FC Studio on a 15" Powerbook 1.67 GHZ 1.5 GB RAM OSX 10.4.9 with a 300GB external HD.
    I'm editing a short film and am using some still images. I've successfully imported and used photographs edited in photoshop. I'm trying to import what is essentially a screen shot of a MSword Doc consisting of boxes, text and graphics.
    I've exported the word doc to PDF and imported to photoshop with 300dpi and saved as both jpeg and png. When viewed in photoshop the resolution of the text appears normal. It imports sucessfully but when viewed in full size in the timeline or external monitor the resolution of the text is terrible. I've also tried adjusting the scale of the image in the Canvas.
    I've read up on this issue a little and have tried reducing and increased the image size and dpi. Has anyone else tried to import still images with text??
    I apolgise if this issue has already been addressed - I've tried using the solutions provided for still images (without text) but have come up against a wall!
    I would appreciate any help or feedback!

    I have used Adobe Illustrator saved out as.png with great results.
    Larry jordan has good info for you here;
    http://www.larryjordan.biz/articles/textindex.php

Maybe you are looking for

  • Making photo galleries fit screen sizes in fluid grid layout

    Is it possible to have photo gallery images fit within the width of a device (such as smart phone) when a fluid grid design is being used?

  • Lumia 720 screen cracked

    Dear Nokia Support team, couple of questions on Nokia Lumia 720 - does the screen crack after falling from 3 ft given it is made out of gorilla glass? - can this be covered in the warranty? my device is just about 8 months old, and performing quite w

  • Install Failures

    Every time I try to install software on my MacBook Pro, I get an error that says "The Installer could not install some files in '/'. Contact the software manufacturer for assistance."

  • RETURN ARRAY WITH PL/SQL

    Hi, We made a simple pl/sql procedure which insert in a table. With a c# program and odp.net, we call it with a bind array and it works fine. Now, we try to inverse the situation. Is it possible with odp.net to call a pl/sql procedure which return an

  • SYSTEM_SERVICE_EXCEPTION ATIKMDAG.Sys

    My folder: https://www.dropbox.com/s/cryktwdcqi6g3co/minidump.rar?dl=0 Please help me