Save an image file in my phone/ memory-card memory.

Hi everyone,
I want to save a file (an image file) in my phone/ memory-card memory.
i've infact captured it from camera and now want to save in the memory not in the RecordStore.
What should i do ?
Please help me.
Thanks in advance

hi,
You will need the pda optional package jsr75 for file connection. Then create a byte vector from the image and then write the bytes to the location
byte[] bytes = ... // from input stream
String filePath = "file:///c:/"+aFileName;
          System.out.println(filePath);
          OutputStream os = null;
          FileConnection fc = null;
          try {
               fc = (FileConnection)Connector.open(filePath);
               if(!fc.exists()){
                    fc.create();
               os = fc.openOutputStream();
               for(int i = 0;i< bytes.length;i++){
                    os.write(bytes);
          } catch (IOException e) {
               throw new IOException();
          }finally{
               if(os != null)
                    os.close();
               if(fc != null)
                    fc.close();

Similar Messages

  • Is there a way to save an image file as a jpeg and add -web or -print to the file name?

    I am trying to find a way to save my image file as a jpeg and add -web or -print to the existing file name.  This way I can easily see which files are lower resolution for web posting or high resolution for printing.

    Jason,
    I helped somebody do a very similar thing about a week ago.
    The trick is to use the Batch command's ability to construct a file name.
    Tell the batch to append, e.g. "-x" without quotes, to the name of each saved file.
    The batch runs an Action which does a save as JPEG, resize image, add logo, save as JPEG, then close document.
    The output is "<document name>-x.jpg" and "<document name>-x-x.jpeg".
    Then use Windows Explorer to rename "*-x-x.jpg" to "*-print.jpg".
    Then rename "*-x.jpg" to "*-web.jpg".
    See http://forums.adobe.com/thread/1038992?start=32
    The name construction that I used there was just an "x" appended to the document name. Use whatever you like. Also juliew subsequently referred to the method as a "double-batch" run, although it is not. One run of the batch will output two JPEGs for each input document.
    I hope the disagreements in that thread don't cause too much disruption.
    If you want, the Batch command itself can be recorded in another Action which would store the parameters of the batch, then you could run that Action anytime without having to set up the details of the batch each time. It would always output to one specific folder, though.

  • How to save uploaded image file to Apache Web Server from Tomcat

    Hi guys,
    Perhaps this is not an appropriate topic to ask under this forum but I really don't know where should I post my question. Hope you understand.
    Ok, I need to know if my web application is running in Tomcat5 and user uploading some image file where I need to save these image files to the other server, which is running Apache Web Server. Should I ftp to there or other better method ?
    Anyone got a better idea on doing this kind of process pls advice. Many Thanks !
    regards,
    Mark

    if your Apache server is running in the same computer and if your servlet have write access to the folder in apache under which you want to save the file you can just write the file there but you will have to address concurrency issues.
    Otherwise you will have to do ftp but since apache does not have abuilt in frp server you will need a seperate FTP server for this

  • How do i disable the open/save image dialog box in firefox? I want to directly save the image file to the drive.

    How do i disable the open/save image dialog box in firefox? I want to directly save the image file to the drive without clicking on save option everytime when saving an image. I'm using firefox ver 35.0.1 for windows 7.

    Click on the Firefox menu. Then click "Options". Go to "Applications" tab. Search for jpg and png file type. You will find they have "Always ask" action attribute. Change it to "Save file".
    Hope it will work fine for you.

  • How can I save the .mp4 files downloaded from internet to ipad memory so that I don't have to download everytime to view them again

    How can I save the .mp4 files downloaded from internet to ipad memory so that I don't have to download everytime to view them again. Also they might remove them from internet so I can't rely on the bookmark to them.

    I'm trying to send home movies to my 10 year old nephew who lives across the country. He doesn't have a computer. He has an iPod touch. His parents have computers. But I don't want everything I ever try to have him do result in "you need your parent's computer for this." It's getting really embarrassing. I have converted my family over to Apple computers but now they want to buy iPhones, iPads, and iPods even though I tell them to go Android. It took a decade to convert them away from windows now I'm trying to keep them away from these freedom limited iOS devices and they won't listen. Then it becomes my responsibility to make their iPads print to their fancy pre-airprint color laser jet printers, get home movies onto them, and countless other things. It's driving me nuts.
    I have converted these files to a format that the iOS devices will play directly off of dropbox. Now, how do I get the infernal devices to save it instead of play it?

  • How do I save an audio file to my phone that was sent through a text message attachment

    How do I save an audio file that was sent via a text message to my phone so that I can use it as a ring tone

    try searching in the App store for something that will do that.  You can't do that natively.

  • HP Photo Creations - Save as image file

    I've just spent the best part of 3 hours creating two photo collages in this application and cannot for the life of me see how I save the project as an image file.
    The only option I have found is to save it as a 'project'.
    Please tell me I haven't wasted my time?
    I even shared it somewhere, rocket something or other.  Can't do anything useful with it from there either.  So I'd like to know how I can delete the published project too please.
    Thanks in advance.

    Hi RWengel.
    You wrote, "It would seem that since you can only share via the program that that this is photo software second  to marketing software."
    The Share function in HP Photo Creations offers sharing via Facebook, Twitter, Pinterest, email, web link, and embedding. In addition, people with whom you share the project can print it in full resolution. How else would you like to share your projects? 
    Incidentally, here's how I used Microsoft's Snipping Tool to capture an image of the fullscreen preview on Windows 7:
    Launch Snipping Tool. Choose Rectangular Snip mode.
    Click Full to set HP Photo Creations project to fullscreen mode.
    Press Alt-Tab to call up Snipping Tool.
    Press Alt-N to create a new snip.
    Click and drag around the area you want on the HP Photo Creations window.
    As mentioned above, the sharing option creates a link to a printable (and re-sharable) version, so it's a better-looking approach. Again, let us know what you're hoping to do with your images and we may be able to suggest a way to do it.
    Thanks for trying HP Photo Creations,
    RocketLife
    RocketLife, developer of HP Photo Creations
    » Visit the HP Photo Creations Facebook page — news, tips, and inspiration
    » See the HP Photo Creations video tours — cool tips in under 2 minutes
    » Contact Customer Support — get answers from the experts

  • 5230-Phone memory vs Memory card memory

    How to move messages from phone memory to memory card?
    Because, in messaging - options- settings-other-memory in use- if i set it to memory cars, phone memory messages are hidden....so how to transfer them to memory card...
    Pl help

    1: If you have Opera Mobile installed, Clear cache.
    2. If you have too many "Saved pages" in Opera Mobile, delete those.
    3. If you are using Opera Mini, change its "Saved Pages Location" to somewhere on memory card.
    4. If using Ovi Music, Clear cache.
    If you have installed any other application which uses phone memory to store Temporary files change its location to memory card, if it allows you...
    Also Go to Settings>application manager>installed apps>do you see a mini memory card icon on the right side of each application you installed?
    If you don't see that icon that means they are installed on phone memory, uninstall them and reinstall on memory card. (please don't mind if you already know these thing, i am just trying to explain to make it clear if you don't know).
    And the ultimate way to free up Maximum phone memory is to do a reset, which i'd recommend to do ONLY IF YOU WANT THE PHONE MEMORY BACK ON EVERY COST. Just ask if you don't know how to do that.
    Good Luck,
    Previous Phones: 6600, 7610, 6230, 6230i, 1100, 1112, N70, N73, N95, N95 8GB, 5800XM, 5230, C5, iPhone 3GS, SE Xperia X10, N900, N8, SE Xperia Arc
    Current Phones: Nokia N9, iPhone 4

  • Memory Card Memory gone

    Hi.
    I plugged my phone into the computer yesterday, and at first the computer said something about blackberry drive not found, and I realised I hadn't put in my password for my phone to connect to the pc. Then it came up on the pc and I could open the drive. but almost everything is gone. There are now only 13 items showing, when I had hundreds. In the past, when I've hooked up my phone to pc, it has shown a 'blackberry' folder, music folders, ect. All of that is gone, it only shows those 13 items, on the phone aswell. But when I go look at available memory, it says I have no free space, as if everything is still there. I did a memory card repair, told it to save the lost clusters, and it says the repair was successful. I don't understand what happened nut Please is there a way I can get it all back??

    Istvanst
    This could be due to
    1) Incompatible card. If your phone allows max 1GB and you use 2 GB your phone may not be able to read more than 1 GB
    2) Your card needs to reformatted. Check the total GB available.
    Its should be close to the full memory size. If its more than 1% then you have corrupt card.
    3) Try using your card on your friends phone. Format using his phone. If you get the same GB as you got in your phone then card is corrupted. Else your phone needs checkingMessage Edited by babdi on 04-Jan-2007
    08:48 AM
    If my post has helped you please click the white star on the right

  • How to save an image file

    I am developing an applet which can manipulate an image,such as scale image,rotate image,subtract image...
    then how can I save this manipulated image as generic .jpg format within applet environment.

    Hi,
    You can do this with JAI Java Advanced Imaging.
    Here is the code you can use:
    Image image =...
    BufferedImage bufImage = (BufferedImage)image;
    JPEGEncodeParam jep = new JPEGEncodeParam();
    JPEGImageEncoder jencoder = JPEGCodec.createJPEGEncoder(out);
    jencoder.encode(bufImage);
    out.flush();
    out.close();
    Hope this helps,
    Matt.
    Java Developer Technical Support
    Sun Microsystems.

  • Can't get PS to save a image file...

    no matter of which type, in a different file location without PS crashing. Using CC on a Mac using Yosemite 10.10. Not had problem before  up until yesterday.

    Run a permissions repair using Disk Utility.
    Then try resetting Prefs in Photoshop. Hold down cmd-opt-shift, start Photoshop and you see a dialog offering to delete the settings file. Answer "Yes" and see if that takes care of it.

  • Saving an image file in phone memory

    Hi everyone,
    I want to save a file (an image file) in my phone/ memory-card memory.
    i've infact captured it from camera and now want to save in the memory not in the RecordStore.
    What should i do ?
    Please help me.
    Thanks in advance

    hi,
    You will need the pda optional package jsr75 for file connection. Then create a byte vector from the image and then write the bytes to the location
    byte[] bytes = ... // from input stream
    String filePath = "file:///c:/"+aFileName;
              System.out.println(filePath);
              OutputStream os = null;
              FileConnection fc = null;
              try {
                   fc = (FileConnection)Connector.open(filePath);
                   if(!fc.exists()){
                        fc.create();
                   os = fc.openOutputStream();
                   for(int i = 0;i< bytes.length;i++){
                        os.write(bytes);
              } catch (IOException e) {
                   throw new IOException();
              }finally{
                   if(os != null)
                        os.close();
                   if(fc != null)
                        fc.close();

  • Save image file in server machine from client

    hai
    I am working in swing based applications on linux environment.
    I can able to save the image file from java appln to local directories.
    My doubt is
    how to save that image file in another machine in the same network or in the server machine through java application insead of saving in the local machine.
    if anyone can help me to findout the solution?
    advance thanks,
    Samy.

    The file can be read in the weblayer if it is sent as a mutlipart request. So once u have it i the Webserver u can always send it to the app server by posting it in a location which the app server can read using URL api

  • When I right click to save as an image it does not let me save the image as anything but "all files".

    When I right click on an image to do a save as it does not let me save the image as a jpeg, all that is in the drop down menu is "all files" which saves it as a bunch of numbers and letters etc. It save it as an aspx file.

    Try to add the .jpg file extension yourself if Firefox doesn't do that when you save an image file.<br />
    If you've already saved images with a wrong file extension then rename them and add a .jpg file extension. Check the Properties of the file via the right-click context menu to see if that has worked.

  • Image browser "memory card utility" downloading to wrong date folder

    Mac OSX 10.7, Image Browser 6.9.0.3 (9L)
    I own 5Dmarkii and 60D.  When I insert memory card, Memory Card Utility (1.7.0.0.9L) launches.  I select Download, and program transfers to my computer.  No fancy settings, just standard.
    Both cameras date setting is correct, and image efix data is correct for date and time shot.  Computer system date and time correct.
    Pictures taken prior to 5:00pm are filed in a folder with previous days date.  Photos after 5:00pm are filed in correct days folder.
    Driving me nuts..... Help please

    I'm having the same issue.  The Canon software behaves as though it catagorizes the photos (and names them, based on the way I'm importing them) based upon what day it was/is in England (I  think it uses GMT when making the date classification)
    For me, it is also usually an annoyance, but sometimes it's more frustrating.  If I want my files named by date, correctly, then I have to re-name all the photos taken after 4:00 pm (16:00).
    Yes, my camera (7D) and computer (MacBook Pro) have their date and time settings correct.  (I tried changing the time zone my camera was set to to see if it changed the problem, and it didn't.  The Canon software is mis-placing the photos based on the date.)
    I might try this workflow on a Windows machine, and see if it persists.
    Anyone have any ideas?

Maybe you are looking for

  • Error while creating database manually

    hi guru's i am getting error while creating database manually my sql is SQL>create database lily   logfile   group 1 ('C:\oracle\product\10.2.0\oradata\lily\redo1.log') size 10M,             group 2 ('C:\oracle\product\10.2.0\oradata\lily\redo2.log')

  • Why can't I define bullet paragraph in Basic Paragraph style?

    I would like to set up my Basic Paragraph style so that I can quickly apply bullets to individual paragraphs - using MY preferred indents - without having to create a new style for the bullet paragraphs. I tried changing the settings of the Basic Par

  • Somebody, please, I have to write a paper on that computer!!!

    My computer won't log in. I enter the password, it says "logging in" and the blue and white bar is frozen. I'm then unable to click back or log in, and my mouse turns into the little pinwheel. I have no clue how to fix this!! I know you're a good per

  • Templates at BC not showing up as templates in DW

    Hi Usually when I work on a new BC site, DWTs are created for templates when using the SITE MANGER > PAGE TEMPLATES > NEW TEMPLATES, at least they show up as DWT in Dreamweaver after downloading them. I have to edit one of the very first sites that I

  • BADI :BADI for ME21N in 4.6C

    Hi, Can any one say me what is the BADI for ME21N and ME22N in 4.6C. Thanks in advance, Donlad