Saving Images to disk

I'm going to be making some graph Images, and I'm curious about saving them to disk. I've considered using Quicktime for Java, because quicktime supports so many image types and I need this versatility. The main problem is that, either way, I don't know how to save an Image to a file.
Any pointers would be much appreciated: websites, sample code using QTJava for saving images, etc.
--Xander                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Hi Xander
I think u want to convert the image ( which u draw as graph)into gif or jpge formate for this purpose u can use ACME
Gif/jpge encoder it is free ware (and it is writen in pure java)for converting image into gif/jpg formate and u can save it into ur hard disk
U can down the encode from www.acme.com
and use for encoding the image
just down lodad the packae and put that package in the current directory and import the package as
import Acme.JPM.Encoders.*;
in ur class where u encode the image
and for encoding the image here is the sample code
FileOutputStream out= null;
try{
File fc=new File("gif/" + "testgif"+".gif");
fc.createNewFile();
out = new FileOutputStream(fc);
}catch(IOException e){System.out.println("Gif Directory not Found");}
try{
GifEncoder encoder = new GifEncoder(image,out,true);
encoder.encode();
} catch(IOException e){System.out.println("File can't be created");}
I think this will help u
vijay

Similar Messages

  • Save Image to Disk via CWIMAQ and CWIMAQVision in VB

    Hi, I use NI 1428 CameraLink framegrabber and notice
    a bug with saving image to disk via CWIMAQ object. It
    adds 8 columns black pixels to the end of each image.
    Savimg image to disk via CWIMAQVision is fine.
    Has anybody experienced the same thing ?
    Also, are the CWIMAQ buffers thread safe ?
    I use them as a ring buffer, so multiple
    threads may access the same image buffer at the
    same time. I have used my own mutex to safe guard
    each access. But I wonder if the thread safe is
    built in.

    I have never experienced the 8 black pixels using CWIMAQ save. However, I would use the CWIMAQVision.Write function anyway - this way you also get the vision information.
    Here is a document that discusses multi-threading in IMAQ:
    http://digital.ni.com/public.nsf/websearch/07550C5783B42B16862567DF0076EBF3
    General Multi-threading info:
    http://digital.ni.com/public.nsf/websearch/6eccbaa87476eb22862568950071ccd6
    Hope this helps-
    Julie S.

  • When saving iDVD to disk image the following message appears: "Error during rendering/codification. There was an error during rendering/codification of menus/slide presentation. The recording process was canceled.

    When saving iDVD to disk image the following message appears: "Error during rendering/codification. There was an error during rendering/codification of menus/slide presentation. The recording process was canceled.
    What am I doing wrong?

    Read and answer the questions posted by Bengt Wärleby in this thread: Cant burn my idvd project to...: Apple Support Communities
    OT

  • How to store images as disk files rather than in iphoto db

    Is there a way to make iPhoto maintain the images as disk files, rather than import them into iphotos massive database file. I would prefer to use iphoto to just store a link to the photo, rather than the photo itself. That way I can work with the image in photoshop or whatnot without having to jerk around with the iPhoto database/

    Welcome to the Apple Discussions. No need to find a workaround. You can use Photoshop from inside iPhoto.
    Using Photoshop (or Photoshop Elements) as Your Editor of Choice in iPhoto.
    1 - select Photoshop as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements 6 the Saving File preferences should be configured: "On First Save: Save Over Current File". Also I suggest the Maximize PSD File Compatabilty be set to Always.
    If you want to use both iPhoto's editing mode and PS without having to go back and forth to the Preference pane, once you've selected PS as your editor of choice, reset the Preferences back to "Open in main window". That will let you either edit in iPhoto (double click on the thumbnail) or in PS (Control-click on the thumbnail and seledt "Edit in external editor" in the Contextual menu). This way you get the best of both worlds
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.≤br>
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • "error while saving image"

    has anyone had the problem where, when they select option and tap an image (in my case i pulled one from my email using an image i uploaded from my drive) and gotten an error that says "there was an error saving image" and your only option is 'ok'? i've read other forums and understand that jpeg's are the ideal form, and this had a .jpg extension.
    any thougths anyone?
    so many thanks in advance.
    -wren
    Post relates to: Pixi Plus p121vzw (Verizon)

    hey thanks , but my jdbc pool and driver is fine. what may be the problem and I am not able to change the type to BlobDomain in eo. The type i Blob only may be this is the problem how can I change it to Blob Domain

  • Saving images from camera raw in new CC suite

    Hi Im having trouble re saving images from new adobe cc bridge camera raw, images once saved then show in bridge with no adjustments done in camera raw and the images are downsized to KB size images even from a 9.20mb raw image, Ive looked at setting or rather preferences and totally lost please help!!
    Thank you
    Jon

    This forum is actually about the Cloud, not about using individual programs
    Once your program downloads and installs with no errors, you need the program forum
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll
    http://forums.adobe.com/community/bridge

  • Saving image to a folder not working on azure

    I am saving image
    files to a folder in my application and saving its path in database . Image uploads working fine when I am running locally
    and its path is also storing.When I deployed it on azure it
    gives an error that " An error occurred while processing your request ". I have two tables in my database . First one where text is saved is working fine on azure but image upload thrown this error.
    I am using this code
    to upload
    image and its works fine when I am running locally. Need help ?

    Hi,
    Have you made any progress ?
    May I ask what application is it that you are running ? You mentioned that it works locally but not when deploying to Azure. Have you checked the connections strings?
    If you are still having any difficulty in understanding the code, perhaps you could post it on the below blog.
    http://blogs.msdn.com/b/onecode/archive/2014/08/28/sample-of-aug-28-how-to-store-the-images-in-sql-azure.aspx
    Regards,
    Mekh.

  • Trying to back up iPad to external hard drive, "iTunes library file cannot be saved. The disk you are attempting to use is full."

    This issue is somewhat complex so I will try to explain it as clearly as I can. Any help will be greatly appreciated.
    It all began when I kept getting popups from my iPad saying that I had not backed up since May. I realized that was pretty dangerous so I decided to finally try syncing it to iTunes, though I had avoided doing so for so long because I knew that when I tried there was no room on the computer. I then remembered that I have an external hard drive with plenty of storage space, so I got that out and set it up with a folder to move iTunes and the backup into.
    On iTunes I went to the Advanced Preferences and changed iTunes Media Folder Location to the G: folder, with the keep organized box checked. I also copied the previous backups from the original C: drive to G: so that I could delete the ones on C:.
    I used Junction Link Magic to link my now empty MobileSync backup on C: to a new (JLM would not work unless it was empty) backup folder on external hard drive G:.
    I plugged in my iPad to iTunes to sync it, and while it was backing up I checked the new folder on G: to make sure that the backup was being put there. It was.
    However, about halfway through I got the message "iTunes library file cannot be saved. The disk you are attempting to use is full."
    My question is Why? If it is being made in a 1.5 terabyte hard drive now, and not the computer, why is there no disk space? My guess is that it must still somehow be saving to the computer. But how? And how can I get it to save solely on the G: drive where there is enough room?
    I am running Windows XP and the latest version of iTunes.
    An additional but not as crucial issue:
    Much of my music has been lost, with the being displayed next to the songs in the iTunes library, and only 50 (purchased) songs remain on my iPad. This was because those missing songs were stored on a different external hard drive ( I:). However, I copied many of the music folders on I: over to G: so that everything could be together. I am wondering if it is possible for me to get these songs back onto my iPad. But this is not my most important issue right now, because I believe that once I get the first issue solved I can simply plug in I: and G: at the same time while syncing the iPad, and get the songs back.
    Note: I have come to realize the iTunes program itself is still under Program Files in the C: drive. Does this have to do with anything?

    Short term, free up some disk space. Long term, move the library to a bigger drive.
    tt2

  • Data type for Saving Image in SQL database

    Hi,
        Which is the best way for saving images in the database? Filestream or Varbinary(max)?. Will the Varbinary max comsume much space or it will only take the actual size of the data?

    I've used FILETABLE for storing images in SQL 2012
    You can configure it to have transact and non transact access if you want
    see
    http://visakhm.blogspot.in/2012/07/working-with-filetables-in-sql-2012.html
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • ITunes Library File Cannot be Saved. The Disk Cannot be Read From . . .

    I use a MacBook Pro with a healthy battery. My iTunes songs are on a USB drive. The Database and XML files are on my MacBook. Power went out in my house and the USB drive shut off. The MacBook stayed up and running. Power came back, powered on the USB drive, open iTunes, and bang: This sorry error: iTunes Library File Cannot be Saved. The Disk Cannot be Read From or Written to.
    The disks are healthy, did an fsck and ran disk verify/repair. No problems. Restart iTunes, same error. Obviously a corrupted Databse file. This wouldn't be a big deal if only the XML info would be useful and actually restore critical info such as play count and dates which is essential for the Not-So-Smart Playlist dependencies to work.
    This is the third time I've been burned with corrupted iTunes "Database" files. I use "Database" in quotes because a true Database wouldn't crap out like this. It would be recoverable. It would understand a simple SQL "Where" statement. It would have a maintenance script and some means for recoverable backup beyond the lame process of copying the XML file. Or it would at least read in the info the XML file.
    I am becoming disillusioned with iTunes and I'm beginning to yearn for my old Linux box running GTKPod which never failed me....

    OK, here's an update - After doing the restore as mentioned having everything seemingly work, I erroniously downloaded the iTunes 7.4 & 7.4.1 updates. Now, about 80% of library is non-responsive, ie: shows up in iTunes, but clicking to play does nothing at all. the other 20% of my library plays, but it's not the song it is supposed to be playing. For example, clicking on a song from say, ABBA prodes a wonderful Gorillaz track :-/ (The same Gorillaz track which will not play if I select it...)
    I reiterate: WE NEED A MEANS TO BACKUP OUR LIBRARIES RELIABLY!!!!!!!!!!

  • How do I stop Firefox from grabbing my saved images and coverting them to Firefox?

    I am working on images in Dreamweaver and Adobe Photoshop, and when I try to save them, Firefox coverts them into Firefox images with a Firefox icon and then I can't edit them properly in Photoshop or Dreamweaver. How do I stop Firefox from grabbing my saved images? in English

    I will try that, but it's pretty time consuming to have to check that for each of my images. I am a web designer and I work with a lot of images.
    Is there any way to set that globally for all of my saved images?

  • Trouble creating a small disk image with Disk Utility

    When I try to create a disk image using Disk Utility the size option for 2.5MB is grayed out and I cannot override this by manually entering the size I want. Ideally, I would like to create a 500KB-1MB size image to store 1 or 2 files that I want encrypted. Thanks for any help.

    Choose a filesystem which isn't journaled to get the 5MB option; if you want to create a 2.5MB image, specify Mac OS Standard or MS-DOS. Some disk formats have a minimum size.
    (41815)

  • Creating a mp3 disk image with disk utility

    Hi,
    I'd like to create a mp3 disk image with disk utility. In the end I would like to have a mp3 disk that plays in various stero system and macs.
    But I want to add some additional files: a png file for a nice folder background of the dmg, a special image for the dmg, and some text files relating to the mp3s.
    Is this possible at all? Is there something I have to observe creating the dmg?
    Thanx for your help

    Is this possible at all? Is there something I have to observe creating the dmg?
    You need to know which file systems your "various stereo systems" understand. The default file system created on a diskimage when burning is a hybrid file system- HFS+, ISO-9660 with Rock Ridge, and Joliet with Rock Ridge.

  • Saving image using mobile into sap R/3

    We are using sap mobile platform version 2.3 and our client requirement is to save images using mobile apps.
    We already saved images in mime repository but for this we have to required client modifiable , but due  to security reason we can't do this.
    Please Help.

    Hi Nilesh ,
      I had a scenario to attach image to pr05 transaction from mobile, so that when click view attachment button in pr05 i can see the image . My code is based on that .
    it is the function module with import parameter base64 string and filename ,last three letters of the file name proceeding the . is the extension
    in your case you need to create custom object type instead of  BUS2089 .
    Do research regarding that ..
    -->Local Workare declaration.
       DATA : ls_fol_id   TYPE soodk,
              ls_obj_id   TYPE soodk,
              ls_obj_data TYPE sood1,
              ls_content  TYPE soli,
              ls_folmem_k TYPE sofmk,
              ls_note     TYPE borident,
              ls_object   TYPE borident.
    **--> Local internal table declaration.
       DATA : lt_content   TYPE STANDARD TABLE OF soli,
              lt_url_tab   TYPE STANDARD TABLE OF so_url,
              lt_objhead   TYPE STANDARD TABLE OF soli.
    **--> Local variable declaration.
       DATA : lv_filename            TYPE string,
              lv_file_name_with_path TYPE chkfile,
              lv_stripped_name       TYPE string,
              lv_name                TYPE char30,
              lv_url_tab_size        TYPE sytabix,
              lv_ep_note             TYPE borident-objkey.
       ls_object-objtype = 'BUS2089'.
       ls_object-objkey  = '001095510000020022'.
       ls_obj_data-objdes = I_FILE_NAME.
       ls_obj_data-file_ext = I_FILE_EXT.
       CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
         EXPORTING
           buffer     = I_FILE
         TABLES
           binary_tab = lt_content.
       CALL FUNCTION 'SO_CONVERT_CONTENTS_BIN'
         EXPORTING
           it_contents_bin = lt_content[]
         IMPORTING
           et_contents_bin = lt_content[].
    **--> Getting folder ID to save data
       CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
         EXPORTING
           region                = 'B'
         IMPORTING
           folder_id             = ls_fol_id
         EXCEPTIONS
           communication_failure = 1
           owner_not_exist       = 2
           system_failure        = 3
           x_error               = 4
           OTHERS                = 5.
       IF sy-subrc = 0.
         ls_obj_data-objsns = 'O'.
         ls_obj_data-objla = sy-langu.
         ls_obj_data-objlen = LINES( lt_content ) * 255.
         CLEAR ls_content.
         CONCATENATE '&SO_FILENAME=' I_FILE_NAME '.' I_FILE_EXT INTO ls_content.
         APPEND ls_content TO lt_objhead.
    **-->To Create an Object and Move to a Folder
         CALL FUNCTION 'SO_OBJECT_INSERT'
           EXPORTING
             folder_id                  = ls_fol_id
             object_hd_change           = ls_obj_data
             object_type                = 'EXT'
           IMPORTING
             object_id                  = ls_obj_id
           TABLES
             objcont                    = lt_content
             objhead                    = lt_objhead
           EXCEPTIONS
             active_user_not_exist      = 1
             communication_failure      = 2
             component_not_available    = 3
             dl_name_exist              = 4
             folder_not_exist           = 5
             folder_no_authorization    = 6
             object_type_not_exist      = 7
             operation_no_authorization = 8
             owner_not_exist            = 9
             parameter_error            = 10
             substitute_not_active      = 11
             substitute_not_defined     = 12
             system_failure             = 13
             x_error                    = 14
             OTHERS                     = 15.
         IF sy-subrc = 0 AND ls_object-objkey IS NOT INITIAL.
    *            COMMIT WORK AND WAIT.
           ls_folmem_k-foltp = ls_fol_id-objtp.
           ls_folmem_k-folyr = ls_fol_id-objyr.
           ls_folmem_k-folno = ls_fol_id-objno.
           ls_folmem_k-doctp = ls_obj_id-objtp.
           ls_folmem_k-docyr = ls_obj_id-objyr.
           ls_folmem_k-docno = ls_obj_id-objno.
           lv_ep_note = ls_folmem_k.
           ls_note-objtype = 'MESSAGE'.
           ls_note-objkey = lv_ep_note.
    **-->Link the object ID to trip No.
           CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'
             EXPORTING
               obj_rolea      = ls_object
               obj_roleb      = ls_note
               relationtype   = 'ATTA'
             EXCEPTIONS
               no_model       = 1
               internal_error = 2
               unknown        = 3
               OTHERS         = 4.
           IF sy-subrc = 0.
    *            COMMIT WORK AND WAIT.
           ENDIF.
         ENDIF.   " SO_OBJECT_INSERT
       ENDIF.       " SO_FOLDER_ROOT_ID_GET
    ENDFUNCTION.

  • Why do the file extensions (.jpg .gif .png) no longer appear when I click on a previously saved image to use that image's file name (particularly important when saving a series of images using the same root name)?

    I save a lot of images using firefox, often times from a large batch or series of images. It used to be that I would click on a previously saved image and the entire file name including the file extension (i.e. image_example.jpg) would appear in the "save as" line. Now when I click on a previously saved file, the file name appears without the file extension (i.e. image_example). Which means I have to manually type .jpg every time. For a large collection of images that I am hoping to use the same root file name and then add chronological numbers at the end, this has become incredibly frustrating, especially as it is a previously unnecessary task.
    I am using a new Macbook Pro and maybe there's something Apple related to this...? It did not happen on my old PowerBook G4. I have file extensions turned on in System Preferences.
    It should be noted that I have searched high and low and have even gone into the Apple Genius Bar where they were just confused as I was and of course ended by urging me to use Safari (shocker!) as it has all kinds of new extensions and bells and whistles. I seriously feel alone on an island with this dumb, hard to google problem. Thanks so much for any help anyone out there might have.
    I mean: is this as simple as changing a setting in about:config?
    Your assistance is greatly appreciated.

    Thanks for your response Mylenium, however like I mentioned multiple times, I did change all of my trackpad/scrolling settings in system preferences.  And if I wanted to use a normal mouse (or a tablet), I would've gotten an iMac instead of a MacBook Pro.  I travel often and work all over the place, not always with access to a decently sized workspace that would be required for using a mouse or tablet.

Maybe you are looking for