Transfering Image Files

Ok, so I have a question.
Can I have, say, 10 Image variables in my applet. And then get images to these variables through an input stream? THen, when I'm done using these images and want 10 new images, I can use the input stream again to write over the current image values with the new image values?

You should be very careful with questions like "can I .." and "is it possible to .." because people will feel tempted to reply with "yes" or "no" which is probably not what you want. Instead you should be asking "how would I .."
The answer to your question is yes, the details of "how" depend on which image format you use and whether you want to avoid certain software library dependencies. If you don't want to depend on the new ImageIO library you can use services of the java.awt.Toolkit class: the createImage(byte[] imagedata, int imageoffset, int imagelength) can create an image from bytes in JPEG, GIF, and PNG format, and the createImage(ImageProducer producer) can create an image from any ImageProducer (= you can use a custom image format but have to write the ImageProducer implementation to decode the stream yourself).
API: http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Toolkit.html

Similar Messages

  • Transferring image files as information files only

    We have 30g of image files and live in 2 diff. cities, files are identical. We want a person in 1 city to sort, then send information file without the actual pictures to the other city. Then we want the other city to import the file and be able to find the matching 30g of files. Does this make sense?
    How do we go about doing this? Is there a plug-in for this type of thing?

    This can be done if the files are in the exact same folder structure on a drive that has the exact same volume name.
    Get rid of all the previews in the aperture library to make it as small as possible, make sure all the files are referenced and then compress the aperture library and send it back and forth.
    This will give you everything including all the Aperture adjustments.
    There is a ton of stuff about previews/file management on my site.
    RB

  • Transferring image files from disc or hard drive back to iphoto

    i have backed up older images to both an external firewire hard drive and to DVD. now i want to transfer some photos back to my laptop. but all i get are 4K alias'. how do i get the files back to my computer?
    i also have an iphoto library back up on a hard drive and when i go track down that folder, nothing comes up. when it try to open it, it just opens iPhoto on my laptop, but i see none of the images.

    Welcome to the Apple Discussions.
    now i want to transfer some photos back to my laptop. but all i get are 4K alias'.
    Do you have the actual files? How was this disk created? Using iPhoto? Using The Finder? Using Something Else?
    To switch between Libraries hold down the option (or alt) key when launching iPhoto. From the resulting menu select 'Choose Library'.
    Regards
    TD

  • Transferring images from a PC to a Mac

    Fist of all, please excuse me if my questions appear elementary but I am a recent convert to Apple and to digital photography. I have a PC desk top computer and a just-purchased MacBook Pro. At the moment all of my images are on the internal hard drive of my PC and the drive is filling up fast. I need a short term solution to my diminishing internal disk space that will tide me over until I learn enough about workflow to invest in a longer term solution. I want to view and edit my images on the MacBook Pro. I realize it's not the best way to edt but it will have to do until I replace my PC with a desktop Mac which I intend to do. But in the meantime I don't want to clog up my Mac unnecessarily with thousands of images. So, my questions: 1)) What is the best way of transferring my images from the PC to my Mac? 2) If I transfer my images to an external hard drive from my PC will my Mac have any problems reading them? 3) Can an external hard drive be formatted to read both PC and Mac files? 4) Rather than get an external drive for my PC (since I don't intend to edit on the PC, am I better to get one for my Mac? 5) Can someone suggest a good on-line tutorial on this topic so that I don't need to trouble all you good folk. Any advice would be appreciated.

    There are many solutions: Your first stop is www.macwindows.com, and read everything in site re: formatting ext HD's to run on both,your best solution. There are apps that allow macs to read/write/ drag & drop to /from Fat 32 & NTSF partitions, and visa versa, read about networking and remote controlling PC's and Macs, as well. A simpler but time consuming solution is internet backup/ syncing via Sugar Sync or Mobile me.
    *maybe you can help me: I'm about to get my first PC to capture digital dental xrays. I'm told that the imaging sensors drivers only work on a PC/xp or Vista, 32 or 64, though they are written in 32. I want to network (automatic syncing of dental image files and practice mgmt files from the imaging app & mgmt app) the PC to an iMac, either booted in Vista 64 or running it in emulation. The PC Imaging app (Apteryx) and the PC Mgmt app (Dentimax) works either way on the iMac. How do I:(1) set up a wireless network, (2) that onlt auto syncs the 2 dental apps files, (3) on a Vista booted iMac, or ($) on a Vista emulated by Fusion, iMac????? Thanks! I assume a V booted imac is a PC to PC setup, but I have no idea how to do this? I also find it hard to believe that the sensor drivers wont work on a V booted iMac!

  • How do I add an image file to a library?

    Hi,
    My project requires files (normally in the form of JPEGs and PDFs) to be added to a library. The file paths are passed into the plug-in via sockets.
    In QuarkXPress we do this by using a hidden document, which is not visible or accessible by the user. Files are placed on the document and then transferred into the library. I can see how to do some of this in InDesign:
    Create a library using - ILibraryCmdUtils::CreateLibraryNewLibCmd()
    Add an item - ILibraryCmdUtils::CreateLibraryAddItemCmd()
    The bit I can't work out is the hidden document. I was hoping that a document could be created as hidden via the INewDocCmdData interface - no joy. I cannot see any reference to hidden documents anywhere in the SDK documentation. Does InDesign have a default one? So I'm wondering if this is the best way to do it.
    Can anybody point me in the right direction? It might be that hidden documents is not the best approach.
    Best regards and thanks in advance.

    Thanks to Dirk's help, I've now got my library code up and running. I can now handle my library through commands from an external source and from any user action. Had a few problems with outstanding bosses, but I've managed to configure the code to prevent this.
    With that out the way my attention has moved back to adding image files to the library via a hidden/headless document. I've written some code that will transfer images from the document to the library using ILibraryCmdUtils::ProcessLibraryAddItemCmd().
    The bit that's giving me problems is the file to document bit. The SDKHelper sample code (function PlaceFileInFrame) shows how this can be done, but there is a snag - I don't want the user to see the document that is used to transfer files to the library. Unfortunately a document UIDRef will not work in IHierarchy as it is not a displayable item.
    Does anyone know of a way this can be done? The user should not see or interact with the document.
    Cheers,
    APMABC

  • Hard drive recently failed and iPhoto brings a -36 error when copying need help accessing image files

    I recently updated my computer to mountain lion and after doing so my computer would no longer boot up.  I took it to the apple store and they told me that the hard drive was damaged and needed to be replaced.  They were booting my computer with an external drive and in doing so could access my computers HDD.  Upon starting to drag and drop files to a new hard drive I started to get a lot of -36 errors.  I proceeded to go go,e and create my own bootable thumb drive and try doing the same process with more time to look through it.  I have up till now been able to copy most of my files but have run into a problem with iPhoto.
    I have been searching around for a while now and have yet to find a method that helps me in my particular situation so I am now asking for help myself. I will explain what my current system of file recovery is and see if anyone can help me out.
    I have since then replaced the HDD in my computer and purchased a SATA external HDD enclosure for the original drive.  This allows me to still access all files and folders from the original drive.  I have managed to recover a majority of the files but have recently run into a problem with the iPhoto library.  Every time I try to drag and drop the iPhoto library to my new HDD it fails after "transferring" 2.02GB and tells me it has encountered a -36 error because some files cannot be read or written.  I believe I am using iPhoto '09, I will check and confirm that later.
    I am looking for a way to open iPhoto's library and access the image files it seems to be hiding from me. Please understand that I cannot open the iPhoto library either, I have lost access to the library entirely and want to see if there are any image files that I can save.  I dont have the computer backed up recently and want to save my photos.  Thanks for looking and I'm hoping someone can help.

    Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command). Rebuild it to the Pictures Folder. This might overcome the -36 issue.
    (This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.)
    Failing that you're into recovering your Originals from the damaged Library and creating a new Library and starting over from scratch.
    Regards
    TD

  • Transferring images from camera or flash drive

    Hi,
    I am having problems with transferring images. When I plug in a flash drive or my camera to the USB port,nothing pops up on my desktop. I checked System Profiler, and it appears that the computer is recognizing the flash drive. So it must be a problem with the drive talking to the software, right?
    I went into Image Capture and set the preference for iPhoto to open when a camera is attached, but no go.
    This is a new problem - I have transferred images many times since getting the computer in March.
    Help!!
    Thanks,
    Codymae

    When you make a User choice - such as 'Open iPhoto When a Camera is connected' it's recorded in the preference (or plist) file. That's what those files are. Trashing them will return the app to the default state. You can then re-select your choics. Corrupted plist files are a common cause of all sorts of issues and one of the basic troubleshooting steps for any app.
    Regards
    TD

  • Can't move image files within Bridge

    I recently bought an iMac and got the CS5 license transferred over to the Mac platform. Got CS5 loaded and everything works except for one critical thing: I can no longer move image files within Bridge. When I do the right click on an image file to select that command, the command is "grey" and won't let me to choose it.  So I am forced to rearrange my image files through the Mac's Finder/Pictures feature.  Drag and drop doesn't work either.  I have looked everywhere for a setting that would allow movement of files to different folders and rearrangement within Bridge, and can't find one.  I have Bridge set as my default for photos and not the lame iPhoto program on Macs.  I previously was to be able to freely use Bridge for organizing my photos on a PC and now sorely disappointed that I can't do this with my new iMac.

    I previously was to be able to freely use Bridge for organizing my photos on a PC and now sorely disappointed that I can't do this with my new iMac.
    No need for disappointment because you can move all files freely within Bridge.
    First check if you have read and write permissions for your files/folders/disk (try move the files using finder) If Finder allows you to drag the files to the location you previously wanted in Bridge then the problem lies in Bridge.
    First select a file and with right mouse click menu choose purge cache for selection. If the problem is gone you could do so for the whole folder using menu tools/cache/purge cache for folder while having Bridge pointed to that folder.
    If not restart bridge holding down option key and choose reset preferences.
    could you report back?

  • Incredibly strange file size discrepancy only appears in image files (jpg, gif, png)!

    I'm creating a bunch of banners for google ads, yahoo ads, ...etc in Photoshop on my Mac OS!
    The .gif files of these banners appear to TRIPLE in size when on the MAC (>150KB), but when transferred to windows; the real file size shows correctly! (<50KB)
    It is not a result of the base2 vs base10 discrepancy since the difference in size is simply too big, and it only happens with files created on Photoshop on my Mac.
    The reason I know that windows is showing the correct size while my Mac OS is displaying the wrong size, is that the file gets approved by google and yahoo ads, even though Mac OS shows that it surpasses the size limit (50KB) three times over!
    This isn't an isolated incident either, all image files created in Photoshop on the MAC continue this weird behaviour! However, files downloaded from the net appear to be consistent on both operating systems!
    One example is the attached screenshot:
    Explanation, please??

    Geez, sorry I offended you Mr. Jobs (incarnate)!
    You came in here with a three ton chip on your shoulders. Did you really expect sunshine and puppies in return?
    No, I expected useful help, and I got it from Jeffrey Jones. Thanks again Jeffrey!
    I mean, when you move or upload it, it loses this data association anyways!
    To a drive which doesn't support Apple's AB tree structure (NTFS, FAT, FAT32, exFAT), yes. To another HFS+ drive, no.
    What about uploading the file to the cloud?? Does it lose this association or not?? And does anyone really care about the data in the Resource fork?
    This "Resource Fork" means nothing to the file owner, only to the OS and the Drive. Therefore, it shouldn't be added to the total. Period. Because its not part of the file, its part of Apple's tree structure! This is really a simple concept, not sure why you are bending over backwords to defend a clearly stupid oversight from apple!
    There's no reason to force me to use the command line to get the real file size of a GIF! There's just no excuse for that!
    If an OS is saying it is fetching file size information for a single file, it should do exactly that! Not add hidden Resource Forks that are part of the OS's internal workings
    OS X is fetching the file size. It's file size, not the way a different OS would report it.
    There is no such thing as it's file size. A file size is a file size, accross all platforms, on the cloud, wherever!
    A GIF file should have the same file size whether its on windows, linux, unix, darwin, freeBSD, or anything else. The only time its weight should vary is in outer space!
    That is why I'm surprised that they are breaking simple UI Design rules.
    The User Interface has nothing to do with the file structure of a drive.
    I don't care about the structure of the drive!! Neither should you, neither should the average user!
    A good UI should NOT concern the user with this! The average user doesn't care about these Resource Forks, and will never try to view them, therefore, there is no logical reason to add up their file sizes to the total size of each file, and then to make things worse, hide that fact! That only creates confusion, and it makes it so much harder for a designer like myself to view the REAL file sizes of my image files! Now, whenever I'm on my MAC, I will have to run command line scripts to be able to see if my GIF files (that I work on EVERYDAY) meet the file size quota, because Mac OS adds up hidden files that I have no use for and gives me the WRONG file size!
    Let's say this again: when you select a file and click get info, you should get the info for the file you selcted. Nothing more, nothing less! I don't care if the file structure creates an entire colony of hidden files, they should be completely hidden to me, and if not, the Get Info dialog box should at least give me two sizes, one is the REAL file size, and the other is the added up file size for the Resource Fork as well (although I can't think of any good reason why it should add up the Resource Fork size anyways)!
    do you think it is at all logical, that when you select 300 or so files, and click Get Info, that it open 300 windows at once each showing separate information for each file? Or does it make a lot more sense, intuitively, to get the total tally of all the files selected added up, without having to hold down shortcut keys when clicking them to do so?
    Yes, it is logical because that's what you, the user, told the OS to do. You wanted the Get Info data on 300 individual items. I don't know about you, but I avoid the menu bar as much as possible (your reference to avoiding shortcut keys). Command+I will always give you singular Get Info dialogue boxes.
    No, that's not what I told the OS to do. I selected 300 files cumulatively, therefore, I should get the cumulative info for all the selected files. That's just common sense. Every other OS seems to get this!
    And I'm hard pressed to find anyone who has found a use for having 300 get info boxes open at the same time. Therefore, that shouldn't be the default.
    Will you start defending apple's decision to stick with the one button mouse for all these years depriving us from the all important context menu as well?? There was absolutely no good reason to do that, just as there is absolutely no good reason to do this!

  • Renaming image files & years question

    hello
    how do i change the name of image files? i know how to change the title, but can i change the actual name of the file?
    when i transferred my photos from a previous computer, iPhoto sorted them into years. how does iPhoto sort them...is it by date created, modified, etc? can i manipulate iPhoto to put photos in a certain year?
    Thanks!

    pogi6247
    Do you want to change the name so that the file is easier to find?
    There are three ways (at least) to get files from the iPhoto Window.
    1. Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size.
    3. Show File: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.

  • Renaming image files

    I'm using iWeb 1.1.2 If I click on the metrics tab under "Inspector", it will list the name of any image file I select. Is there any way to change the name of an image file without removing it from iWeb, changing it, then re-inserting it into iWeb?
    Some of my image file names consist of several words and a date. I need to shorten names and eliminate spaces between words or numerals.
    Help would be appreciated.
    LaughingBear

    Hello Old Toad,
    The images are interspersed with text on regular webpages, not in albums or anything fancy.
    Yes, I tried changing names in the Domain files, but that just confused the index.html file, ruining the webpage.
    The URL is bear-viewing-in-alaska.info.
    That site is hosted by Yahoo. My iWeb site was created through iMac and then transferred automatically to Mobile Me.
    Since search engines have great difficulty finding that content, I have been trying to transfer my pages from Mobile Me to Yahoo. But Yahoo cannot read file names that contain spaces or "&" signs, which some of my photos have. So I have been trying to rename the image files.
    Put differently, I'm trying to get all of my pages into a single website (rather than 2 inter-linked websites), if not with Yahoo than with some other host that is search-engine-friendly. I initially tried shifting to RAGE, but they were just starting up as a host and did not seem to have their act together yet.
    Given my desire to switch hosts, I have not paid Mobile Me for another year; so the webpages I created on iWeb cannot be viewed there. However, I've managed to transfer a few files to the Yahoo website. You will find them by clicking on "Senior Staff" near the upper right of the homepage, then clicking on "Author." That will lead to a series of images of artwork I've created.
    Look forward to your insights.
    Laughing Bear

  • CREATING IMAGE FILE

    Hi there,
    I have an "java.awt.Image" object with me. I am trying to create a file by using this "Image" object.
    Please help me by showing some code or by giving some tip.
    thanks in advance
    sudhakar

    hi,
    I am using the below code to copy the image from system Clipboard.
    // If an image is on the system clipboard, this method returns it;
    // otherwise it returns null.
    public static Image getClipboard() {
    Transferable t = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null);
    try {
    if (t != null && t.isDataFlavorSupported(DataFlavor.imageFlavor)) {
    Image text = (Image)t.getTransferData(DataFlavor.imageFlavor);
    return text;
    } catch (UnsupportedFlavorException e) {
    } catch (IOException e) {
    return null;
    when i call this method then it is returning an "Image" object. Just I am trying to copy that image into an image file like "myImage.gif" something like that.
    Actually i am taking this clipboard image from the "printscreen" button function form the system.
    thankyou
    batta

  • Transferring images out of iPhoto but keeping original date

    I'm currently backing up all my images from iPhoto 4 onto CD (and elsewhere). When I transfer them the copy has todays date rather than the date they were originally created. Is there anyway to transferring them to back up and keep creation date so I retain the timeline.
    thanks in advance

    Hello -
    I recently backed up my photo archive from my old G4 desktop to an external hard drive, then imported everything into iPhoto on my new MacBookPro. A number of photos are now categorized with 'original date' as 2007, though I know they are from a trip in 2006.
    Is there any way to change this original date to the correct date, or otherwise weed them out of the calendar view under 'library', or do I simply need to distrust / ignore the annual organization and make my own 'album' and/or folders to deal with the mislabel?
    Assuming the original files are correct (I unfortunately cannot check right now), would transferring the files directly between the computers solve the problem? Is there a way to back up without corrupting the original date field?
    Thanks,
    D.G/C.A

  • Problem with tethering D700 - slows down: 'Transfering images...'

    Hi,
    I have a problem when working tethered. Previously I had no or hardly any trouble but as far as I know nothing has changed.
    The problem is (also when I have no CF card in my camera) that all of a sudden I get 'transferring images from camera' and lightroom then is fully occupied doing that. It is a big problem because I cannot work lik that in the studio.
    Please advice bcause it is driving me mad...
    Leon

    Hi Weixuan,
    I recomend taking an unneccesarily process out if the loop for example: IMAQ Create, IMAQ Read File, IMAQ WindSetup, IMAQ Dispose, IMAQ WIndClose.
    You may refer to my attached screenshot to see how I modify your program.
    I can achieve the same task at 17ms interval with <30% CPU consumption.
    Regards, Kate
    Attachments:
    weixuan.PNG ‏16 KB

  • PSE10 and PSE11 changing original date of image file on loading file to editor.

    There seem to be a problem with PSE10 and PSE11 on my computer when loading image files digitized on my film scanner. When loaded into the editor the image file immediate takes today’s date and time, and thus changes place on the timeline. However, sometimes the original image file date remains intact, for no obvious reason. I find this very frustrating.
    My setup is an HP computer running Windows7 Ultimate 64 bit, with  i7 processor and 12GB memory. My film scanner is a Minolta Dimage Elite II working with a Windows XP-based computer, and data are transferred using memory stick.
    Is there anybody out there able to advise me on what to do about the problem?
    It might be mentioned that I have made tests with a fixed set of image files on several computers running WindowsXP 32 bit, and several versions of PSE , including PSE10, without seeing this problem.

    If you have had a look at your other post,
    Why does PSE10 change my file date to today?
    you may be able to spot what can have triggered the updating of the catalog. There are too many date types in the exif, some of them are misleading. What is really interesting for a scan? For me (familiy history, genealogy) it's the supposed 'Date taken' or 'CreateDate' to display file chronogically. The file date in the OS is useful for backups.
    It's possible that the date digitized has some meaning for you.
    If you want to compare the different dates shown by John R Ellis in the Organizer database with those you see in an exif browser (or the properties in the editor, or the information panel in the organizer), you have to note that the 5 types of dates stored in the catalog database are;
    -pse:FileDate
    -Pse:FileDateOriginal
    -xmp:CreateDate
    -pse:TagDate
    -pse:LastOrganizerModifiedTime
    What's important to troubleshoot  your problems is to find what operation triggers the updating of the catalog from the files or vice versa.
    That can be: Update thumbnail, Write Metadata to files or...

Maybe you are looking for

  • Logical Profiles in ISE 1.2

    I created a logical profiles group that is assigned with the Apple-ipad, Apple-iPhone and Apple-iDevice policies. Now ISE will not update the feed policies for the three devices. This is the message that I recieved from ISE when it does it Feed Polic

  • Longer boot up with no chime after hard drive replacement.

    I recently had my late 2009 27" iMac repaired by Apple because of a hard drive failure. But i noticed that it now takes a little bit longer to boot up and there isn't the usual chime when it starts up, the difference in time is only maybe 20 seconds

  • How can I quickly add text to a jpeg?

    Hi folks, I'd love to be able to just click on a jpeg and then add text to it. Preview Help says I can add text to an image by clicking Annotate and then Text, but I can't get anything to work. What am I doing wrong? Can anyone recommend a quick and

  • Csv rtf and xls files in file sender

    Hi Experts, I had a requirement to design an interface, its basically just a file to file with certain mappings as per business requirements. The input file is currently expected in .csv or .xml or .xls. My query (can be even be considered juvenile:-

  • Javascript array for iGrid & iCharts

    Is there a way to push javascript array data to IGrid and iChart display templates?