Can't multi select image on Iphone

Hello everybody!
I write one program upload image from iPhone to server use HTTP request.
Current, I use UIImagePickerController to select image and UIImageView to receive and diplay image. Then use UIImageJPEGRepresentation function to get NSData from UIImageView.
I uploaded success image to server use NSURLConnection. But I have some question:
1. Use UIImagePickerController to select image from iPhone, I only select one image. I can't multi select image from iphone. Each upload, I only uploaded 1 image.
Which the way to select multi image to upload them to server in once time.
2. I can't get file name and type (jpg, png,... ) of image, UIImagePickerController only return byte value of image. I can access width and height of image with byte value but can't get name and type of image.
Wich the way to get name and type of image.
3. I found 2 function are UIImageJPEGRepresentation and UIImagePNGRepresentation to covert UIImage to NSData. Current, I use UIImageJPEGRepresentation to convert to NSData:
NSData *imageData = UIImageJPEGRepresentation(img, 1.0);
I think if image is PNG will use UIImageJPEGRepresentation to convert to NSData. But in case image is GIF, BMP,.. which the function used?
Size of imageData more than size of image. So, image upload in server has size more than data of image on Iphone. I don't understannd?
Thank you very much!

1) The image picker does not support multi-select. I think the best you could do is show the user the picker multiple times keeping track of all the images they pick.
2) You can't get the image filename. It would be of no use anyway. When the user takes a picture with the camera, for example, internally the phone stores the image with some internal filename that wouldn't make sense to anyone outside of the phone. Most likely all images are internally stored as JPG but they could be PNG.
3) Images on the phone will never be (I think) GIF or BMP or anything other than PNG and JPG.
There are a lot of conversions going on. The images on the phone are stored as PNG or JPG. When you load them into a UIImage they are converted into an internal bitmap format. If you then use UIImageJPEGRepresentation (or the PNG version) then the internal data is converted to that format. The PNG and JPG formats should be smaller than the internal format due to compression.

