How can I save one JPG files from UIImage data? not save to photoalbum

As title....

For example:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
    NSFileManager *fileManager = [NSFileManager defaultManager];
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *jpegPath = [documentsDirectory stringByAppendingPathComponent:@"main.jpg"];
    UIImage *image = [info objectForKey:@"UIImagePickerControllerEditedImage"];
    [UIImageJPEGRepresentation(image, 1.0) writeToFile:jpegPath atomically:YES];

Similar Messages

  • How can I delete two .jpg files from my desktop that refuse to be deleted?

    How can I delete two .jpg files from my desktop that refuse to be deleted?

    The two icons refused to be moved to the garbage. The good part in all this is that ater I turned off the computer at night and turned it back on the next morning they were gone!
    Thanks.

  • How can I remove a JPG file from Places?

    I've just noticed that in the Finder windows, under Places, there is a jpg file. Obviously that's not a Place and I can't recall how it got there. But that's not important; I just want to remove it. I tried dragging it to the Desktop and to the Trash, but that didn't work. I suppose the items in Places are actually aliases stored somewhere. Can you tell me where and how to delete that one? (I'm comfortable editing plist files, if that's where it is.)
    Thanks,
    Rob
    P.S. My profile says I'm running 10.6.4, but it's actually 10.6.8, just updated this morning.

    Rob,
    That's a change that started with 10.6.7.   Makes it harder to delete items accidently.  Also makes it harder to delete items on purpose when the change happened.. 
    Captfred

  • How can I move an icon/file from one screen of my ipad to another?

    How can I move an icon/file from one screen on my ipad to another?

    Press and hold the icon until they start to wiggle. Then while holding it, drag it to the edge of the screen and wait for the page to switch, then let go of the app

  • I have converted a pdf to word. How can I access the Word file from my online account?

    I have converted a pdf to word. How can I access the Word file from my online account? When it says 'download the converted file' I choose a location on my PC and click, but nothing happens. It seems that it can only save the converted file to my online account. I went to my online account but I see no way to look for the file

    Hey Fabrizio,
    You might need to sign up at "https://cloud.acrobat.com/exportpdf" using your Adobe ID credentials to convert your PDF file to Word.
    Do you get the 'download' prompt?
    Also, you can find the converted files by clicking at the 'Files' tab. 
    Please try the same using a different browser and check.
    Hope to hear from you.
    Regards,
    Anubha

  • How can I EXCLUDE particular folders/files from being included in the Lightroom 5 catalog?

    How can I EXCLUDE particular folders/files from being included in the Lightroom 5 catalog?
    I want to be able to specify paths and/or filename patterns that should NEVER be indexed in the catalog: not that they don't show up under certain circumstances, just that they are NOT THERE (in the catalog) to begin with!!
    I also do NOT want to have to respecify these criteria when "synching" the catalog; criteria should be PERMANENT (or at least 'til they're changed in LR preferences).
    I cannot be the only person in the world with this problem--but it sure seems like it, because I've spent an inordinate amount of time doing online searches & I can't find anything that addresses this issue.
    Can anyone PLEASE HELP me?
    BTW, Adobe employees (if there are any of you out there), I'm simply trying out LR now.  If I can't get this (seemingly fundamental) thing worked out (with relatively little effort), Adobe is going to LOSE A SALE of LR, because it's useless to me without this feature.
    Thanks,
    -t

    Thanks for the info... but how to you TELL LR to EXCLUDE images in a particular directory/directory structure?  The intuitive place to indicate this would be a right-click on the folder itself (or particular images), but no such option exists..  "???"  Thanks again, -pt
    The same way that you avoid buying things in your local convenience store. You don't stick a lot of labels on certain shelves, slap a credit card down on the counter each week, and announce you are buying everything that doesn't have a label on its shelf. You just choose the things you want to buy.
    Your mention of "synching the catalog" suggests that you are expecting the LR library, to mirror the total images in the computer by default. This is not IMO a useful way to think about it. LR contains no images at all, by default: the Catalog starts out empty.
    Then you Add just those selected images that you want to import, among those already in the computer. That's a one-off process which is IMO best achieved controllably in batches - which you can keyword and otherwise organise in LR terms as you go. For new incoming images, ongoing, it is a question of Copying, Moving or Adding these in defined batches as they occur - from the relevant location only - there is no need to re-consider the import of a wider body of images. And one would not want to repeat that whole task anyway: one's prior investment in achieving the right selectivity, has a positive value.
    RP

  • Hi,I have restored my iPhone 4s and i forgot to backup it before restore,so I haven't a backup.How can I get back my files from my iPhone??

    Hi,I have restored my iPhone 4s and i forgot to backup it before restore,so I haven't a backup.How can I get back my files from my iPhone??

    One day this was happened to me:I deleted some videos that i don't need and after about a month i went to a music concert and i recorded with my iPhone for about 25-30 min and my iphone froze and automacitly restarted after a restart when a went  home and i wanted to watch what i had recorded and in my camera roll on my iphone i saw the videos that i deleted about a month ago!!! With this fact i think that the videos aren't deleted they are somewhere i would pay how much is needed to get the videos and photos back .So please someone who knows something about this HELP ME PLEASE !!!!

  • How can I make a PDF file from each folders with layers, where each page is a each folder?

    How can I make a PDF file from each folders with layers, where each page is a each folder?

    I found an answer to my own question. A work around of sorts.
    Download Photoshop Elements 6 for Macintosh. With PSE6 I made a slide show with 550 images 1920x1200, without thumbs. I ran into one problem making the slide show. My images contained 4 images which had not ben created by Photoshop and could not be included in the slide show. Opening the images in Photoshop CS4 and re-saving them still did not make then acceptable. Not a big deal. I probably could have fixed the four images by stripping all EXIF data before opening them in Photoshop. BTW, PSE6 made the slide show in demo mode.
    I hope the bug in Photoshop CS4 will be fixed in Photoshop CS5.

  • How can  I checkout an existing file from CVS without going through the wiz

    How can I checkout an existing file from CVS, that is not already in my local jdev, without going through the wizard and checkingout everything?

    You can't. AI doesn't produce .PLT files.

  • How can I transfer a sound file from my "Voice Memos" app on my iPhone to my iPad?

    How can I transfer a sound file from my "Voice Memos" app on my iPhone to my iPad?

    In iTunes with your iPhone connected, click on the iPhone device, select the Apps tab, scroll down to the File Sharing section and pick an app that plays Quicktimes ("Files Connect" works in this example, but I'm open to suggestions of better apps for playing transferred Quicktimes) and drag your Quicktime from Finder to the Documents pane for the File Sharing app.   Once the file transfer is complete, go to the app on your iPhone to play the Quicktime.

  • How can I prevent a PDF file from being copied, printed or downloaded? Students should only be able to view the text and and not distribute it in any way.

    How can I prevent a PDF file from being copied, printed or downloaded? Students should only be able to view the text and and not distribute it in any way.

    You can prevent it from being printed by applying a security policy to it
    in Acrobat. The rest can't be prevented, unless you spend  a LOT of money
    on DRM protection.

  • How can open a html, pdf files from the server (c:\foldername\filename)

    Hi all,
    I am developing an application. in this app i have to implement RMI.
    My problem is this, How can a client open a files from the server.
    all the html, pdf files are stored in the server's directory like C:\audit\filename.
    There is a folder on the server's C directory which contains all the html , pdf files.
    please tell me how can a client open a file from the server using RMI.
    Please send me the solution as soon as possible.
    Thanks & Regards
    Bhavishya

    That's doing it the hard way. Why not use HTTP or FTP?

  • If I have multiple email accounts, how can I prevent one of them from sending email?

    If set up multiple email accounts in Thunderbird, how can I prevent one of them from sending email, while allowing others to send?

    Simple answer:
    do not use the email address when sending or replying or forwarding emails. Sending is not automatic, you have to generate the email and click on a Send button.
    You could use an smtp server that will not allow sending using the incorrect server for the email address, so that it cannot send, but if you accidentally use the email address you may get an error message, but at least the email will not be sent. Do this here:
    Tools > Account Settings for the mail account.
    bottom right Outgoing Server - select one that will not accept sending using wrong email address
    OR
    in Outgoing Server(SMTP) select the server you are using for that account
    click on 'Edit'
    deliberately make an error in the server name - remove the port details etc.
    So the details are wrong and cannot send.

  • How can I copy all the files from my iMac to an external drive so they remain as 'regular accessible files'? I want to clean my dive

    How can I copy all the files from my iMac to an external drive so they remain as 'regular accessible files'? I want to clean my dive

    You can use a program like Carbon Copy Cloner.  It will clone your HD to the external.  The format is the same as your internal drive and you can boot from it using Option key at boot time.
    http://www.bombich.com/
    Regards,
    Captfred

  • How can I transfer all my files from Mavericks Thunderbird to Mavericks Mail

    How can I transfer all my files from Mavericks Thunderbird to Mavericks Mail?
    Bonjour,
    C'est ma première intervention aussi je ne sais pas si je peux m'exprimer en français.
    Je tente!
    Lors du passage à Maveicks, j'ai basculé sur Thunderbird car je ne souhaitais pas utiliser POP mais Mail ne le permettait pas (du moins je n'ai pas réussi)
    Aujourd'hui, je souhaite revenir sur Mail et, pour celà, je dois rapatrier toutes mes données de messagerie depuis Thunderbird.
    J'utilise Imap et, pour gérer ma messagerie, j'ai créé des boîtes aux lettres dans Local Folsders
    Le passage par Eudora ne fonctionne pas avec Mavericks.
    L'import de boîtes aux lettres depuis Local Folders de Thunderbird (via le menu Fichier) ne permet de transférer qu'un seul courier par boîte aux lettres de Local Folders. Et c'est ce qui m'empêche de passer à Mail.
    Merci d'avance pour votre aide.

    iPhone: Transferring information from your current iPhone to a new iPhone

Maybe you are looking for

  • SGA advisor

    Hi, on 10g R2, can we find what is advised on Dbconsole (DBCONTROLE) on SGA (Advisor Central/Memory Advisor/ SGA tab Advice) in a table by a query ? Actually in Performance Tuning Guide I found the following for cache size : COLUMN size_for_estimate

  • Rename ipad

    How do I change the name of my ipad?  I'm transferring ownership of it to someone else, since I just bought an ipad 2.

  • Exit  from Webdynpro abap application in portal environment

    Hi, I created one custom service in Webdynpro ABAP in ESS and also integrated in the portal environment I need to put Exit button in every page ( OVERVIEW, EDIT, REVIEW). When user click on 'EXIT' button from any one of page , it should return back t

  • HOW DO YOU REINSTALL THE SAFARI APP ON AN IPOD TOUCH?

    MY SON HAS DELETED THE SAFARI APP ON HIS IPHONE AND WE CAN'T FIND OUT HOW TO REINSTALL IT?

  • Subscribed in Adobe CC but still asking for serial number in Photoshop CC

    Hi I have also tried clicking license this software when prompted but it sems my subscription is not yet valid, my photoshop CC continues to be in trial