Can't multi select image on Iphone

Advertisement

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!

Advertisement

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.

November 30, -0001

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 fr

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 h

In my itunes tab is images / photo disappeared. . can not get it back, so now I can not get pictures on my iphone??? I do not want to use the photo stream. there are others who have experienced this tab disappears

in my itunes tab is images / photo disappeared. . can not get it back, so now I can not get pictures on my iphone??? I do not want to use the photo stream. there are others who have experienced this tab disappearsMake the iTunes window wider. It is o

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 " ThanksMost Simple

How can I validate a multi-select box to have at least 1 option

How can I validate a multi-select box to have at least 1 option selected in struts?thanks i will try that other then that if I want to create single drop down list and pass multiple values associated to that drop list value how would i do that....Rea

Can any tell me how to make Collage from selected images

Hi I need to make a Collage of selected Images. Can anybody tell me how to proceed or point me a finger in the right direction. If there is an example then it would be great. Thanks in advance praveenaOne way you can do this is to override Panel, and

I have just bought an iphone 5c and have multiple devices on itunes and want to select a specific iphone to sync the new phone data to how do i do it can anyone help in laymens terms.

I have just bought an iphone 5 c and need to back up from itunes my old iphone 3 but the family has other iphones on itunes how do i select the right iphone to back it up fromHave a read here... https://discussions.apple.com/message/18409815?ac_cid=h

JAI - problem displaying additional pages from multi-page image

Hi, I have 10 page multipage tiff images. And i would like to show the images one-by-one on a ScrollingImagePanel. I have a Main frame with two panels. Panel1 which shows the ScrollingImagePanel. And Panel2 has two buttons. LOAD Button show the 1st p

HT201272 i have download 120 mb size (uno card game) on my laptop how can i get it on my iphone s4

i have download 120 mb size (uno card game) on my laptop how can i get it on my iphone s4If you downloaded it from the app store on your computer's iTunes then connect your iPhone to your computer and select it on the left-hand side of your computer'

Is the file size of a selected image shown on Adobe Bridge CC 2014?  If so, where?

Is the file size of a selected image among the filter categories?  Or anywhere else? I know I can find it in Photoshop, but that is cumbersome.The file size is shown in the Metadata panel. You can not filter on file size but you can sort by file size

How to dipsplay value of multi select prompt in Answers

I have a request in Answers that has a multi select column prompt. I can display the value selected in the prompt in the Narative view as long as only one value is selected. When more than one value is selected, how can I display the multiple values

How can I put an image of a painting centered on to a blank 4x6 postcard?

How can I put an image of a painting centered on to a blank 4x6 postcard?moopartist wrote: How can I put an image of a painting centered on to a blank 4x6 postcard? Go to File>new>blank file. Enter the dimensions, background color to suit. For resol

Storing the values of multi-select on a presentation variable

I've been asked to present the values selected by a user on a multi-select dashboard prompt as the title for the report. But when you select this option at the time you are creating the prompt, the option to store the values in a presentation variabl

Is it possible to Add to Multi-Select Lov through Customization?

Hi All, I have a Oracle Seeded page( Oracle Training Administrator). Clients wants a new field with Multi-Select LOV on that. Is is possible to create Multi-Select LOV through Customization or changing the page in JDeveloper? As per OAF Developer gui

Can you use appltv without an iphone or ipad?

can you use appltv without an iphone or ipad? can you use appltv without an iphone or ipad? can the apple tv be used if I do not own another apple prouct?The Apple Tv is a stand alone device. It does not require an iPhone, iPad or other Apple Product

Can we attach multiple images to a pages document in one go rather than drag and drop in to a media placeholder?

Can we attach multiple images to a pages document in one go rather than drag and drop in to a media placeholder?Danny Spry wrote: Can we attach multiple images to a pages document in one go rather than drag and drop in to a media placeholder? Danny,

Can't save an image used as link

After I updated my iPhone 3GS to iOS 5.0.1, I noticed I can no longer save images  that are being used as links on websites. Using the usual method of holding my finger on these type of images, brings up the following options: "Open", "Open

Launch image for iPhone 5 with Flash CS6

How do I add the required iPhone 5, 4 inch screen launch images to my build using Flash CS6. I have targeted Air 3.8 beta and there is no support for bundling the necessary images. Do I need to edit the plist or app descriptor xml file or something?

Can't do any image adjustment after photomerge

Hello all, I did manage to do the photomerge under CS4, but why I can't do any image adjustment for the photo?That I don't understand: I have no idea of how to do by the layer, therefore, I may as well use the Nikon NX2 or Aperture. In the Layers Pan

Why I can't subtract two images in imaq vision builder?

Hi, I have many times tried but failed to get the objects in a image by subtraction with another image which is background, in imaq vision builder(ver. 6.0). I totally can't use the "operators" command under "greyscale" to subtract the