Similar Messages

  • My Itunes is no longer allowing me to manage my music on my phone i can no longer select on my iphone to make playlists and delete music. Please help fix my problem.

    My Itunes is no longer allowing me to manage my music on my phone i can no longer select on my iphone to make playlists and delete music. Please help fix my problem. Iphone4s, 32gigs, IOS 7.1.2
    I don't know why it stopped working but it happened a month or two ago but the option on this phone that's usually all the way to the left when you select your device but now its not and I don't know what caused it. ive already tried troubleshooting my problem but have found no help.

    Hello Salmomma,
    Thank you for the details of the issue you are experiencing when trying to connect your iPhone to your Mac.  I recommend following the steps in the tutorial below for an issue like this:
    iPhone not appearing in iTunes
    http://www.apple.com/support/iphone/assistant/itunes/
    Additionally, you can delete music directly from the iPhone by swiping the song:
    Delete a song from iPhone: In Songs, swipe the song, then tap Delete.
    iPhone User Guide
    http://manuals.info.apple.com/MANUALS/1000/MA1658/en_US/iphone_ios6_user_guide.p df
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How can I import selected images from a folder instead of the whole folder in iPhoto 9.5.2?

    Hi there,
    I was trying to help my parents import some photos from a folder they have created with photos from their holiday. They only want to import select images from this folder into iPhoto. I said it would be easy and they can do it in 2 ways. First, they can drag and drop selected photos from their folder into iPhoto - and this works for them. However, more convieniently, they can click file>import to Library and then select the photos they want by going into the folder... Well that's how it works on my iPhoto '11 at least. When they showed me their screen via Skype (they are running iPhoto 9.5.2), when they click import to library, and try to go into the folder containing their photos, it imports the whole thing and there appears to be no way that they can enter the folder to select just a few photos from what I could see.
    Does anyone know anything aout this problem?
    Cheers.

    What view are using in the Import dialogue. Column view might be easiest to navigate.

  • If you can't download 6D images to iPhone

    Just got my 6D last week.  Love it!  Excellent implementation of WiFi to iOS devices (iPhone and iPad).  Only a couple of pushes to establish connection after the first pairing.
    But, I had a problem at first:  From the iPhone I could control the camera, view all images on the SD card and email small, medium, large or full size images with no problem.  But, I couldn't save images to iPhone Camera Roll.  If I hit the SAVE icon, it would just give me a BUSY icon forever and would not save.
    THE PROBLEM:  Emailed and called Canon, but they had no idea except to delete and reload the EOS REMOTE App which didn't help.  However, a hint from another website identified the problem.  When I first connected the iPhone and EOS 6D, I accidentally hit "NO" when asked to "allow the 6D to access my camera roll".  I instinctively don't allow most apps to access location services, contacts or camera roll until I'm familiar with the app.  In this case it keeps EOS REMOTE from saving photos, and no error message.
    To FIX THIS:  On your iPhone, go to SETTINGS/PRIVACY/PHOTOS/EOS REMOTE and turn access to ON.
    Immediately started working like a champ.
    Great camera.  Great app.
    Jim in Boulder

    i have looked for a week and this is the answer that worked, thanks. just change the location of the download to a local drive not a server. the music did download but the video would not.
    dell 5100   Windows XP Pro  

  • I can't multi select in finder

    I initially noticed that I was unable to multi select photos in Aperture. I turned off the One Primary feature but the problem remained.  Next I went to the Finder and tried it there. I put the Finder window into List view, selected a document, and held down the Shift key while selecting a second document down the list. The Finder acted as if I was not holding down the Shift key and only selected the second document.  Any ideas?  I have a 15" Retina MacBook Pro with the latest version of Mountain Lion.

    I too have experienced that problem. You might try updating to 10.8.3, which was released today.
    If the problem persists:
    Change the view. If you were in icon view, change to list. Now see if it works.
    Relaunch Finder or restart the computer.
    If issues still persist, let me know more details and I'll try to reproduce the issue on my machine.

  • How can I multi-select texts?

    Just as I can do in MS Word.
    I want to select separate words in a text object. It's giving me a headache...
    Thank you in advance.

    You can thouhg use the eyedropper to stylize text noncontiguosly.
    zoom in on text (so you can be more precise, as in step 4 you do not see hightling of text)
    eyedropper click to samepl text you want to apply
    hold down option
    drag over text to apply

  • 9.4.5 BUG.  Can't Multi-select Pages anymore!!!!

    Confirmed on all 4 Adobe Acrobat 9.4.5 users at my org since the update yesterday.
    Before, if you held the CTRL Key, you could select multiple pages in the Pages Pane to Delete/Extract/Ect.
    THIS NO LONGER WORKS! And we use that functionality A LOT.
    What is the best way to get this info to the powers that be?
    -Sam

    I am not going to spend one more red cent on Acrobat and reward Adobe for their lack of effective testing. As a long time Acrobat user and a former tester of software, it seems they do not do a good enough job regression testing their fixes to see if what they fix does not affect other parts of their product. I wonder how many other bugs are waiting for me if I upgrade to Acrobat X.
    I really wonder if Adobe knows that there are a few good alternatives to Acrobat out there. And I do not want to discuss which ones are best.
    Ken Friedman

  • ADF Table Multi Select Issue

    Hi,
    I have a read only table with multi select and a panel form based on the same VO. The from has editable component through which the user modifies the data.
    When the user selects a single row in the table -> the form shows the corresponding data.
    When the user selects multiple rows using cntrl key say ROW_1, ROW_2, ROW_3 the form displays data of ROW_3.
    However after this if i click on ROW_1(single row selection) , the form still shows the data of ROW_3. How to show the correct data in from
    My Jdev 11.1.1.4
    Thanks
    Ajay

    Well, your use case is somewhat problematic. It doesn't make sense to have an edit form together with a multi select table, as the user can't be sure which row data he sees in the edit form.
    This said, you need to know, that the af:table has two properties which should not used together: SelectionListener, selectecRowKey should not used with rowSelection="multiple".
    For multiple select table you should not populate these properties. (http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_tables_forms.htm#sthref2010)
    You can e.g. add a column to your table containing a link to allow edit of the row. Then you can use multi selection the normal way.
    Timo

  • Maximum number of Select Images/Vision Assistants

    Hardware:         CVS 1454
    Two cameras:   AVT Guppy F036C
    MAX Settings   
            680x480 Y (Mono 8) 15fps
            Speed: 400MBs
            Packet Size: 680bytes 
            Gamma Off
            Bayer Pattern: BGBG_GRGR
    Connection:      Using two firewire cables directly to the CVS
    Software:          Vision Builder 2010 and Vision Builder 2009
           I recently started to create a Inspection in VB2010. When I press "Run Inspection Once" button, it would lose connection with the CVS.  I watched the free memory in MAX and it went from 32MBs to 3MBs before it would lose connection. I simplified my Inspection to use fewer states, eliminated most of the variables in an attempt to use less memory. I put the camera settings as low as possible in MAX. Eventually I got it to stop losing connection to the CVS.
           Now that I could go through the states after it went through one iteration I saw that one or both of the Acquire Images would fail. Especially if I went into Inspection Interface and back to Configuration Interface. I figured it was a memory limitation since the CVS 1454 only has 128MBs, 96 of which is occupied by VB2010. I got another CVS, formatted it, and installed VB2009 since it had 44MBs of free memory.
           In VB2009 I put all of the test steps into one long state. The program has:
                  two acquire steps in one state
                  two states for creating ROIs(one state for each image) for a total of 2 Select Images
                  a test state which has two Select Image steps, one vision assistant, along with other test steps
           If I add one more select image or one more vision assistant those steps will simply fail to do anything. The inspection manages to finish running but anything involving that final Select Image/Vision Assistant will not work.
    Has anyone else experience a limitation to the number of select images or vision assistant steps they can use? I have a working inspection now but I need to be aware of the limitations as I try to make more robust Inspections.
    Is it a problem with the amount of user space in the CVS 1454 or is there just a limited number of pointers in the VB code that limits the number of references that can be made?

    My bet is you're just too close to the memory limit on that device. A quick test would be to just acquire images from your camera(s) without any Vision Assistant/processing steps and make sure this works for long periods of time without problems. Use the same cameras, and triggering settings to make it as close The Vision Assistant steps make a copy of the image (as well as Threshold). You can use the Select Image step to see which steps create a copy of the image. If you are really dead set on the CVS, you could try replacing the steps that make a copy of the image with a Run LabVIEW VI that does the same same functionality and minimize the copies you do in the Run LV code. This should save you your image size x the number of processing steps you can replace with Run LabVIEW. You're kind of at the edge of what the HW can do, so I wouldn't normally recommend this, but if you're desperate and don't want to upgrade HW, you could try using Run LV to help do several of the steps in VBAI that are making copies of the image.
    Hope this helps,
    Brad

  • I applied some edits to my photo using iOS 7's default photo editor. It looks great when I preview the image on iPhone, but I cannot export the edited photos onto my PC. Anyone know how can I do this?

    I applied some edits to my photo using iOS 7's default photo editor. It looks great when I preview the image on iPhone, but I cannot export the edited photos onto my PC. Anyone know how can I do this?

    yeah, in itunes if you select your phone, you should get tabs across the top for what to sync, under photos uncheck the box
    EDIT: http://support.apple.com/kb/HT4236 is the link to a apple support document with information on syncing photos using itunes.
    Message was edited by: WYSWYG

  • I have an IPad 2 and an Iphone4, but as it suggests that I can click a photo on my iPhone and the image will also reflect simultaneously on my IPad does not happen, though I have activated cloud on my iPhone. What could be the problem.???

    I have an IPad 2 and an Iphone4, but as it suggests that I can click a photo on my iPhone and the image will also reflect simultaneously on my IPad does not happen, though I have activated cloud on my iPhone. What could be the problem.???
    Also in my iPhone4 the photos that I have downloaded manually from my computer cannot be erased from the phone, how do i do this.???

    Sounds like you are not running iOS 5 ..........
    Update your iPad 2 to iOS 5............
    I purchased an iPad 2 for my wife for Xmas and it did not come with iOS 5 so I had to update it......
    http://www.apple.com/icloud/get-started/
    http://support.apple.com/kb/HT4972

  • How can I save the images to the iPhone anywhere

    Hello  I own Time capsule 3 tb. How can I save the images to the iPhone anywhere in Time capsule
    note i used fileexplorer when Outside the home isee Outside Message " error connection failed with the error operation time out "
    Thanks

    Most Simple Back Up:
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex: Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically.
    Example of such apps: Chronosync - but there are many others. Search on MacUpdate or the App Store
    If you want to back up the Photos only:
    Export them using the File -> Export command.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

  • In My iphone 5s,i have disabled automatic download from whatsapp app.So whichever images,video i feel is good i download them and then save them to my camera roll section.So i want to know how can i remove the images from cache of my phone.

    In My iphone 5s,i have disabled automatic download from whatsapp app.So whichever images,video i feel is good i download them and then save them to my camera roll section.So i want to know how can i remove the images from cache of my phone which are downloaded and not saved,but they remain in cache.
    Even in some apps i have data which i want to remove,but cant find a way to remove them and they are in my cache eating up my memory.

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • How can I transafer my images please from PC to iphone 4s

    how can I transafer my  images ,please, from PC to iphone 4s.I dont understand how can  I do it. Where is the options to add photos..I just remember that I must synchronize something..I've tried to find in internet but I see another interface of itunes on all kind of videos? I have anotherinterface in itunes.Ive allready update my itunes and iphone and have a latest version of IOS ..What is f...g  that?please help me..

    Also, the reason your iTunes interface may look different may be covered by the following in iTunes: Syncing photos
    Click the Device button in the upper right corner. (If viewing the iTunes Store, click the Library button in the upper-right corner first.) If you don't see your device, choose Hide Sidebar from the View menu.

  • I can no longer back up my iphone to my computer on selecting 'sync'. I can back up to iCloud but I get an error message telling me I cannot backup to my Mac. Can any one help? It's driving me crazy!

    I can no longer back up my iphone to my computer on selecting 'sync'. I can back up to iCloud but I get an error message telling me I cannot backup to my Mac. Can any one help? It's driving me crazy!

    Hello joelfromn. charleston,
    It seems you are unable to activate iMessage on a device with no carrier service. The following article provides information regarding activation issues:
    If you get an error when trying to activate iMessage or FaceTime - Apple Support
    Check your device settings
    Make sure that you’re connected to a cellular data or Wi-Fi network. If you're using an iPhone, you'll need SMS messaging to activate your phone number with iMessage and FaceTime. Depending on your carrier, you might be charged for this SMS.
    Go to Settings > General > Date & Time and make sure that your time zone is set up correctly.
    Thank you for contributing to Apple Support Communities.
    Cheers,
    Bobby_D

Maybe you are looking for