Save image to camera roll with specified file name or get the file name

I am saving an image to camera roll but don't see an option to save the file using a custom name. Is it possible to do so? or is it possible to get the name of the file saved?

Ensure you have set the correct capability in your app to save the picture with the exact name you specified.
You can try the code below to iterate through all pictures in the cameraroll album and find out if the name exists.
using (var mediaLib = new MediaLibrary())
var camRollAlbum = mediaLib.RootPictureAlbum.Albums.Where(a=>a.Name == "Camera Roll").FirstOrDefault();
foreach (var pic in camRollAlbum.Pictures)
string picName = string.Empty;
if(pic.Name.Contains("Selfie"))
picName = pic.Name;
Let me know if this helps.
Abdulwahab Suleiman

Similar Messages

  • TS1702 I can not save image to camera roll from google images after I downloaded IOS 6. It keeps saying image save failed.

    After I downloaded IOS 6 on my iphone 4s i went on google images and clicked on a picture. I then tried to save image to my camera roll and was asked do I want to put image in camera roll. I pressed no by mistake and I have not been able to save any images since. I deleted google off of my iphone and reinstalled it
    and it still says image save failed. I can not find an option on the google app to change the setting or on my iphone in settings.

    OMg!!i had the same problem like just now and what I did was I went to settings, went to reset and then I only rest the location and when I went to google again, they asked me if I wanted to use my current location and I said yes and then I tried o save a pic and they asked me of they can access my pics and u have to say yes
    HOpe I helped

  • Reading csv file how to get the Column name

    Hi,
    I am trying to read a csv file and then save the data to Oracle.
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection c = DriverManager.getConnection("jdbc:odbc:;Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=.;Extensions=csv,txn");
    Statement stmt = c.createStatement();
    ResultSet rs = stmt.executeQuery("select * from filename.csv");
    while(rs.next())
       System.out.println(rs.getString("Num"));
    My csv file looks like this:
    "CHAM-23","COMPANY NAME","Test","12",20031213,15,16
    Number,Environ,Envel,Date,Time
    "1","2",3,"4",5
    "6","7",8,"9",9
    Now is there anyway using the above code I start processing the file from the second row that holds the names of the columns and skip the first row. And also can I get the name of the column using ResultSet something like:
    if columnName.equals("Number")
    Because I may have a csv file that could have more columns:
    "CHAM-24","COMPANY NAME","Test","12",20031213,16,76
    Number,Environ,Envel,Date,Time,Total,Count
    "1","2","3","4","5",3,9
    "6","7","8","9",9",,2
    So I want to get the column name and then based on that column I do some other processing.
    Once I read the value of each row I want to save the data to an Oracle Table. How do I connect to Oracle from my Application. As the database is on the server. Any help is really appreciated. Thanks

    The only thing I could think of (and this is a cluj) would be to attempt to parse the first element of each row as a number. If it fails, you do not have a column name row. You are counting on the fact that you will never have a column name that is a number in the first position.
    However, I agree that not always placing the headers in the same location is asking for trouble. If you have control over the file, format it how you want. If someone else has control over the file, find out why they are doing it that way. Maybe there is a "magic" number in the first row telling you where to jump.
    Also, I would not use ODBC to simply parse a CSV file. If the file is formatted identically to Microsoft's format (headers in first row, all subsequent rows have same number of columns), then it's fine to take a shortcut and not write your own parser. But if the file is not adhering to that format, don't both using the M$ ODBC driver.
    - Saish
    "My karma ran over your dogma." - Anon

  • Why I cannot save image to camera roll after updated iOS 8.3 ?

    My iPhone6 was updated iOS 8.3 last Friday (2015/04/10) morning.
    After updated I found my iPhone sometimes cannot save image from any applications.
    At first it cannot save pic from Twitter and Tweetlogix. They said I had to change setting in Seeting>Privacy>Image and click allow button to save pic. After I did that it still didn't work, so I had to restart my iPhone and wait for 5-10 minutes to save pic.
    Not only saving pic from apps, but it cannot saving after taking pic too.
    I think iOS 8.3 is not stable. But it looks like only mine that got this problem so I ask if there is any way to solve this problem.

    OMg!!i had the same problem like just now and what I did was I went to settings, went to reset and then I only rest the location and when I went to google again, they asked me if I wanted to use my current location and I said yes and then I tried o save a pic and they asked me of they can access my pics and u have to say yes
    HOpe I helped

  • In the new iphoto app, why can't i save multiple images to camera roll at once?

    why can't i save multiple images to camera roll at once? it seems i can only save one at a time and its very frustrating..
    the options seem to be there, they are just greyed out and i cant click on them.
    at first i thought its because the images were too big, so i tried it with smaller images but same thing.
    APPLE HELP!

    I can confirm @khaniff's original post the option in iPhoto for iOS is greyed out in conflict with the referenced article that follows:
    Save to the Camera Roll
    Tap a photo, album, or event and tap .
    Tap Camera Roll.
    Confirm or change the photos you want to share by tapping an option.
    Select all the photos in an album or event: Tap All.
    Select a range of photos: Tap Choose, tap Range, tap the first and last photos in the range, and tap Next.
    To use your photo in another app, open the app and select the Camera Roll album.

  • Save (or Sync) Camera Roll from iPhone to my "My Pictures" on my computer.

    I had some issues with the 2.0.1 update and had to restore my iPhone from a different computer. Then I hooked my iPhone backup to my main computer and was going to restore from my backup, however, iTunes immediatly performed a backup of my iPhone (Newly Restored) so I lost my settings.
    I have taken a lot of photos on my iPhone and now lost all of them except for the ones I've emailed or sent to MobileMe. I must say that it is a bit of a pain if I have to send each picture to MobileMe one at a time.
    Is there a way when I sync my iPhone that it will automatically write the photos on cameral roll to a folder I specify in "My Pictures" on my computer? If not, this should be something that is included in a next update.
    Also, I would like the ability to send multiple photos in an email.
    Thanks!

    This is an issue I've had myself. It is rather irritating that I can sync up other photos from my computer TO my iPhone, but not anything in the Camera Roll folder. Ive read the argument that the phone is being treated as a digital camera in this case and that adding functionality to a program isn't all that easy, but I really don't buy either of these arguments in this case.
    For one thing, iTunes already knows how to sync jpeg photos between my computer and my PC. I can put any folder containing jpeg images ONTO my iPhone through the sync mechanism in iTunes. The iPhone is saving the images as jpegs in the Camera Roll folder (I'm extrapolating this by virtue of the fact that when I email an image from Camera Roll, it attaches a jpeg image). By extension, it should just be a matter of making the Camera Roll folder accessible from the Photos sync. Camera data is usually stored in the tags of a file, which shouldn't be lost when transferring files back and forth. And if it is, just give me a little warning and let me choose.
    So, as far as I'm concerned, iTunes already knows how to do this. Why is the functionality not included? I am able to use Windows Explorer to copy files like I would from any digital camera, but why should I have to do that when iTunes syncs everything else.

  • IPHONE 5: Saving images to camera roll from an email results in a black image

    I have emailed myself a couple images  (medium res .jpgs) and when I open the email the colors are overly bright. When I then go to save them, they save as a very dark black image with a little bit of a blue outline of the image. Anyone know what the problem is? Thanks in advance!
    PS these images are illustrations I have made in illustrator/photoshop. Not sure if that matters though.

    Depending on the format of the video you may or may not be able to do this.
    If its a supported format, like m4v or similar, you can tap and hold on the icon in the email and a box with options should pop up.  One of them being "Save Video". This will save the video to the camera roll.
    If you don't have the "Save Video "  option you will not be able to save it your camera roll, but still might be able to save it to an App that can play the video by tapping the icon for the App in that same screen.

  • I am batch processing in PS 2014 (watermark and saving as jpeg from ps file). I get the message for some but not all 'this file needs to be saved as a copy with this option'. And then I have to save it manually. Does anyone know why this happens? (It is j

    I am batch processing in PS 2014 (watermark and saving as jpeg from ps file). I get the message for some but not all 'this file needs to be saved as a copy with this option'. And then I have to save it manually. Does anyone know why this happens? (It is just a plain photoshop file, a watermark is added, then save as jpeg - the jpeg is saved to a different folder than the original photoshop file.)  It happens for about 10 of 30/40  files approximately . Thank you, Kathryn

    I believe I have figured it out - I need to flatten the image, even though there are no layers except for layer 0, first.

  • Photos that I copy from Google no longer save to my camera roll, Why?

    How can I get my photos copied from Google images to save to my camera roll?

    I restored it twice, once from icloud backup and then from my computer back up. I just restored again and set it up as a new iphone and now my photos are saving again. I was then able to sync apps and music from my itunes to my phone... So happy you wouldn't believe!!

  • How do I sync photos in my iPhone camera roll with my iPad.

    How do I sync photos in my iPhone camera roll with my iPad

    With iTunes..
    Sync your phone to iTunes... Transfer your Camera Roll Photos... Then Sync your iPad with iTunes...
    How to transfer or sync content to your computer
    http://www.apple.com/support/iphone/syncing/
    http://www.apple.com/support/ipad/syncing/

  • Photos in the camera roll of "iPhone cannot be imported because the device is locked with a passcode.  Tried just about everything - suggestions?

    Photos in the camera roll of "iPhone cannot be imported because the device is locked with a passcode.  Tried just about everything - suggestions?

    Because your computer sees your phone, as it would see any digital camera, as long as you have photos in your camera role. Since you state you don't sync with this computer & have a passcode on your phone, that's why you get that message. The only way to prevent that message is either start syncing with this computer; remove the photos from your camera roll prior to connecting; or first turn off your passcode before you connect. Either that, or you live with it.
    You shouldn't be storing photos in your camera roll anyway. iPhone camera roll is not designed for photo storage. You should be regularly importing them.

  • HT4946 I have had my iPhone for about a year, and I have a photo file from my old blackberry. When I go to back up my photos, it only backs up the camera roll. How do I back up the other album? The laptop where I had those photos broke, please can someone

    I have had my iPhone for about a year, and I have a photo file from my old blackberry. When I go to back up my photos, it only backs up the camera roll. How do I back up the other album? The laptop where I had those photos broke, please can someone help.

    You're going to have to email those photos to yourself.

  • When I click on a photo in Facebook app on iPhone 5 to save it to camera roll it doesn't work like it did in IOS 5.

    When I click on a photo in Facebook app on iPhone 5 to save it to camera roll it doesn't work like it did in IOS 5. Is there a way round this? It's do annoying.

    is youre using iOS 6 go to settings>facebook and turn camera/photos on

  • I backed up my iPhone onto iCloud, and now any new pictures I take don't save in my camera roll. And when I try to open the photo app it turns white and eventually closes out of the app

    I backed up my iPhone onto iCloud, and now any new pictures I take don't save in my camera roll. And when I try to open the photo app it turns white and eventually it closes out of the app.

    rabidrabbit wrote:
    Can I back up my iPhone 4S to my ipad 3 (64 gb)?
    no
    rabidrabbit wrote:
    However, now I don't have enough space in iCloud to backup either device. Why not?
    iCloud only give so much space for free storage, then if you exceed the limit of 5gb you have to pay for additional storage.

  • How to transfer a few selected pictures I need from iPhone 4 Camera Roll with four hundred pictures to PC Vista. Just selected pictures not all folder

    How to transfer a few selected pictures from iPhone 4 Camera Roll with four hundred pictures to my PC Vista. Just selected pictures not all folder. Thanks

    You do understand though, that if something happened to your phone - if you lost it, if it were stolen, if you dropped it and were unable to access it, if it got wet - all those pictures that you had not transferred to your computer would no longer be so "handy." Just saying, I have not only read that horror story from many users on this forum, but have seen it live from many users in my own life. Do yourself a favor and back them up sooner rather than later by transferring them all now. Trust me on this, you won't regret it.

Maybe you are looking for

  • US 3G iPad in the UK with UK 3G SIM

    Hey there.. Currently in the US on business and wondered this: If I purchased an AT&T Wi-Fi & 3G iPad 2 while in the US and took it home to the UK and put my vodafone sim in it - would it work perfectly? I also wanted to check that if I entered my Ap

  • MB01 GR error Enter only one true account assignment KI249

    Hi Experts, We are getting an error message as "Enter only one true account assignment KI 249" in MB01 transaction while doing goods receipt for a subcontracting PO. Subcontracting PO is created from a maintanence order for external operation. Accoun

  • How can I retain about:config settings when updating firefox?

    Really appreciate all the hard work creating updates but every time I update I lose my about:config settings, especially the browser.tab ones that I rely on. Specifically I use non-default settings on InsertRelatedAfterCurrent and all the warning one

  • Adding space to drive letter

    Hello Community     When you have an SQL Server and lets say you have your mdf on your D:\ drive and your ldf on your E:\ drive.     If your database on your D:\ drive starts to run out of storage space and/or your E:\ drive starts to run out of stor

  • How do i take the newest update off of my iphone

    randomly my iphone stops working. all my service goes away and it just says searching at the top, if i dont have my phone connected to wifi i can not do anything at all. i cant call text or recieve anything. it only started happening when i updated t